Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upgrade to VS2012

  • Loading branch information...
commit 2805bbde097e66a864d1971824575b9f2ee0c749 1 parent d59bf5b
@a-fung authored
Showing with 9,160 additions and 763 deletions.
  1. BIN  external_libraries/Newtonsoft.Json.dll
  2. +14 −0 garther_amiupdate.ps1
  3. BIN  source/UpgradeLog.htm
  4. +22 −22 source/afung.MangaWeb3.sln
  5. +1 −1  source/aspnetserver/Handler/MangaListRequestHandler.cs
  6. +28 −11 source/aspnetserver/ThreadHelper.cs
  7. +12 −6 source/aspnetserver/Web.config
  8. +24 −6 source/aspnetserver/afung.MangaWeb3.Server.csproj
  9. +4 −4 source/aspnetserver/js/add2home.js
  10. +183 −183 source/aspnetserver/lang/zh-hk.html
  11. +12 −6 source/aspnetserverinstall/Web.config
  12. +23 −5 source/aspnetserverinstall/afung.MangaWeb3.Server.Install.csproj
  13. +101 −0 source/csharpcommon/Properties/FxCop.ruleset
  14. +12 −0 source/csharpcommon/Properties/Script.template
  15. +31 −32 source/csharpcommon/afung.MangaWeb3.Common(script).csproj
  16. +4 −1 source/csharpcommon/afung.MangaWeb3.Common.csproj
  17. +6 −0 source/csharpcommon/packages.config
  18. +408 −408 source/less/mangaweb.less
  19. BIN  source/packages/ScriptSharp.0.7.5.1/ScriptSharp.0.7.5.1.nupkg
  20. +20 −0 source/packages/ScriptSharp.0.7.5.1/ScriptSharp.0.7.5.1.nuspec
  21. +1 −0  source/packages/ScriptSharp.0.7.5.1/content/ScriptSharp.PlaceHolder.txt
  22. +34 −0 source/packages/ScriptSharp.0.7.5.1/tools/Install.ps1
  23. +11 −0 source/packages/ScriptSharp.0.7.5.1/tools/Reset.psm1
  24. BIN  source/packages/ScriptSharp.0.7.5.1/tools/ScriptSharp.Build.dll
  25. BIN  source/packages/ScriptSharp.0.7.5.1/tools/ScriptSharp.dll
  26. +67 −0 source/packages/ScriptSharp.0.7.5.1/tools/ScriptSharp.targets
  27. +13 −0 source/packages/ScriptSharp.0.7.5.1/tools/Uninstall.ps1
  28. BIN  source/packages/ScriptSharp.0.7.5.1/tools/mscorlib.dll
  29. +1,434 −0 source/packages/ScriptSharp.0.7.5.1/tools/mscorlib.xml
  30. BIN  source/packages/ScriptSharp.0.7.5.1/tools/ssc.exe
  31. BIN  source/packages/ScriptSharp.Lib.HTML.0.7.5.0/ScriptSharp.Lib.HTML.0.7.5.0.nupkg
  32. +22 −0 source/packages/ScriptSharp.Lib.HTML.0.7.5.0/ScriptSharp.Lib.HTML.0.7.5.0.nuspec
  33. BIN  source/packages/ScriptSharp.Lib.HTML.0.7.5.0/lib/Script.Web.dll
  34. +912 −0 source/packages/ScriptSharp.Lib.HTML.0.7.5.0/lib/Script.Web.xml
  35. BIN  source/packages/ScriptSharp.Lib.jQuery.0.7.5.0/ScriptSharp.Lib.jQuery.0.7.5.0.nupkg
  36. +23 −0 source/packages/ScriptSharp.Lib.jQuery.0.7.5.0/ScriptSharp.Lib.jQuery.0.7.5.0.nuspec
  37. BIN  source/packages/ScriptSharp.Lib.jQuery.0.7.5.0/lib/Script.jQuery.dll
  38. +22 −0 source/packages/ScriptSharp.Lib.jQuery.0.7.5.0/lib/Script.jQuery.txt
  39. +5,289 −0 source/packages/ScriptSharp.Lib.jQuery.0.7.5.0/lib/Script.jQuery.xml
  40. +8 −0 source/packages/repositories.config
  41. +101 −0 source/scriptsharp/Properties/FxCop.ruleset
  42. +12 −0 source/scriptsharp/Properties/Script.template
  43. +20 −26 source/scriptsharp/afung.MangaWeb3.Client.csproj
  44. +6 −0 source/scriptsharp/packages.config
  45. +101 −0 source/scriptsharpadmin/Properties/FxCop.ruleset
  46. +12 −0 source/scriptsharpadmin/Properties/Script.template
  47. +21 −26 source/scriptsharpadmin/afung.MangaWeb3.Client.Admin.csproj
  48. +6 −0 source/scriptsharpadmin/packages.config
  49. +101 −0 source/scriptsharpinstall/Properties/FxCop.ruleset
  50. +12 −0 source/scriptsharpinstall/Properties/Script.template
  51. +21 −26 source/scriptsharpinstall/afung.MangaWeb3.Client.Install.csproj
  52. +6 −0 source/scriptsharpinstall/packages.config
View
BIN  external_libraries/Newtonsoft.Json.dll
Binary file not shown
View
14 garther_amiupdate.ps1
@@ -0,0 +1,14 @@
+
+
+del C:\Projects\AmiUpdate\exe\*
+copy C:\Projects\AmiUpdate\AmiPriceCheck\bin\Debug\AmiPriceCheck.* C:\Projects\AmiUpdate\exe
+copy C:\Projects\AmiUpdate\AmiUpdate\bin\Debug\AmiUpdate.* C:\Projects\AmiUpdate\exe
+copy C:\Projects\AmiUpdate\BIJPriceCheck\bin\Debug\BIJPriceCheck.* C:\Projects\AmiUpdate\exe
+copy C:\Projects\AmiUpdate\BIJUpdate\bin\Debug\BIJUpdate.* C:\Projects\AmiUpdate\exe
+copy C:\Projects\AmiUpdate\HSPriceCheck\bin\Debug\HSPriceCheck.* C:\Projects\AmiUpdate\exe
+copy C:\Projects\AmiUpdate\HSUpdate\bin\Debug\HSUpdate.* C:\Projects\AmiUpdate\exe
+copy C:\Projects\AmiUpdate\AUMonitor\bin\Debug\AUMonitor.* C:\Projects\AmiUpdate\exe
+copy C:\Projects\AmiUpdate\AmiArchive\bin\Debug\AmiArchive.* C:\Projects\AmiUpdate\exe
+copy C:\Projects\AmiUpdate\ItemLinker\bin\Debug2\ItemLinker.* C:\Projects\AmiUpdate\exe
+del C:\Projects\AmiUpdate\exe\*.vshost.*
+del C:\Projects\AmiUpdate\exe\*.config
View
BIN  source/UpgradeLog.htm
Binary file not shown
View
44 source/afung.MangaWeb3.sln
@@ -1,19 +1,19 @@

-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Server", "aspnetserver\afung.MangaWeb3.Server.csproj", "{90E30188-F434-4DEB-9E4F-051720BE6BB0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Server.Install", "aspnetserverinstall\afung.MangaWeb3.Server.Install.csproj", "{0E9BAC79-12F0-4CBF-A01D-18CC7CBA2534}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Common", "csharpcommon\afung.MangaWeb3.Common.csproj", "{81F68F3B-5062-4C53-8F44-2268C03F41C4}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Client", "scriptsharp\afung.MangaWeb3.Client.csproj", "{53A8C0AB-E671-4B3B-AFCD-9E0D138CB184}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Common(script)", "csharpcommon\afung.MangaWeb3.Common(script).csproj", "{6C313034-A505-4EB8-B872-F82EDB156A0C}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Client.Install", "scriptsharpinstall\afung.MangaWeb3.Client.Install.csproj", "{44177DCD-39AC-4AF7-9A79-DFA3BCA76880}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Client", "scriptsharp\afung.MangaWeb3.Client.csproj", "{5C5344E5-0293-400E-8BD4-3F02F5B5120B}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Common(script)", "csharpcommon\afung.MangaWeb3.Common(script).csproj", "{3EC0878A-C555-4D59-A8B9-013AC1A4C0D4}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Client.Admin", "scriptsharpadmin\afung.MangaWeb3.Client.Admin.csproj", "{21DD56F5-C4B8-4F6B-81EB-C4CBD5F40878}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Client.Admin", "scriptsharpadmin\afung.MangaWeb3.Client.Admin.csproj", "{E133AAF3-2A31-4D8F-A876-7E2276551CE8}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "afung.MangaWeb3.Client.Install", "scriptsharpinstall\afung.MangaWeb3.Client.Install.csproj", "{1221FE10-977E-4275-A110-72023AD4A517}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -33,22 +33,22 @@ Global
{81F68F3B-5062-4C53-8F44-2268C03F41C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{81F68F3B-5062-4C53-8F44-2268C03F41C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{81F68F3B-5062-4C53-8F44-2268C03F41C4}.Release|Any CPU.Build.0 = Release|Any CPU
- {53A8C0AB-E671-4B3B-AFCD-9E0D138CB184}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {53A8C0AB-E671-4B3B-AFCD-9E0D138CB184}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {53A8C0AB-E671-4B3B-AFCD-9E0D138CB184}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {53A8C0AB-E671-4B3B-AFCD-9E0D138CB184}.Release|Any CPU.Build.0 = Release|Any CPU
- {44177DCD-39AC-4AF7-9A79-DFA3BCA76880}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {44177DCD-39AC-4AF7-9A79-DFA3BCA76880}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {44177DCD-39AC-4AF7-9A79-DFA3BCA76880}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {44177DCD-39AC-4AF7-9A79-DFA3BCA76880}.Release|Any CPU.Build.0 = Release|Any CPU
- {3EC0878A-C555-4D59-A8B9-013AC1A4C0D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3EC0878A-C555-4D59-A8B9-013AC1A4C0D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3EC0878A-C555-4D59-A8B9-013AC1A4C0D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3EC0878A-C555-4D59-A8B9-013AC1A4C0D4}.Release|Any CPU.Build.0 = Release|Any CPU
- {E133AAF3-2A31-4D8F-A876-7E2276551CE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E133AAF3-2A31-4D8F-A876-7E2276551CE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E133AAF3-2A31-4D8F-A876-7E2276551CE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E133AAF3-2A31-4D8F-A876-7E2276551CE8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6C313034-A505-4EB8-B872-F82EDB156A0C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6C313034-A505-4EB8-B872-F82EDB156A0C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6C313034-A505-4EB8-B872-F82EDB156A0C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6C313034-A505-4EB8-B872-F82EDB156A0C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5C5344E5-0293-400E-8BD4-3F02F5B5120B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5C5344E5-0293-400E-8BD4-3F02F5B5120B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5C5344E5-0293-400E-8BD4-3F02F5B5120B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5C5344E5-0293-400E-8BD4-3F02F5B5120B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {21DD56F5-C4B8-4F6B-81EB-C4CBD5F40878}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {21DD56F5-C4B8-4F6B-81EB-C4CBD5F40878}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {21DD56F5-C4B8-4F6B-81EB-C4CBD5F40878}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {21DD56F5-C4B8-4F6B-81EB-C4CBD5F40878}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1221FE10-977E-4275-A110-72023AD4A517}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1221FE10-977E-4275-A110-72023AD4A517}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1221FE10-977E-4275-A110-72023AD4A517}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1221FE10-977E-4275-A110-72023AD4A517}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
View
2  source/aspnetserver/Handler/MangaListRequestHandler.cs
@@ -18,7 +18,7 @@ public override void HandleRequest(string jsonString, AjaxBase ajax)
MangaListRequest request = Utility.ParseJson<MangaListRequest>(jsonString);
MangaListResponse response = new MangaListResponse();
response.items = Manga.ToListItemJsonArray(Manga.GetMangaList(ajax, request.filter));
-
+
ThreadHelper.Run("ProcessAutoAddStage1");
ajax.ReturnJson(response);
View
39 source/aspnetserver/ThreadHelper.cs
@@ -137,7 +137,6 @@ private static void ProcessAutoAddStage1(object[] parameters)
foreach (Collection collection in collections)
{
- Dictionary<string, object>[] resultSet = Database.Select("manga", "`cid`=" + Database.Quote(collection.Id.ToString()), null, null, "`path`");
List<FileInfo> filesUnderCollection = new List<FileInfo>();
DirectoryInfo collectionDirectory = new DirectoryInfo(collection.Path);
FileInfo[] empty = { };
@@ -153,21 +152,14 @@ private static void ProcessAutoAddStage1(object[] parameters)
continue;
}
- bool hit = false;
- foreach (Dictionary<string, object> result in resultSet)
- {
- if (fileUnderCollection.FullName.Equals(Convert.ToString(result["path"]), StringComparison.InvariantCultureIgnoreCase))
- {
- hit = true;
- break;
- }
- }
+ Dictionary<string, object>[] resultSet = Database.Select("manga", "`path`=" + Database.Quote(fileUnderCollection.FullName), null, null, "`path`");
- if (!hit)
+ if (resultSet.Length == 0)
{
files.Add(new object[] { fileUnderCollection.FullName, collection.Id });
}
}
+
}
ThreadHelper.Run("ProcessAutoAddStage2", files.ToArray(), 0);
@@ -216,5 +208,30 @@ private static void CollectionProcessFolderCache(object[] parameters)
collection.ProcessFolderCache();
}
}
+
+ /*
+ public static void LogErrorInText(string message)
+ {
+ DirectoryInfo dirInfo = new DirectoryInfo("C:\\mangaweb\\error");
+
+ try
+ {
+ if (!dirInfo.Exists)
+ {
+ dirInfo.Create();
+ }
+ }
+ catch
+ {
+ }
+
+ string filename = String.Format("C:\\mangaweb\\error\\error.txt");
+
+ using (StreamWriter sw = new StreamWriter(new FileStream(filename, FileMode.Append)))
+ {
+ sw.WriteLine(message);
+ }
+ }
+ //*/
}
}
View
18 source/aspnetserver/Web.config
@@ -1,13 +1,19 @@
<?xml version="1.0"?>
-
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
-
<configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.0" />
- </system.web>
+ <!--
+ For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
-</configuration>
+ The following attributes can be set on the <httpRuntime> tag.
+ <system.Web>
+ <httpRuntime targetFramework="4.5" />
+ </system.Web>
+ -->
+ <system.web>
+ <compilation debug="true" targetFramework="4.5"/>
+ <pages controlRenderingCompatibilityVersion="4.0"/>
+ </system.web>
+</configuration>
View
30 source/aspnetserver/afung.MangaWeb3.Server.csproj
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -12,7 +13,18 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>afung.MangaWeb3.Server</RootNamespace>
<AssemblyName>afung.MangaWeb3.Server</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ <OldToolsVersion>4.0</OldToolsVersion>
+ <TargetFrameworkProfile />
+ <UseIISExpress>false</UseIISExpress>
+ <IISExpressSSLPort />
+ <IISExpressAnonymousAuthentication />
+ <IISExpressWindowsAuthentication />
+ <IISExpressUseClassicPipelineMode />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -22,6 +34,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -30,6 +43,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
@@ -47,23 +61,22 @@
<Reference Include="SevenZipSharp">
<HintPath>..\..\external_libraries\SevenZipSharp.dll</HintPath>
</Reference>
+ <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Management" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System" />
<Reference Include="System.Data" />
- <Reference Include="System.Core" />
- <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms" />
- <Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
+ <Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Content Include="admin.html" />
@@ -88,7 +101,7 @@
<Content Include="js\afung.MangaWeb3.Common.debug.js" />
<Content Include="js\afung.MangaWeb3.Common.js" />
<Content Include="js\bootstrap.min.js" />
- <Content Include="js\jquery-1.8.2.min.js" />
+ <Content Include="js\jquery-1.9.0.min.js" />
<Content Include="js\jquery.touch.js" />
<Content Include="js\json2.js" />
<Content Include="js\mscorlib.debug.js" />
@@ -189,8 +202,13 @@
<ItemGroup>
<None Include="empty.pdf" />
</ItemGroup>
+ <PropertyGroup>
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+ </PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+ <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
View
8 source/aspnetserver/js/add2home.js
@@ -1,5 +1,5 @@
-/*!
- Add to Homescreen v2.0.5 ~ Copyright (c) 2013 Matteo Spinelli, http://cubiq.org
- Released under MIT license, http://cubiq.org/license
- */
+/*!
+ Add to Homescreen v2.0.5 ~ Copyright (c) 2013 Matteo Spinelli, http://cubiq.org
+ Released under MIT license, http://cubiq.org/license
+ */
var addToHome=(function(w){var nav=w.navigator,isIDevice='platform'in nav&&(/iphone|ipod|ipad/gi).test(nav.platform),isIPad,isRetina,isSafari,isStandalone,OSVersion,startX=0,startY=0,lastVisit=0,isExpired,isSessionActive,isReturningVisitor,balloon,overrideChecks,positionInterval,closeTimeout,options={autostart:true,returningVisitor:false,animationIn:'drop',animationOut:'fade',startDelay:2000,lifespan:15000,bottomOffset:14,expire:0,message:'',touchIcon:false,arrow:true,hookOnLoad:true,closeButton:true,iterations:100},intl={ar:'<span dir="rtl">قم بتثبيت هذا التطبيق على <span dir="ltr">%device:</span>انقر<span dir="ltr">%icon</span> ،<strong>ثم اضفه الى الشاشة الرئيسية.</strong></span>',ca_es:'Per instal·lar aquesta aplicació al vostre %device premeu %icon i llavors <strong>Afegir a pantalla d\'inici</strong>.',cs_cz:'Pro instalaci aplikace na Váš %device, stiskněte %icon a v nabídce <strong>Přidat na plochu</strong>.',da_dk:'Tilføj denne side til din %device: tryk på %icon og derefter <strong>Føj til hjemmeskærm</strong>.',de_de:'Installieren Sie diese App auf Ihrem %device: %icon antippen und dann <strong>Zum Home-Bildschirm</strong>.',el_gr:'Εγκαταστήσετε αυτήν την Εφαρμογή στήν συσκευή σας %device: %icon μετά πατάτε <strong>Προσθήκη σε Αφετηρία</strong>.',en_us:'Install this web app on your %device: tap %icon and then <strong>Add to Home Screen</strong>.',es_es:'Para instalar esta app en su %device, pulse %icon y seleccione <strong>Añadir a pantalla de inicio</strong>.',fi_fi:'Asenna tämä web-sovellus laitteeseesi %device: paina %icon ja sen jälkeen valitse <strong>Lisää Koti-valikkoon</strong>.',fr_fr:'Ajoutez cette application sur votre %device en cliquant sur %icon, puis <strong>Ajouter à l\'écran d\'accueil</strong>.',he_il:'<span dir="rtl">התקן אפליקציה זו על ה-%device שלך: הקש %icon ואז <strong>הוסף למסך הבית</strong>.</span>',hr_hr:'Instaliraj ovu aplikaciju na svoj %device: klikni na %icon i odaberi <strong>Dodaj u početni zaslon</strong>.',hu_hu:'Telepítse ezt a web-alkalmazást az Ön %device-jára: nyomjon a %icon-ra majd a <strong>Főképernyőhöz adás</strong> gombra.',it_it:'Installa questa applicazione sul tuo %device: premi su %icon e poi <strong>Aggiungi a Home</strong>.',ja_jp:'このウェブアプリをあなたの%deviceにインストールするには%iconをタップして<strong>ホーム画面に追加</strong>を選んでください。',ko_kr:'%device에 웹앱을 설치하려면 %icon을 터치 후 "홈화면에 추가"를 선택하세요',nb_no:'Installer denne appen på din %device: trykk på %icon og deretter <strong>Legg til på Hjem-skjerm</strong>',nl_nl:'Installeer deze webapp op uw %device: tik %icon en dan <strong>Voeg toe aan beginscherm</strong>.',pl_pl:'Aby zainstalować tę aplikacje na %device: naciśnij %icon a następnie <strong>Dodaj jako ikonę</strong>.',pt_br:'Instale este aplicativo em seu %device: aperte %icon e selecione <strong>Adicionar à Tela Inicio</strong>.',pt_pt:'Para instalar esta aplicação no seu %device, prima o %icon e depois o <strong>Adicionar ao ecrã principal</strong>.',ru_ru:'Установите это веб-приложение на ваш %device: нажмите %icon, затем <strong>Добавить в «Домой»</strong>.',sv_se:'Lägg till denna webbapplikation på din %device: tryck på %icon och därefter <strong>Lägg till på hemskärmen</strong>.',th_th:'ติดตั้งเว็บแอพฯ นี้บน %device ของคุณ: แตะ %icon และ <strong>เพิ่มที่หน้าจอโฮม</strong>',tr_tr:'Bu uygulamayı %device\'a eklemek için %icon simgesine sonrasında <strong>Ana Ekrana Ekle</strong> düğmesine basın.',zh_cn:'您可以将此应用程式安装到您的 %device 上。请按 %icon 然后点选<strong>添加至主屏幕</strong>。',zh_tw:'您可以將此應用程式安裝到您的 %device 上。請按 %icon 然後點選<strong>加入主畫面螢幕</strong>。'};function init(){if(!isIDevice)return;var now=Date.now(),title,i;if(w.addToHomeConfig){for(i in w.addToHomeConfig){options[i]=w.addToHomeConfig[i];}}if(!options.autostart)options.hookOnLoad=false;isIPad=(/ipad/gi).test(nav.platform);isRetina=w.devicePixelRatio&&w.devicePixelRatio>1;isSafari=(/Safari/i).test(nav.appVersion)&&!(/CriOS/i).test(nav.appVersion);isStandalone=nav.standalone;OSVersion=nav.appVersion.match(/OS (\d+_\d+)/i);OSVersion=OSVersion[1]?+OSVersion[1].replace('_','.'):0;lastVisit=+w.localStorage.getItem('addToHome');isSessionActive=w.sessionStorage.getItem('addToHomeSession');isReturningVisitor=options.returningVisitor?lastVisit&&lastVisit+28*24*60*60*1000>now:true;if(!lastVisit)lastVisit=now;isExpired=isReturningVisitor&&lastVisit<=now;if(options.hookOnLoad)w.addEventListener('load',loaded,false);else if(!options.hookOnLoad&&options.autostart)loaded();}function loaded(){w.removeEventListener('load',loaded,false);if(!isReturningVisitor)w.localStorage.setItem('addToHome',Date.now());else if(options.expire&&isExpired)w.localStorage.setItem('addToHome',Date.now()+options.expire*60000);if(!overrideChecks&&(!isSafari||!isExpired||isSessionActive||isStandalone||!isReturningVisitor))return;var touchIcon='',platform=nav.platform.split(' ')[0],language=nav.language.replace('-','_'),i,l;balloon=document.createElement('div');balloon.id='addToHomeScreen';balloon.style.cssText+='left:-9999px;-webkit-transition-property:-webkit-transform,opacity;-webkit-transition-duration:0;-webkit-transform:translate3d(0,0,0);position:'+(OSVersion<5?'absolute':'fixed');if(options.message in intl){language=options.message;options.message='';}if(options.message===''){options.message=language in intl?intl[language]:intl['en_us'];}if(options.touchIcon){touchIcon=isRetina?document.querySelector('head link[rel^=apple-touch-icon][sizes="114x114"],head link[rel^=apple-touch-icon][sizes="144x144"]'):document.querySelector('head link[rel^=apple-touch-icon][sizes="57x57"],head link[rel^=apple-touch-icon]');if(touchIcon){touchIcon='<span style="background-image:url('+touchIcon.href+')" class="addToHomeTouchIcon"></span>';}}balloon.className=(isIPad?'addToHomeIpad':'addToHomeIphone')+(touchIcon?' addToHomeWide':'');balloon.innerHTML=touchIcon+options.message.replace('%device',platform).replace('%icon',OSVersion>=4.2?'<span class="addToHomeShare"></span>':'<span class="addToHomePlus">+</span>')+(options.arrow?'<span class="addToHomeArrow"></span>':'')+(options.closeButton?'<span class="addToHomeClose">\u00D7</span>':'');document.body.appendChild(balloon);if(options.closeButton)balloon.addEventListener('click',clicked,false);if(!isIPad&&OSVersion>=6)window.addEventListener('orientationchange',orientationCheck,false);setTimeout(show,options.startDelay);}function show(){var duration,iPadXShift=208;if(isIPad){if(OSVersion<5){startY=w.scrollY;startX=w.scrollX;}else if(OSVersion<6){iPadXShift=160;}balloon.style.top=startY+options.bottomOffset+'px';balloon.style.left=startX+iPadXShift-Math.round(balloon.offsetWidth/2)+'px';switch(options.animationIn){case'drop':duration='0.6s';balloon.style.webkitTransform='translate3d(0,'+-(w.scrollY+options.bottomOffset+balloon.offsetHeight)+'px,0)';break;case'bubble':duration='0.6s';balloon.style.opacity='0';balloon.style.webkitTransform='translate3d(0,'+(startY+50)+'px,0)';break;default:duration='1s';balloon.style.opacity='0';}}else{startY=w.innerHeight+w.scrollY;if(OSVersion<5){startX=Math.round((w.innerWidth-balloon.offsetWidth)/2)+w.scrollX;balloon.style.left=startX+'px';balloon.style.top=startY-balloon.offsetHeight-options.bottomOffset+'px';}else{balloon.style.left='50%';balloon.style.marginLeft=-Math.round(balloon.offsetWidth/2)-(w.orientation%180&&OSVersion>=6?40:0)+'px';balloon.style.bottom=options.bottomOffset+'px';}switch(options.animationIn){case'drop':duration='1s';balloon.style.webkitTransform='translate3d(0,'+-(startY+options.bottomOffset)+'px,0)';break;case'bubble':duration='0.6s';balloon.style.webkitTransform='translate3d(0,'+(balloon.offsetHeight+options.bottomOffset+50)+'px,0)';break;default:duration='1s';balloon.style.opacity='0';}}balloon.offsetHeight;balloon.style.webkitTransitionDuration=duration;balloon.style.opacity='1';balloon.style.webkitTransform='translate3d(0,0,0)';balloon.addEventListener('webkitTransitionEnd',transitionEnd,false);closeTimeout=setTimeout(close,options.lifespan);}function manualShow(override){if(!isIDevice||balloon)return;overrideChecks=override;loaded();}function close(){clearInterval(positionInterval);clearTimeout(closeTimeout);closeTimeout=null;if(!balloon)return;var posY=0,posX=0,opacity='1',duration='0';if(options.closeButton)balloon.removeEventListener('click',clicked,false);if(!isIPad&&OSVersion>=6)window.removeEventListener('orientationchange',orientationCheck,false);if(OSVersion<5){posY=isIPad?w.scrollY-startY:w.scrollY+w.innerHeight-startY;posX=isIPad?w.scrollX-startX:w.scrollX+Math.round((w.innerWidth-balloon.offsetWidth)/2)-startX;}balloon.style.webkitTransitionProperty='-webkit-transform,opacity';switch(options.animationOut){case'drop':if(isIPad){duration='0.4s';opacity='0';posY=posY+50;}else{duration='0.6s';posY=posY+balloon.offsetHeight+options.bottomOffset+50;}break;case'bubble':if(isIPad){duration='0.8s';posY=posY-balloon.offsetHeight-options.bottomOffset-50;}else{duration='0.4s';opacity='0';posY=posY-50;}break;default:duration='0.8s';opacity='0';}balloon.addEventListener('webkitTransitionEnd',transitionEnd,false);balloon.style.opacity=opacity;balloon.style.webkitTransitionDuration=duration;balloon.style.webkitTransform='translate3d('+posX+'px,'+posY+'px,0)';}function clicked(){w.sessionStorage.setItem('addToHomeSession','1');isSessionActive=true;close();}function transitionEnd(){balloon.removeEventListener('webkitTransitionEnd',transitionEnd,false);balloon.style.webkitTransitionProperty='-webkit-transform';balloon.style.webkitTransitionDuration='0.2s';if(!closeTimeout){balloon.parentNode.removeChild(balloon);balloon=null;return;}if(OSVersion<5&&closeTimeout)positionInterval=setInterval(setPosition,options.iterations);}function setPosition(){var matrix=new WebKitCSSMatrix(w.getComputedStyle(balloon,null).webkitTransform),posY=isIPad?w.scrollY-startY:w.scrollY+w.innerHeight-startY,posX=isIPad?w.scrollX-startX:w.scrollX+Math.round((w.innerWidth-balloon.offsetWidth)/2)-startX;if(posY==matrix.m42&&posX==matrix.m41)return;balloon.style.webkitTransform='translate3d('+posX+'px,'+posY+'px,0)';}function reset(){w.localStorage.removeItem('addToHome');w.sessionStorage.removeItem('addToHomeSession');}function orientationCheck(){balloon.style.marginLeft=-Math.round(balloon.offsetWidth/2)-(w.orientation%180&&OSVersion>=6?40:0)+'px';}init();return{show:manualShow,close:close,reset:reset};})(window);
View
366 source/aspnetserver/lang/zh-hk.html
@@ -1,183 +1,183 @@
-<!-- This is language file for Chinese (Hong Kong) -->
-<p id="MangaWeb">MangaWeb</p>
-<p id="InstallMangaWeb">安裝 MangaWeb</p>
-<p id="PreinstallCheck">請稍等,MangaWeb 正在檢查它是否已安裝。</p>
-<p id="MySQL">MySQL</p>
-<p id="Error">錯誤</p>
-<p id="MySQLError">你的伺服器沒有安裝 MySql 插件,請檢查後重新開啓此安裝頁。</p>
-<p id="MySQLConnectError">你的設置無法連接 MySQL 伺服器,請重試。</p>
-<p id="GDError">你的伺服器沒有安裝 GD 插件,請檢查後重新開啓此安裝頁。</p>
-<p id="LoadSevenZipError">你的設置無法載入 7z.dll,請重試。</p>
-<p id="ZipExtensionError">你的伺服器沒有安裝 Zip 插件,無法使用 Zip。</p>
-<p id="RarExtensionError">你的伺服器沒有安裝 RAR 插件,無法使用 RAR。</p>
-<p id="PdfInfoError">你的伺服器沒有安裝 pdfinfo,無法使用 PDF。</p>
-<p id="PdfDrawError">你的伺服器沒有安裝 pdfdraw,無法使用 PDF。</p>
-<p id="Server">伺服器</p>
-<p id="Port">端口</p>
-<p id="UserName">用戶名</p>
-<p id="Password">密碼</p>
-<p id="ConfirmPassword">確定密碼</p>
-<p id="Database">數據庫</p>
-<p id="OtherComponents">其它組件</p>
-<p id="SevenZipDll">7z.dll</p>
-<p id="EnableZip">使用 Zip</p>
-<p id="EnableRar">使用 RAR</p>
-<p id="EnablePdf">使用 PDF</p>
-<p id="Administrator">管埋員</p>
-<p id="CheckSetting">檢查設置</p>
-<p id="InstallCreateAdministrator">在安裝程序中 MangaWeb 會建立一個管埋員,安裝後你可以建立更多使用者。</p>
-<p id="AlphabetsDigitsOnly">英文字母或數字</p>
-<p id="AtLeastEightCharacters">最少8個字符</p>
-<p id="EnterPasswordAgain">再次輸入密碼</p>
-<p id="Submit">提交</p>
-<p id="Cancel">取消</p>
-<p id="TemplateLoadError">無法載入模板檔 template/{0}.html ({1}),請檢查伺服器有沒有正確的檔案。</p>
-<p id="TemplateParseError">在模板檔 template/{0}.html 中找不到 (#{1}),請檢查伺服器有沒有正確的檔案。</p>
-<p id="TemplateGetError">在模板檔 template/{0}.html 中沒有 (#{1}),請檢查伺服器有沒有正確的檔案。</p>
-<p id="RequestFailed">伺服器請求失敗 ({0}),請再試一次。</p>
-<p id="MissingRequiredComponent">你的伺服器缺少所需的插件,請檢查上面的錯誤消息,再次打開這個安裝頁面。</p>
-<p id="NeedFileSupport">安裝 MangaWeb 伺服器需要至少一種文件的支援 (Zip、 RAR 或 PDF),請安裝所需的插件/應用程序後再次打開這個安裝頁面。</p>
-<p id="AdminUserSettingFailed">創建管理員的設置無效。請檢查。</p>
-<p id="Installing">正在安裝...請稍候。</p>
-<p id="InstallFinished">安裝完成了!</p>
-<p id="InstallFinishedLine2">點擊下面的按鈕,進入管理頁面來添加漫畫。</p>
-<p id="Go">前往</p>
-<p id="InstallFailed">安裝失敗!原因: ({0})。</p>
-<p id="MangaWebAdmin">MangaWeb 管理</p>
-<p id="PleaseWait">請稍候...</p>
-<p id="LoginCancelled">登入取消</p>
-<p id="WrongUserNameOrPassword">錯誤的用戶名或密碼。</p>
-<p id="WrongPassword">密碼錯誤。</p>
-<p id="LoginFailed">登入失敗: {0}</p>
-<p id="NoAdminRight">您沒有管理員權限訪問此頁。</p>
-<p id="Collection">匯集</p>
-<p id="Collections">匯集</p>
-<p id="Users">用戶</p>
-<p id="Mangas">漫畫</p>
-<p id="Login">登入</p>
-<p id="Logout">登出</p>
-<p id="Name">名稱</p>
-<p id="Path">路徑</p>
-<p id="Public">公開</p>
-<p id="AutoAdd">自動添加</p>
-<p id="Details">詳細信息</p>
-<p id="Delete">刪除</p>
-<p id="EditName">編輯名稱</p>
-<p id="SetAsPublic">設置為公開</p>
-<p id="SetAsPrivate">設置為私人</p>
-<p id="ActionOnSelected">行動選擇</p>
-<p id="Title">標題</p>
-<p id="Type">類型</p>
-<p id="Views">瀏覽次數</p>
-<p id="Meta">詳細資料</p>
-<p id="RefreshContent">更新內容</p>
-<p id="Access">存取</p>
-<p id="AllowAccess">允許存取</p>
-<p id="DenyAccess">拒絕存取</p>
-<p id="Add">添加</p>
-<p id="Filter">篩選</p>
-<p id="AddCollection">添加匯集</p>
-<p id="EditMangaMeta">編輯漫畫詳細資料</p>
-<p id="Author">作者</p>
-<p id="Volume">卷</p>
-<p id="Series">系列</p>
-<p id="Year">年份</p>
-<p id="Publisher">出版者</p>
-<p id="Tags">標籤</p>
-<p id="AddManga">添加漫畫</p>
-<p id="Apply">使用</p>
-<p id="AddUser">添加用戶</p>
-<p id="Settings">設置</p>
-<p id="AllowGuest">允許訪客</p>
-<p id="UnauthorizedError">伺服器無法處理您的請求,因為你沒有被授權。您可以嘗試與其他用戶登入。</p>
-<p id="UnknownError">未知的錯誤。</p>
-<p id="DuplicateCollectionName">已經有一個相同名稱的匯集。</p>
-<p id="InvalidCollectionPath">無效的路徑。路徑必須是一個目錄,而且必須不是另一個匯集的子文件夾或父文件夾。</p>
-<p id="Yes">是</p>
-<p id="No">否</p>
-<p id="DeleteCollectionsConfirm">確定刪除所選的匯集嗎?所有相關的漫畫也將被刪除。</p>
-<p id="SelectSingleItem">請只選擇一個項目。</p>
-<p id="SetAsAdministrator">設置為管理員</p>
-<p id="SetAsUser">設置為普通用戶</p>
-<p id="AddUserInvalidInput">用戶名或密碼無效,請更正然後再試一次。</p>
-<p id="DuplicateUserName">已經有一個相同名稱的用戶。</p>
-<p id="DeleteUsersConfirm">確定刪除所選的用戶嗎?</p>
-<p id="DeleteItemsConfirm">確定刪除所選的項目嗎?</p>
-<p id="FileNotFoundOrAlreadyAdded">未找到文件或文件已被添加。</p>
-<p id="PathNotUnderCollection">指定的路徑不是位於匯集的路徑下。</p>
-<p id="InvalidFileType">指定的文件的類型是無效的。</p>
-<p id="Browse">瀏覽</p>
-<p id="FileBrowser">文件瀏覽器</p>
-<p id="Select">選擇</p>
-<p id="CKFinderLanguage">zh-tw</p>
-<p id="Zip">Zip</p>
-<p id="RAR">RAR</p>
-<p id="PDF">PDF</p>
-<p id="Status">狀態</p>
-<p id="OK">OK</p>
-<p id="FileMissing">文件遺失</p>
-<p id="WrongFormat">格式錯誤</p>
-<p id="ContentMismatch">內容不相符</p>
-<p id="UnknownStatus">不明錯誤</p>
-<p id="DeleteMangasConfirm">確定刪除所選的漫畫嗎?</p>
-<p id="EditPath">編輯路徑</p>
-<p id="CopyMeta">複製詳細資料</p>
-<p id="PasteMeta">貼上詳細資料</p>
-<p id="All">全都</p>
-<p id="Folder">文件夾</p>
-<p id="Folders">文件夾</p>
-<p id="Search">搜尋</p>
-<p id="ChangePassword">更改密碼</p>
-<p id="TagColon">標籤:</p>
-<p id="AuthorColon">作者:</p>
-<p id="SeriesColon">系列:</p>
-<p id="VolumeColon">卷:</p>
-<p id="YearColon">年份:</p>
-<p id="PublisherColon">出版者:</p>
-<p id="TagsColon">標籤:</p>
-<p id="AllFolders">所有文件夾</p>
-<p id="CurrentFolderAndSubfolders">當前文件夾和子文件夾</p>
-<p id="CurrentFolderOnly">當前文件夾</p>
-<p id="Language">語言</p>
-<p id="Sort">排序</p>
-<p id="ByTitle">標題</p>
-<p id="ByNumberOfPages">頁數</p>
-<p id="BySize">大小</p>
-<p id="ByDate">日期</p>
-<p id="Random">隨機</p>
-<p id="DisplayType">顯示樣式</p>
-<p id="FitHeight">切合高度</p>
-<p id="FitScreen">切合畫面</p>
-<p id="FitWidth">切合寬度</p>
-<p id="FixiOSAutoDownscale">修正 iOS 自動縮圖</p>
-<p id="CurrentPassword">目前的密碼</p>
-<p id="NewPassword">新密碼</p>
-<p id="ChangePasswordInvalidInput">新的密碼無效,請更正它,然後再試一次。</p>
-<p id="AllMangas">所有漫畫</p>
-<p id="SearchResult">搜索結果</p>
-<p id="UnitPages">頁</p>
-<p id="GigaBytes">GB</p>
-<p id="MegaBytes">MB</p>
-<p id="KiloBytes">KB</p>
-<p id="Bytes">字節</p>
-<p id="NonBreakingSpace">&nbsp;</p>
-<p id="MangaNotAvailable">這個漫畫目前無法使用。</p>
-<p id="Next">下一本</p>
-<p id="ChangeDirection">轉向</p>
-<p id="ErrorLogs">錯誤記錄</p>
-<p id="Time">時間</p>
-<p id="Source">來源</p>
-<p id="Message">訊息</p>
-<p id="StackTrace">堆疊追蹤</p>
-<p id="Show">顯示</p>
-<p id="TimeFormat">{0:M月d日 H:mm:ss}</p>
-<p id="Loading">載入中...</p>
-<p id="NoItem">沒有項目</p>
-<p id="GuestNotAllowed">可能是因為不允許客人訪問,請嘗試登入。</p>
-<p id="PreprocessCount">預處理頁數</p>
-<p id="PreprocessDelay">預處理延遲</p>
-<p id="CacheLimit">緩存限額</p>
-<p id="Millisecond">毫秒</p>
-<p id="AnimationEffect">動畫效果</p>
-<p id="KindleRefreshDelay">Kindle 刷新延遲</p>
-<p id="AutoChangePage">自動轉頁</p>
+<!-- This is language file for Chinese (Hong Kong) -->
+<p id="MangaWeb">MangaWeb</p>
+<p id="InstallMangaWeb">安裝 MangaWeb</p>
+<p id="PreinstallCheck">請稍等,MangaWeb 正在檢查它是否已安裝。</p>
+<p id="MySQL">MySQL</p>
+<p id="Error">錯誤</p>
+<p id="MySQLError">你的伺服器沒有安裝 MySql 插件,請檢查後重新開啓此安裝頁。</p>
+<p id="MySQLConnectError">你的設置無法連接 MySQL 伺服器,請重試。</p>
+<p id="GDError">你的伺服器沒有安裝 GD 插件,請檢查後重新開啓此安裝頁。</p>
+<p id="LoadSevenZipError">你的設置無法載入 7z.dll,請重試。</p>
+<p id="ZipExtensionError">你的伺服器沒有安裝 Zip 插件,無法使用 Zip。</p>
+<p id="RarExtensionError">你的伺服器沒有安裝 RAR 插件,無法使用 RAR。</p>
+<p id="PdfInfoError">你的伺服器沒有安裝 pdfinfo,無法使用 PDF。</p>
+<p id="PdfDrawError">你的伺服器沒有安裝 pdfdraw,無法使用 PDF。</p>
+<p id="Server">伺服器</p>
+<p id="Port">端口</p>
+<p id="UserName">用戶名</p>
+<p id="Password">密碼</p>
+<p id="ConfirmPassword">確定密碼</p>
+<p id="Database">數據庫</p>
+<p id="OtherComponents">其它組件</p>
+<p id="SevenZipDll">7z.dll</p>
+<p id="EnableZip">使用 Zip</p>
+<p id="EnableRar">使用 RAR</p>
+<p id="EnablePdf">使用 PDF</p>
+<p id="Administrator">管埋員</p>
+<p id="CheckSetting">檢查設置</p>
+<p id="InstallCreateAdministrator">在安裝程序中 MangaWeb 會建立一個管埋員,安裝後你可以建立更多使用者。</p>
+<p id="AlphabetsDigitsOnly">英文字母或數字</p>
+<p id="AtLeastEightCharacters">最少8個字符</p>
+<p id="EnterPasswordAgain">再次輸入密碼</p>
+<p id="Submit">提交</p>
+<p id="Cancel">取消</p>
+<p id="TemplateLoadError">無法載入模板檔 template/{0}.html ({1}),請檢查伺服器有沒有正確的檔案。</p>
+<p id="TemplateParseError">在模板檔 template/{0}.html 中找不到 (#{1}),請檢查伺服器有沒有正確的檔案。</p>
+<p id="TemplateGetError">在模板檔 template/{0}.html 中沒有 (#{1}),請檢查伺服器有沒有正確的檔案。</p>
+<p id="RequestFailed">伺服器請求失敗 ({0}),請再試一次。</p>
+<p id="MissingRequiredComponent">你的伺服器缺少所需的插件,請檢查上面的錯誤消息,再次打開這個安裝頁面。</p>
+<p id="NeedFileSupport">安裝 MangaWeb 伺服器需要至少一種文件的支援 (Zip、 RAR 或 PDF),請安裝所需的插件/應用程序後再次打開這個安裝頁面。</p>
+<p id="AdminUserSettingFailed">創建管理員的設置無效。請檢查。</p>
+<p id="Installing">正在安裝...請稍候。</p>
+<p id="InstallFinished">安裝完成了!</p>
+<p id="InstallFinishedLine2">點擊下面的按鈕,進入管理頁面來添加漫畫。</p>
+<p id="Go">前往</p>
+<p id="InstallFailed">安裝失敗!原因: ({0})。</p>
+<p id="MangaWebAdmin">MangaWeb 管理</p>
+<p id="PleaseWait">請稍候...</p>
+<p id="LoginCancelled">登入取消</p>
+<p id="WrongUserNameOrPassword">錯誤的用戶名或密碼。</p>
+<p id="WrongPassword">密碼錯誤。</p>
+<p id="LoginFailed">登入失敗: {0}</p>
+<p id="NoAdminRight">您沒有管理員權限訪問此頁。</p>
+<p id="Collection">匯集</p>
+<p id="Collections">匯集</p>
+<p id="Users">用戶</p>
+<p id="Mangas">漫畫</p>
+<p id="Login">登入</p>
+<p id="Logout">登出</p>
+<p id="Name">名稱</p>
+<p id="Path">路徑</p>
+<p id="Public">公開</p>
+<p id="AutoAdd">自動添加</p>
+<p id="Details">詳細信息</p>
+<p id="Delete">刪除</p>
+<p id="EditName">編輯名稱</p>
+<p id="SetAsPublic">設置為公開</p>
+<p id="SetAsPrivate">設置為私人</p>
+<p id="ActionOnSelected">行動選擇</p>
+<p id="Title">標題</p>
+<p id="Type">類型</p>
+<p id="Views">瀏覽次數</p>
+<p id="Meta">詳細資料</p>
+<p id="RefreshContent">更新內容</p>
+<p id="Access">存取</p>
+<p id="AllowAccess">允許存取</p>
+<p id="DenyAccess">拒絕存取</p>
+<p id="Add">添加</p>
+<p id="Filter">篩選</p>
+<p id="AddCollection">添加匯集</p>
+<p id="EditMangaMeta">編輯漫畫詳細資料</p>
+<p id="Author">作者</p>
+<p id="Volume">卷</p>
+<p id="Series">系列</p>
+<p id="Year">年份</p>
+<p id="Publisher">出版者</p>
+<p id="Tags">標籤</p>
+<p id="AddManga">添加漫畫</p>
+<p id="Apply">使用</p>
+<p id="AddUser">添加用戶</p>
+<p id="Settings">設置</p>
+<p id="AllowGuest">允許訪客</p>
+<p id="UnauthorizedError">伺服器無法處理您的請求,因為你沒有被授權。您可以嘗試與其他用戶登入。</p>
+<p id="UnknownError">未知的錯誤。</p>
+<p id="DuplicateCollectionName">已經有一個相同名稱的匯集。</p>
+<p id="InvalidCollectionPath">無效的路徑。路徑必須是一個目錄,而且必須不是另一個匯集的子文件夾或父文件夾。</p>
+<p id="Yes">是</p>
+<p id="No">否</p>
+<p id="DeleteCollectionsConfirm">確定刪除所選的匯集嗎?所有相關的漫畫也將被刪除。</p>
+<p id="SelectSingleItem">請只選擇一個項目。</p>
+<p id="SetAsAdministrator">設置為管理員</p>
+<p id="SetAsUser">設置為普通用戶</p>
+<p id="AddUserInvalidInput">用戶名或密碼無效,請更正然後再試一次。</p>
+<p id="DuplicateUserName">已經有一個相同名稱的用戶。</p>
+<p id="DeleteUsersConfirm">確定刪除所選的用戶嗎?</p>
+<p id="DeleteItemsConfirm">確定刪除所選的項目嗎?</p>
+<p id="FileNotFoundOrAlreadyAdded">未找到文件或文件已被添加。</p>
+<p id="PathNotUnderCollection">指定的路徑不是位於匯集的路徑下。</p>
+<p id="InvalidFileType">指定的文件的類型是無效的。</p>
+<p id="Browse">瀏覽</p>
+<p id="FileBrowser">文件瀏覽器</p>
+<p id="Select">選擇</p>
+<p id="CKFinderLanguage">zh-tw</p>
+<p id="Zip">Zip</p>
+<p id="RAR">RAR</p>
+<p id="PDF">PDF</p>
+<p id="Status">狀態</p>
+<p id="OK">OK</p>
+<p id="FileMissing">文件遺失</p>
+<p id="WrongFormat">格式錯誤</p>
+<p id="ContentMismatch">內容不相符</p>
+<p id="UnknownStatus">不明錯誤</p>
+<p id="DeleteMangasConfirm">確定刪除所選的漫畫嗎?</p>
+<p id="EditPath">編輯路徑</p>
+<p id="CopyMeta">複製詳細資料</p>
+<p id="PasteMeta">貼上詳細資料</p>
+<p id="All">全都</p>
+<p id="Folder">文件夾</p>
+<p id="Folders">文件夾</p>
+<p id="Search">搜尋</p>
+<p id="ChangePassword">更改密碼</p>
+<p id="TagColon">標籤:</p>
+<p id="AuthorColon">作者:</p>
+<p id="SeriesColon">系列:</p>
+<p id="VolumeColon">卷:</p>
+<p id="YearColon">年份:</p>
+<p id="PublisherColon">出版者:</p>
+<p id="TagsColon">標籤:</p>
+<p id="AllFolders">所有文件夾</p>
+<p id="CurrentFolderAndSubfolders">當前文件夾和子文件夾</p>
+<p id="CurrentFolderOnly">當前文件夾</p>
+<p id="Language">語言</p>
+<p id="Sort">排序</p>
+<p id="ByTitle">標題</p>
+<p id="ByNumberOfPages">頁數</p>
+<p id="BySize">大小</p>
+<p id="ByDate">日期</p>
+<p id="Random">隨機</p>
+<p id="DisplayType">顯示樣式</p>
+<p id="FitHeight">切合高度</p>
+<p id="FitScreen">切合畫面</p>
+<p id="FitWidth">切合寬度</p>
+<p id="FixiOSAutoDownscale">修正 iOS 自動縮圖</p>
+<p id="CurrentPassword">目前的密碼</p>
+<p id="NewPassword">新密碼</p>
+<p id="ChangePasswordInvalidInput">新的密碼無效,請更正它,然後再試一次。</p>
+<p id="AllMangas">所有漫畫</p>
+<p id="SearchResult">搜索結果</p>
+<p id="UnitPages">頁</p>
+<p id="GigaBytes">GB</p>
+<p id="MegaBytes">MB</p>
+<p id="KiloBytes">KB</p>
+<p id="Bytes">字節</p>
+<p id="NonBreakingSpace">&nbsp;</p>
+<p id="MangaNotAvailable">這個漫畫目前無法使用。</p>
+<p id="Next">下一本</p>
+<p id="ChangeDirection">轉向</p>
+<p id="ErrorLogs">錯誤記錄</p>
+<p id="Time">時間</p>
+<p id="Source">來源</p>
+<p id="Message">訊息</p>
+<p id="StackTrace">堆疊追蹤</p>
+<p id="Show">顯示</p>
+<p id="TimeFormat">{0:M月d日 H:mm:ss}</p>
+<p id="Loading">載入中...</p>
+<p id="NoItem">沒有項目</p>
+<p id="GuestNotAllowed">可能是因為不允許客人訪問,請嘗試登入。</p>
+<p id="PreprocessCount">預處理頁數</p>
+<p id="PreprocessDelay">預處理延遲</p>
+<p id="CacheLimit">緩存限額</p>
+<p id="Millisecond">毫秒</p>
+<p id="AnimationEffect">動畫效果</p>
+<p id="KindleRefreshDelay">Kindle 刷新延遲</p>
+<p id="AutoChangePage">自動轉頁</p>
View
18 source/aspnetserverinstall/Web.config
@@ -1,13 +1,19 @@
<?xml version="1.0"?>
-
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
-
<configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.0" />
- </system.web>
+ <!--
+ For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
-</configuration>
+ The following attributes can be set on the <httpRuntime> tag.
+ <system.Web>
+ <httpRuntime targetFramework="4.5" />
+ </system.Web>
+ -->
+ <system.web>
+ <compilation debug="true" targetFramework="4.5"/>
+ <pages controlRenderingCompatibilityVersion="4.0"/>
+ </system.web>
+</configuration>
View
28 source/aspnetserverinstall/afung.MangaWeb3.Server.Install.csproj
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -12,7 +13,18 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>afung.MangaWeb3.Server.Install</RootNamespace>
<AssemblyName>afung.MangaWeb3.Server.Install</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ <OldToolsVersion>4.0</OldToolsVersion>
+ <TargetFrameworkProfile />
+ <UseIISExpress>false</UseIISExpress>
+ <IISExpressSSLPort />
+ <IISExpressAnonymousAuthentication />
+ <IISExpressWindowsAuthentication />
+ <IISExpressUseClassicPipelineMode />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -22,6 +34,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -30,6 +43,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
@@ -41,21 +55,20 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\external_libraries\SevenZipSharp.dll</HintPath>
</Reference>
+ <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System" />
<Reference Include="System.Data" />
- <Reference Include="System.Core" />
- <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" />
- <Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
+ <Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Content Include="InstallAjax.aspx" />
@@ -91,8 +104,13 @@
<Name>afung.MangaWeb3.Common</Name>
</ProjectReference>
</ItemGroup>
+ <PropertyGroup>
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+ </PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+ <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
View
101 source/csharpcommon/Properties/FxCop.ruleset
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RuleSet Name="Script# Rules" Description="General Script Rules" ToolsVersion="10.0">
+ <Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
+ <Rule Id="CA1000" Action="Warning" />
+ <Rule Id="CA1001" Action="Warning" />
+ <Rule Id="CA1008" Action="Warning" />
+ <Rule Id="CA1009" Action="Warning" />
+ <Rule Id="CA1010" Action="Warning" />
+ <Rule Id="CA1011" Action="Warning" />
+ <Rule Id="CA1012" Action="Warning" />
+ <Rule Id="CA1013" Action="Warning" />
+ <Rule Id="CA1016" Action="Warning" />
+ <Rule Id="CA1018" Action="Warning" />
+ <Rule Id="CA1019" Action="Warning" />
+ <Rule Id="CA1020" Action="Warning" />
+ <Rule Id="CA1021" Action="Warning" />
+ <Rule Id="CA1023" Action="Warning" />
+ <Rule Id="CA1024" Action="Warning" />
+ <Rule Id="CA1026" Action="Warning" />
+ <Rule Id="CA1027" Action="Warning" />
+ <Rule Id="CA1028" Action="Warning" />
+ <Rule Id="CA1030" Action="Warning" />
+ <Rule Id="CA1032" Action="Warning" />
+ <Rule Id="CA1033" Action="Warning" />
+ <Rule Id="CA1034" Action="Warning" />
+ <Rule Id="CA1036" Action="Warning" />
+ <Rule Id="CA1040" Action="Warning" />
+ <Rule Id="CA1041" Action="Warning" />
+ <Rule Id="CA1043" Action="Warning" />
+ <Rule Id="CA1044" Action="Warning" />
+ <Rule Id="CA1045" Action="Warning" />
+ <Rule Id="CA1046" Action="Warning" />
+ <Rule Id="CA1047" Action="Warning" />
+ <Rule Id="CA1048" Action="Warning" />
+ <Rule Id="CA1052" Action="Warning" />
+ <Rule Id="CA1053" Action="Warning" />
+ <Rule Id="CA1058" Action="Warning" />
+ <Rule Id="CA1059" Action="Warning" />
+ <Rule Id="CA1061" Action="Warning" />
+ <Rule Id="CA1065" Action="Warning" />
+ <Rule Id="CA1500" Action="Warning" />
+ <Rule Id="CA1501" Action="Warning" />
+ <Rule Id="CA1502" Action="Warning" />
+ <Rule Id="CA1504" Action="Warning" />
+ <Rule Id="CA1505" Action="Warning" />
+ <Rule Id="CA1506" Action="Warning" />
+ <Rule Id="CA1700" Action="Warning" />
+ <Rule Id="CA1701" Action="Warning" />
+ <Rule Id="CA1702" Action="Warning" />
+ <Rule Id="CA1703" Action="Warning" />
+ <Rule Id="CA1704" Action="Warning" />
+ <Rule Id="CA1707" Action="Warning" />
+ <Rule Id="CA1708" Action="Warning" />
+ <Rule Id="CA1709" Action="Warning" />
+ <Rule Id="CA1710" Action="Warning" />
+ <Rule Id="CA1711" Action="Warning" />
+ <Rule Id="CA1712" Action="Warning" />
+ <Rule Id="CA1713" Action="Warning" />
+ <Rule Id="CA1714" Action="Warning" />
+ <Rule Id="CA1715" Action="Warning" />
+ <Rule Id="CA1716" Action="Warning" />
+ <Rule Id="CA1717" Action="Warning" />
+ <Rule Id="CA1719" Action="Warning" />
+ <Rule Id="CA1720" Action="Warning" />
+ <Rule Id="CA1721" Action="Warning" />
+ <Rule Id="CA1722" Action="Warning" />
+ <Rule Id="CA1724" Action="Warning" />
+ <Rule Id="CA1725" Action="Warning" />
+ <Rule Id="CA1726" Action="Warning" />
+ <Rule Id="CA1800" Action="Warning" />
+ <Rule Id="CA1801" Action="Warning" />
+ <Rule Id="CA1802" Action="Warning" />
+ <Rule Id="CA1804" Action="Warning" />
+ <Rule Id="CA1806" Action="Warning" />
+ <Rule Id="CA1809" Action="Warning" />
+ <Rule Id="CA1811" Action="Warning" />
+ <Rule Id="CA1812" Action="Warning" />
+ <Rule Id="CA1813" Action="Warning" />
+ <Rule Id="CA1814" Action="Warning" />
+ <Rule Id="CA1815" Action="Warning" />
+ <Rule Id="CA1819" Action="Warning" />
+ <Rule Id="CA1820" Action="Warning" />
+ <Rule Id="CA1821" Action="Warning" />
+ <Rule Id="CA2201" Action="Warning" />
+ <Rule Id="CA2202" Action="Warning" />
+ <Rule Id="CA2204" Action="Warning" />
+ <Rule Id="CA2207" Action="Warning" />
+ <Rule Id="CA2213" Action="Warning" />
+ <Rule Id="CA2214" Action="Warning" />
+ <Rule Id="CA2215" Action="Warning" />
+ <Rule Id="CA2217" Action="Warning" />
+ <Rule Id="CA2218" Action="Warning" />
+ <Rule Id="CA2219" Action="Warning" />
+ <Rule Id="CA2222" Action="Warning" />
+ <Rule Id="CA2223" Action="Warning" />
+ <Rule Id="CA2224" Action="Warning" />
+ <Rule Id="CA2226" Action="Warning" />
+ <Rule Id="CA2227" Action="Warning" />
+ <Rule Id="CA2233" Action="Warning" />
+ </Rules>
+</RuleSet>
View
12 source/csharpcommon/Properties/Script.template
@@ -0,0 +1,12 @@
+//! MangaWeb3 #= ScriptFile ##
+//! https://github.com/a-fung/MangaWeb3
+//!
+//! Copyright 2012 Man Kwan Liu
+//! Released under the Apache License Version 2.0
+//! http://www.apache.org/licenses/
+
+(function() {
+#include[as-is] "%code%"
+})();
+
+//! This script was generated using Script# v#= CompilerVersion ##
View
63 source/csharpcommon/afung.MangaWeb3.Common(script).csproj
@@ -5,23 +5,18 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{3EC0878A-C555-4D59-A8B9-013AC1A4C0D4}</ProjectGuid>
+ <ProjectGuid>{6C313034-A505-4EB8-B872-F82EDB156A0C}</ProjectGuid>
<OutputType>Library</OutputType>
- <NoStdLib>True</NoStdLib>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <TargetFrameworkProfile />
- <LangVersion>ISO-2</LangVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>afung.MangaWeb3.Common</RootNamespace>
<AssemblyName>afung.MangaWeb3.Common</AssemblyName>
- <TemplateFile>Properties\afung.MangaWeb3.Common.script</TemplateFile>
- <CodeAnalysisRuleSet>Properties\afung.MangaWeb3.Common.ruleset</CodeAnalysisRuleSet>
- <ReferencePath>$(ProgramFiles)\ScriptSharp\v1.0\Framework\</ReferencePath>
+ <ScriptTemplate>Properties\Script.template</ScriptTemplate>
+ <CodeAnalysisRuleSet>Properties\FxCop.ruleset</CodeAnalysisRuleSet>
+ <GenerateScript>True</GenerateScript>
+ <GenerateResources>True</GenerateResources>
<DeploymentPath>..\aspnetserver\js</DeploymentPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>pdbonly</DebugType>
<OutputPath>scriptbin\Debug\</OutputPath>
<DefineConstants>DEBUG;CODE_ANALYSIS;SCRIPTSHARP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
@@ -30,8 +25,6 @@
<DocumentationFile>scriptbin\Debug\afung.MangaWeb3.Common.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>pdbonly</DebugType>
<OutputPath>scriptbin\Release\</OutputPath>
<DefineConstants>CODE_ANALYSIS;SCRIPTSHARP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
@@ -40,10 +33,12 @@
<DocumentationFile>scriptbin\Release\afung.MangaWeb3.Common.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
- <Reference Include="mscorlib, Version=0.7.0.0, Culture=neutral, PublicKeyToken=8fc0e3af5abcb6c4, processorArchitecture=MSIL" />
- <Reference Include="Script.Web" />
- </ItemGroup>
- <ItemGroup>
+ <Compile Include="SearchModuleRequest.cs" />
+ <Compile Include="SearchModuleResponse.cs" />
+ <Compile Include="UserJson.cs" />
+ <None Include="packages.config" />
+ <None Include="Properties\FxCop.ruleset" />
+ <None Include="Properties\Script.template" />
<Compile Include="AdminCollectionAddRequest.cs" />
<Compile Include="AdminCollectionAddResponse.cs" />
<Compile Include="AdminCollectionEditNameRequest.cs" />
@@ -70,8 +65,8 @@
<Compile Include="AdminMangaFilterResponse.cs" />
<Compile Include="AdminMangaMetaEditRequest.cs" />
<Compile Include="AdminMangaMetaGetRequest.cs" />
- <Compile Include="AdminMangaMetaJson.cs" />
<Compile Include="AdminMangaMetaGetResponse.cs" />
+ <Compile Include="AdminMangaMetaJson.cs" />
<Compile Include="AdminMangasDeleteRequest.cs" />
<Compile Include="AdminMangasGetRequest.cs" />
<Compile Include="AdminMangasGetResponse.cs" />
@@ -87,13 +82,22 @@
<Compile Include="AdminUsersSetAdminRequest.cs" />
<Compile Include="ChangePasswordRequest.cs" />
<Compile Include="ChangePasswordResponse.cs" />
+ <Compile Include="CheckMySqlSettingRequest.cs" />
+ <Compile Include="CheckMySqlSettingResponse.cs" />
+ <Compile Include="CheckOtherComponentRequest.cs" />
+ <Compile Include="CheckOtherComponentResponse.cs" />
<Compile Include="CollectionJson.cs" />
<Compile Include="CollectionUserJson.cs" />
<Compile Include="Constants.cs" />
<Compile Include="ErrorLogJson.cs" />
+ <Compile Include="ErrorResponse.cs" />
<Compile Include="FolderJson.cs" />
<Compile Include="FolderRequest.cs" />
<Compile Include="FolderResponse.cs" />
+ <Compile Include="InstallRequest.cs" />
+ <Compile Include="InstallResponse.cs" />
+ <Compile Include="JsonRequest.cs" />
+ <Compile Include="JsonResponse.cs" />
<Compile Include="LoginRequest.cs" />
<Compile Include="LoginResponse.cs" />
<Compile Include="MangaDirectionRequest.cs" />
@@ -110,23 +114,18 @@
<Compile Include="MangaReadRequest.cs" />
<Compile Include="MangaReadResponse.cs" />
<Compile Include="MangaSearchFilter.cs" />
- <Compile Include="SearchModuleRequest.cs" />
- <Compile Include="SearchModuleResponse.cs" />
- <Compile Include="UserJson.cs" />
- <Content Include="Properties\afung.MangaWeb3.Common.ruleset" />
- <Content Include="Properties\afung.MangaWeb3.Common.script" />
- <Compile Include="CheckMySqlSettingRequest.cs" />
- <Compile Include="CheckMySqlSettingResponse.cs" />
- <Compile Include="CheckOtherComponentRequest.cs" />
- <Compile Include="CheckOtherComponentResponse.cs" />
- <Compile Include="ErrorResponse.cs" />
- <Compile Include="InstallRequest.cs" />
- <Compile Include="InstallResponse.cs" />
- <Compile Include="JsonRequest.cs" />
- <Compile Include="JsonResponse.cs" />
<Compile Include="PreInstallCheckRequest.cs" />
<Compile Include="PreInstallCheckResponse.cs" />
<Compile Include="Properties\AssemblyInfoScript.cs" />
</ItemGroup>
- <Import Project="$(ProgramFiles)\ScriptSharp\v1.0\ScriptSharp.targets" />
+ <ItemGroup>
+ <Reference Include="Script.jQuery">
+ <HintPath>..\packages\ScriptSharp.Lib.jQuery.0.7.5.0\lib\Script.jQuery.dll</HintPath>
+ </Reference>
+ <Reference Include="Script.Web">
+ <HintPath>..\packages\ScriptSharp.Lib.HTML.0.7.5.0\lib\Script.Web.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="..\packages\ScriptSharp.0.7.5.1\tools\ScriptSharp.targets" Condition="Exists('..\packages\ScriptSharp.0.7.5.1\tools\ScriptSharp.targets')" />
</Project>
View
5 source/csharpcommon/afung.MangaWeb3.Common.csproj
@@ -10,8 +10,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>afung.MangaWeb3.Common</RootNamespace>
<AssemblyName>afung.MangaWeb3.Common</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -21,6 +22,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -29,6 +31,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
+ <Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Compile Include="AdminCollectionAddRequest.cs" />
View
6 source/csharpcommon/packages.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="ScriptSharp" version="0.7.5.1" targetFramework="net40" />
+ <package id="ScriptSharp.Lib.HTML" version="0.7.5.0" targetFramework="net40" />
+ <package id="ScriptSharp.Lib.jQuery" version="0.7.5.0" targetFramework="net40" />
+</packages>
View
816 source/less/mangaweb.less
@@ -1,409 +1,409 @@
-body {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif, "Meiryo UI", "MS UI Gothic", "MS PGothic", "MS Pゴシック", "MS Gothic", "MS ゴシック","Microsoft JHengHei UI", "Microsoft JHengHei", "微軟正黑體", MingLiU, "細明體";
-}
-
-code,
-pre {
- font-family: Monaco, Menlo, Consolas, "Courier New", monospace, "Meiryo UI", "MS UI Gothic", "MS PGothic", "MS Pゴシック", "MS Gothic", "MS ゴシック","Microsoft JHengHei UI", "Microsoft JHengHei", "微軟正黑體", MingLiU, "細明體";
-}
-
-input,
-button,
-select,
-textarea {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif, "Meiryo UI", "MS UI Gothic", "MS PGothic", "MS Pゴシック", "MS Gothic", "MS ゴシック","Microsoft JHengHei UI", "Microsoft JHengHei", "微軟正黑體", MingLiU, "細明體";
-}
-
-.navbar-search .search-query {
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif, "Meiryo UI", "MS UI Gothic", "MS PGothic", "MS Pゴシック", "MS Gothic", "MS ゴシック","Microsoft JHengHei UI", "Microsoft JHengHei", "微軟正黑體", MingLiU, "細明體";
-}
-
-.temp {
- display: none;
-}
-
-.text-left {
- text-align:left;
-}
-
-.text-center {
- text-align:center;
-}
-
-.modal {
- overflow: hidden;
-
- form {
- margin: 0;
- }
-}
-
-.nav-admin, .nav-main {
- margin-top:15px;
-}
-
-.select-tall {
- height:100px;
-}
-
-.table {
- tr.vmiddle {
- input[type="checkbox"] {
- position:relative;
- bottom:2px;
- }
-
- td {
- vertical-align:middle;
- }
- }
-
- th.text-center, td.text-center {
- .text-center;
- }
-
- th.td-mini, td.td-mini {
- width:30px;
- }
-
- th.td-small, td.td-small {
- width:100px;
- }
-
- td.break-word {
- word-wrap: break-word;
- }
-}
-
-.row-after-table {
- .btn-toolbar {
- margin-top: 0;
- }
-
- .pagination {
- margin-top: 0;
- }
-}
-
-#error-modal.modal {
- z-index:1500;
-}
-
-#confirm-modal.modal {
- z-index:1450;
-}
-
-#login-modal.modal {
- z-index:1400;
-}
-
-#admin-finder-modal.modal {
- z-index:1350;
-}
-
-#admin-finder-body.modal-body {
- height: 400px;
- padding: 0;
-
- iframe {
- display: block;
- height: 400px;
- }
-}
-
-.typeahead {
- z-index:2000;
-}
-
-.dropdown.open > a {
- >[class^="icon-"], >[class*=" icon-"] {
- background-image: url("../img/glyphicons-halflings-white.png");
- }
-}
-
-#mangas-list {
- .thumbnails {
- .thumbnail:hover {
- border-color: #08C;
- -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
- -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
- box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
- }
-
- .thumbnail {
- overflow: hidden;
-
- .caption {
- h4:first-child {
- margin-top: 0;
- }
-
- .mangas-list-item-details p {
- font-size: 12px;
- line-height: 16px;
- margin-bottom: 8px;
- }
-
- p:last-child {
- margin-bottom: 0;
- }
- }
-
- img {
- display: block;
- margin-left: auto;
- margin-right: auto;
- background-image: url("../img/loading.gif");
- background-repeat: no-repeat;
- background-position: center center;
- max-height: 200px;
- }
- }
- }
-}
-#folders-module {
- td {
- vertical-align:top;
- white-space:nowrap;
-
- .folders-expand-btn {
- display:block;
- margin-top:8px;
-
- i {
- display:block;
- }
- }
- }
-}
-
-.pagination {
- height: auto;
-}
-
-.height-transition {
- -webkit-transition: height .25s ease-out;
- -moz-transition: height .25s ease-out;
- -o-transition: height .25s ease-out;
- transition: height .25s ease-out;
-}
-
-.height-transition-suppress {
- -webkit-transition: height 0;
- -moz-transition: height 0;
- -o-transition: height 0;
- transition: height 0;
-}
-
-@media (max-width: 767px) {
- #read-module {
- margin: 0 -20px;
- }
-}
-
-#read-module {
- display: block;
- position: relative;
- overflow: hidden;
- min-width:300px;
- min-height:300px;
-
- #read-manga-area {
- position: absolute;
- width: 100%;
- height: 100%;
-
- #read-manga-area-inner {
- -webkit-transition: all 0;
- -moz-transition: all 0;
- -o-transition: all 0;
- transition: all 0;
- height: 100%;
- }
-
- #read-manga-area-inner.navigate {
- -webkit-transition: all 0.2s ease-in-out;
- -moz-transition: all 0.2s ease-in-out;
- -o-transition: all 0.2s ease-in-out;
- transition: all 0.2s ease-in-out;
- }
-
- #read-manga-area-inner.fade {
- -webkit-transition: opacity .15s linear;
- -moz-transition: opacity .15s linear;
- -o-transition: opacity .15s linear;
- transition: opacity .15s linear;
- }
-
- #read-manga-area-inner.inertia {
- -webkit-transition: all 0.2s ease-out;
- -moz-transition: all 0.2s ease-out;
- -o-transition: all 0.2s ease-out;
- transition: all 0.2s ease-out;
- }
-
- #read-manga-area-inner.inertia-bounce {
- -webkit-transition: all 0.15s ease-in-out;
- -moz-transition: all 0.15s ease-in-out;
- -o-transition: all 0.15s ease-in-out;
- transition: all 0.15s ease-in-out;
- }
-
- .read-manga-page {
- position: absolute;
- border: 1px solid white;
- border-width: 0 1px;
- }
-
- .read-manga-page.inertia {
- -webkit-transition: all 0.2s ease-out;
- -moz-transition: all 0.2s ease-out;
- -o-transition: all 0.2s ease-out;
- transition: all 0.2s ease-out;
- }
-
- .read-manga-page.inertia-bounce {
- -webkit-transition: all 0.15s ease-in-out;
- -moz-transition: all 0.15s ease-in-out;
- -o-transition: all 0.15s ease-in-out;
- transition: all 0.15s ease-in-out;
- }
-
- .read-manga-page img:first-child {
- float: left;
- }
-
- .read-manga-page img:last-child {
- float: right;
- }
-
- img {
- display:block;
- width: auto;
- height: auto;
- max-width: none;
- max-height: none;
- }
- }
-
- #read-button-area.show a {
- opacity: 1;
- }
-
- #read-loading {
- position: absolute;
- left: 50%;
- top: 3px;
- width: 20px;
- height: 20px;
- margin-left: -10px;
- background-image: url("../img/loading.gif");
- background-repeat: no-repeat;
- background-position: center center;
- background-color: white;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- }
-
- #read-loading.fade {
- opacity: 0;
- }
-
- #read-loading.fade.in {
- opacity: .85;
- }
-
- #read-button-area {
- a {
- opacity: 0;
- display: block;
- position: absolute;
- }
-
- a:hover {
- opacity: 1;
- }
-
- .arrow-btn {
- text-align: center;
- width: 44px;
- height: 40%;
- top: 50%;
-
- span {
- position: relative;
- top: 50%;
- margin: -12px auto 0;
- }
- }
-
- .arrow-btn-right {
- right: 0;
- }
-
- .arrow-btn-upper {
- top: 10%;
- }
-
- #read-info-btn {
- right: 5px;
- bottom: 5px;
- }
- }
-
- #read-info-area {
- #read-next-btn {
- position: absolute;
- left: 5px;
- bottom: 5px;
- }
-
- #read-exit-btn {
- position: absolute;
- right: 5px;
- top: 5px;
- }
-
- #read-direction-btn {
- position: absolute;
- left: 5px;
- top: 5px;
- }
-
- #read-info-page {
- position: absolute;
- top: 80px;
- left: 50%;
- }
-
- #read-slider-area {
- position: absolute;
- bottom: 5px;
- width: 100%;
-
- #read-slider-inner {
- position: relative;
- margin:0 100px;
-
- #read-slider-bar {
- margin: -3px 0 0 -4px;
- width:100%;
- top: 50%;
- position: absolute;
- padding-left: 3px;
- padding-right: 3px;
- cursor: default;
- }
-
- #read-slider-handle {
- position: relative;
- }
- }
- }
- }
-}
-
-.btn-mini [class^="icon-"], .btn-mini [class*=" icon-"] {
- margin-top: 0px;
+body {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif, "Meiryo UI", "MS UI Gothic", "MS PGothic", "MS Pゴシック", "MS Gothic", "MS ゴシック","Microsoft JHengHei UI", "Microsoft JHengHei", "微軟正黑體", MingLiU, "細明體";
+}
+
+code,
+pre {
+ font-family: Monaco, Menlo, Consolas, "Courier New", monospace, "Meiryo UI", "MS UI Gothic", "MS PGothic", "MS Pゴシック", "MS Gothic", "MS ゴシック","Microsoft JHengHei UI", "Microsoft JHengHei", "微軟正黑體", MingLiU, "細明體";
+}
+
+input,
+button,
+select,
+textarea {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif, "Meiryo UI", "MS UI Gothic", "MS PGothic", "MS Pゴシック", "MS Gothic", "MS ゴシック","Microsoft JHengHei UI", "Microsoft JHengHei", "微軟正黑體", MingLiU, "細明體";
+}
+
+.navbar-search .search-query {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif, "Meiryo UI", "MS UI Gothic", "MS PGothic", "MS Pゴシック", "MS Gothic", "MS ゴシック","Microsoft JHengHei UI", "Microsoft JHengHei", "微軟正黑體", MingLiU, "細明體";
+}
+
+.temp {
+ display: none;
+}
+
+.text-left {
+ text-align:left;
+}
+
+.text-center {
+ text-align:center;
+}
+
+.modal {
+ overflow: hidden;
+
+ form {
+ margin: 0;
+ }
+}
+
+.nav-admin, .nav-main {
+ margin-top:15px;
+}
+
+.select-tall {
+ height:100px;
+}
+
+.table {
+ tr.vmiddle {
+ input[type="checkbox"] {
+ position:relative;
+ bottom:2px;
+ }
+
+ td {
+ vertical-align:middle;
+ }
+ }
+
+ th.text-center, td.text-center {
+ .text-center;
+ }
+
+ th.td-mini, td.td-mini {
+ width:30px;
+ }
+
+ th.td-small, td.td-small {
+ width:100px;
+ }
+
+ td.break-word {
+ word-wrap: break-word;
+ }
+}
+
+.row-after-table {
+ .btn-toolbar {
+ margin-top: 0;
+ }
+
+ .pagination {
+ margin-top: 0;
+ }
+}
+
+#error-modal.modal {
+ z-index:1500;
+}
+
+#confirm-modal.modal {
+ z-index:1450;
+}
+
+#login-modal.modal {
+ z-index:1400;
+}
+
+#admin-finder-modal.modal {
+ z-index:1350;
+}
+
+#admin-finder-body.modal-body {
+ height: 400px;
+ padding: 0;
+
+ iframe {
+ display: block;
+ height: 400px;
+ }
+}
+
+.typeahead {
+ z-index:2000;
+}
+
+.dropdown.open > a {
+ >[class^="icon-"], >[class*=" icon-"] {
+ background-image: url("../img/glyphicons-halflings-white.png");
+ }
+}
+
+#mangas-list {
+ .thumbnails {
+ .thumbnail:hover {
+ border-color: #08C;
+ -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
+ -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
+ box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25);
+ }
+
+ .thumbnail {
+ overflow: hidden;
+
+ .caption {
+ h4:first-child {
+ margin-top: 0;
+ }
+
+ .mangas-list-item-details p {
+ font-size: 12px;
+ line-height: 16px;
+ margin-bottom: 8px;
+ }
+
+ p:last-child {
+ margin-bottom: 0;
+ }
+ }
+
+ img {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ background-image: url("../img/loading.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ max-height: 200px;
+ }
+ }
+ }
+}
+#folders-module {
+ td {
+ vertical-align:top;
+ white-space:nowrap;
+
+ .folders-expand-btn {
+ display:block;
+ margin-top:8px;
+
+ i {
+ display:block;
+ }
+ }
+ }
+}
+
+.pagination {
+ height: auto;
+}
+
+.height-transition {
+ -webkit-transition: height .25s ease-out;
+ -moz-transition: height .25s ease-out;
+ -o-transition: height .25s ease-out;
+ transition: height .25s ease-out;
+}
+
+.height-transition-suppress {
+ -webkit-transition: height 0;
+ -moz-transition: height 0;
+ -o-transition: height 0;
+ transition: height 0;
+}
+
+@media (max-width: 767px) {
+ #read-module {
+ margin: 0 -20px;
+ }
+}
+
+#read-module {
+ display: block;
+ position: relative;
+ overflow: hidden;
+ min-width:300px;
+ min-height:300px;
+
+ #read-manga-area {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+
+ #read-manga-area-inner {
+ -webkit-transition: all 0;
+ -moz-transition: all 0;
+ -o-transition: all 0;
+ transition: all 0;
+ height: 100%;
+ }
+
+ #read-manga-area-inner.navigate {
+ -webkit-transition: all 0.2s ease-in-out;
+ -moz-transition: all 0.2s ease-in-out;
+ -o-transition: all 0.2s ease-in-out;
+ transition: all 0.2s ease-in-out;
+ }
+
+ #read-manga-area-inner.fade {
+ -webkit-transition: opacity .15s linear;
+ -moz-transition: opacity .15s linear;
+ -o-transition: opacity .15s linear;
+ transition: opacity .15s linear;
+ }
+
+ #read-manga-area-inner.inertia {
+ -webkit-transition: all 0.2s ease-out;
+ -moz-transition: all 0.2s ease-out;
+ -o-transition: all 0.2s ease-out;
+ transition: all 0.2s ease-out;
+ }
+
+ #read-manga-area-inner.inertia-bounce {
+ -webkit-transition: all 0.15s ease-in-out;
+ -moz-transition: all 0.15s ease-in-out;
+ -o-transition: all 0.15s ease-in-out;
+ transition: all 0.15s ease-in-out;
+ }
+
+ .read-manga-page {
+ position: absolute;
+ border: 1px solid white;
+ border-width: 0 1px;
+ }
+
+ .read-manga-page.inertia {
+ -webkit-transition: all 0.2s ease-out;
+ -moz-transition: all 0.2s ease-out;
+ -o-transition: all 0.2s ease-out;
+ transition: all 0.2s ease-out;
+ }
+
+ .read-manga-page.inertia-bounce {
+ -webkit-transition: all 0.15s ease-in-out;
+ -moz-transition: all 0.15s ease-in-out;
+ -o-transition: all 0.15s ease-in-out;
+ transition: all 0.15s ease-in-out;
+ }
+
+ .read-manga-page img:first-child {
+ float: left;
+ }
+
+ .read-manga-page img:last-child {
+ float: right;
+ }
+
+ img {
+ display:block;
+ width: auto;
+ height: auto;
+ max-width: none;
+ max-height: none;
+ }
+ }
+
+ #read-button-area.show a {
+ opacity: 1;
+ }
+
+ #read-loading {
+ position: absolute;
+ left: 50%;
+ top: 3px;
+ width: 20px;
+ height: 20px;
+ margin-left: -10px;
+ background-image: url("../img/loading.gif");
+ background-repeat: no-repeat;
+ background-position: center center;
+ background-color: white;
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+ border-radius: 6px;
+ }
+
+ #read-loading.fade {
+ opacity: 0;
+ }
+
+ #read-loading.fade.in {
+ opacity: .85;
+ }
+
+ #read-button-area {
+ a {
+ opacity: 0;
+ display: block;
+ position: absolute;
+ }
+
+ a:hover {
+ opacity: 1;
+ }
+
+ .arrow-btn {
+ text-align: center;
+ width: 44px;
+ height: 40%;
+ top: 50%;
+
+ span {
+ position: relative;
+ top: 50%;
+ margin: -12px auto 0;
+ }
+ }
+
+ .arrow-btn-right {
+ right: 0;
+ }
+
+ .arrow-btn-upper {
+ top: 10%;
+ }
+
+ #read-info-btn {
+ right: 5px;
+ bottom: 5px;
+ }
+ }
+
+ #read-info-area {
+ #read-next-btn {
+ position: absolute;
+ left: 5px;
+ bottom: 5px;
+ }
+
+ #read-exit-btn {
+ position: absolute;
+ right: 5px;
+ top: 5px;
+ }
+
+ #read-direction-btn {
+ position: absolute;
+ left: 5px;
+ top: 5px;
+ }
+
+ #read-info-page {
+ position: absolute;
+ top: 80px;
+ left: 50%;
+ }
+
+ #read-slider-area {
+ position: absolute;
+ bottom: 5px;
+ width: 100%;
+
+ #read-slider-inner {
+ position: relative;
+ margin:0 100px;
+
+ #read-slider-bar {
+ margin: -3px 0 0 -4px;
+ width:100%;
+ top: 50%;
+ position: absolute;
+ padding-left: 3px;
+ padding-right: 3px;
+ cursor: default;
+ }
+
+ #read-slider-handle {
+ position: relative;
+ }
+ }
+ }
+ }
+}
+
+.btn-mini [class^="icon-"], .btn-mini [class*=" icon-"] {
+ margin-top: 0px;
}
View
BIN  source/packages/ScriptSharp.0.7.5.1/ScriptSharp.0.7.5.1.nupkg
Binary file not shown
View
20 source/packages/ScriptSharp.0.7.5.1/ScriptSharp.0.7.5.1.nuspec
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
+ <metadata>
+ <id>ScriptSharp</id>
+ <version>0.7.5.1</version>
+ <title>Script#</title>
+ <authors>Nikhil Kothari</authors>
+ <owners>Nikhil Kothari</owners>
+ <licenseUrl>https://raw.github.com/nikhilk/scriptsharp/master/License.txt</licenseUrl>
+ <projectUrl>http://www.scriptsharp.com</projectUrl>
+ <iconUrl>https://github.com/nikhilk/scriptsharp/raw/master/docs/Package.png</iconUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>This package contains the Script# compiler and the associated mscorlib.dll assembly that all Script# projects reference.
+ It also includes msbuild support for easily using Script# within Visual Studio.</description>
+ <summary>Script# lets you author your HTML5 apps in C# and compile them into JavaScript.</summary>
+ <copyright>Copyright (c) 2012, Nikhil Kothari</copyright>
+ <language>en-US</language>
+ <tags>script javascript ajax html html5 mobile scriptsharp compiler tool</tags>
+ </metadata>
+</package>
View
1  source/packages/ScriptSharp.0.7.5.1/content/ScriptSharp.PlaceHolder.txt
@@ -0,0 +1 @@
+Script# Project PlaceHolder File
View
34 source/packages/ScriptSharp.0.7.5.1/tools/Install.ps1
@@ -0,0 +1,34 @@
+param($installPath, $toolsPath, $package, $project)
+
+Import-Module (Join-Path $toolsPath "Reset.psm1")
+
+function Compute-RelativePath ($basePath, $referencePath) {
+ $baseUri = New-Object -typename System.Uri -argumentlist $basePath
+ $referenceUri = New-Object -typename System.Uri -argumentlist $referencePath
+
+ $relativeUri = $baseUri.MakeRelativeUri($referenceUri)
+ $relativePath = [System.Uri]::UnescapeDataString($relativeUri.ToString()).Replace('/', '\')
+ return $relativePath
+}
+
+# remove placeholder file
+$placeholder = "ScriptSharp.PlaceHolder.txt"
+$project.ProjectItems.Item($placeholder).Remove()
+Split-Path $project.FullName -parent | Join-Path -ChildPath $placeholder | Remove-Item
+
+# Get the msbuild object associated with the project
+Add-Type -AssemblyName "Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1
+
+# first remove any existing import reference
+Reset-Project $msbuild
+
+# get a relative reference to the targets file in the package's tools directory
+# and add it to the project
+$targetsAbsolutePath = Join-Path $toolsPath "ScriptSharp.targets"
+$targetsRelativePath = Compute-RelativePath $project.FullName $targetsAbsolutePath
+$import = $msbuild.Xml.AddImport($targetsRelativePath)
+$import.Condition = "Exists('" + $targetsRelativePath + "')"
+
+# finally save the project
+$project.Save()
View
11 source/packages/ScriptSharp.0.7.5.1/tools/Reset.psm1
@@ -0,0 +1,11 @@
+function Reset-Project($msbuild) {
+ $imports = $msbuild.Xml.Imports
+
+ if ($imports.Count -gt 0) {
+ foreach ($import in $imports) {
+ if ($import.Project.IndexOf("ScriptSharp.targets") -gt 0) {
+ $msbuild.Xml.RemoveChild($import)
+ }
+ }
+ }
+}
View
BIN  source/packages/ScriptSharp.0.7.5.1/tools/ScriptSharp.Build.dll
Binary file not shown
View
BIN  source/packages/ScriptSharp.0.7.5.1/tools/ScriptSharp.dll
Binary file not shown
View
67 source/packages/ScriptSharp.0.7.5.1/tools/ScriptSharp.targets
@@ -0,0 +1,67 @@
+<!--
+*******************************************************************************
+ScriptSharp.targets
+Defines the steps in the standard build process specific for Script# projects.
+
+Copyright (C) 2012. Script# Project. All rights reserved.
+*******************************************************************************
+-->
+
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <UsingTask TaskName="ScriptCompilerTask" AssemblyFile="ScriptSharp.Build.dll" />
+ <UsingTask TaskName="ResXCodeGeneratorTask" AssemblyFile="ScriptSharp.Build.dll" />
+
+ <PropertyGroup>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>false</Optimize>
+ <AutoUnifyAssemblyReferences>false</AutoUnifyAssemblyReferences>
+ <BuildingProject>true</BuildingProject>
+ <UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable>
+ <LangVersion Condition="'$(GenerateScript)' == 'True'">ISO-2</LangVersion>
+ <NoStdLib>True</NoStdLib>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
+ </PropertyGroup>
+
+ <ItemGroup>
+ <Reference Include="mscorlib, Version=0.7.0.0, Culture=neutral, PublicKeyToken=8fc0e3af5abcb6c4, processorArchitecture=MSIL">
+ <HintPath>$(MSBuildThisFileDirectory)mscorlib.dll</HintPath>
+ </Reference>
+ <GeneratedResourceCode Include="$(IntermediateOutputPath)Resources.g.cs" />
+ </ItemGroup>
+
+ <Target Name="BuildScript">
+ <ScriptCompilerTask
+ Sources="@(Compile)"
+ Resources="@(EmbeddedResource)"
+ References="@(ReferencePath);@(ReferenceDependencyPaths)"
+ Defines="$(DefineConstants)"
+ OutputPath="$(OutputPath)"
+ DeploymentPath="$(DeploymentPath)"
+ LocaleSubFolders="$(LocaleSubFolders)"
+ ConfigSubFolders="$(ConfigSubFolders)"
+ Template="$(ScriptTemplate)"
+ CSharpAssembly="@(IntermediateAssembly)"
+ DocumentationFile="$(DocumentationFile)"
+ SuppressDocumentation="$(SuppressDocumentation)"
+ ProjectPath="$(MSBuildProjectFullPath)">
+ <Output TaskParameter="Scripts" ItemName="Scripts" />
+ </ScriptCompilerTask>
+ </Target>
+
+ <Target Name="GenerateResourcesCode" Inputs="@(EmbeddedResource)" Outputs="@(GeneratedResourceCode)">
+ <ResXCodeGeneratorTask
+ Resources="@(EmbeddedResource)"
+ GeneratedCode="@(GeneratedResourceCode)"
+ Namespace="$(RootNamespace)" />
+ <ItemGroup>
+ <Compile Include="@(GeneratedResourceCode)" />
+ </ItemGroup>
+ </Target>
+
+ <PropertyGroup>
+ <BuildDependsOn Condition="'$(GenerateScript)' == 'True'">$(BuildDependsOn);BuildScript</BuildDependsOn>
+ <CompileDependsOn Condition="'$(GenerateResources)' == 'True'">GenerateResourcesCode;$(CompileDependsOn)</CompileDependsOn>
+ </PropertyGroup>
+</Project>
View
13 source/packages/ScriptSharp.0.7.5.1/tools/Uninstall.ps1
@@ -0,0 +1,13 @@
+param($installPath, $toolsPath, $package, $project)
+
+Import-Module (Join-Path $toolsPath "Reset.psm1")
+
+# Get the msbuild object associated with the project and add an import
+Add-Type -AssemblyName "Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
+$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName)[0]
+
+# remove import reference
+Reset-Project $msbuild
+
+# and then save the project
+$project.Save()
View
BIN  source/packages/ScriptSharp.0.7.5.1/tools/mscorlib.dll
Binary file not shown
View
1,434 source/packages/ScriptSharp.0.7.5.1/tools/mscorlib.xml
@@ -0,0 +1,1434 @@
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>mscorlib</name>
+ </assembly>
+ <members>
+ <member name="T:System.Object">
+ <summary>
+ Equivalent to the Object type in Javascript.
+ </summary>
+ </member>
+ <member name="M:System.Object.GetType">
+ <summary>
+ Retrieves the type associated with an object instance.
+ </summary>
+ <returns>The type of the object.</returns>
+ </member>
+ <member name="M:System.Object.ToString">
+ <summary>
+ Converts an object to its string representation.
+ </summary>
+ <returns>The string representation of the object.</returns>
+ </member>
+ <member name="M:System.Object.ToLocaleString">
+ <summary>
+ Converts an object to its culture-sensitive string representation.
+ </summary>
+ <returns>The culture-sensitive string representation of the object.</returns>
+ </member>
+ <member name="T:System.Collections.Generic.Stack`1">
+ <summary>
+ The Stack data type which is mapped to the Array type in Javascript.
+ </summary>
+ </member>
+ <member name="T:System.Collections.Generic.Queue`1">
+ <summary>
+ The Queue data type which is mapped to the Array type in Javascript.
+ </summary>
+ </member>
+ <member name="T:System.Collections.Generic.Dictionary`2">
+ <summary>
+ The Dictionary data type which is mapped to the Object type in Javascript.
+ </summary>
+ </member>
+ <member name="T:System.Collections.Generic.List`1">
+ <summary>
+ Equivalent to the Array type in Javascript.
+ </summary>
+ </member>
+ <member name="T:System.ComponentModel.IApplication">
+ <summary>
+ Defines contextual information about the current application.
+ </summary>
+ </member>
+ <member name="M:System.ComponentModel.IApplication.GetSetting(System.String)">
+ <summary>
+ Gets the value of the specified setting value.
+ </summary>
+ <param name="name">The name of the setting.</param>
+ <returns>The value of the setting if it is available.</returns>
+ </member>
+ <member name="T:System.ComponentModel.IEventManager">
+ <summary>
+ Provides a simple pub/sub mechanism to allow objects to broadcast and
+ listen to messages or events without being coupled to each other.
+ </summary>
+ </member>
+ <member name="M:System.ComponentModel.IEventManager.PublishEvent(System.EventArgs)">
+ <summary>
+ Broadcasts an event. The event is sequentially handled by all subscribers.
+ Any errors that occur are ignored.
+ </summary>
+ <param name="eventArgs">The data associated with the event.</param>
+ </member>
+ <member name="M:System.ComponentModel.IEventManager.SubscribeEvent(System.Type,System.Callback)">
+ <summary>
+ Subscribes the specified handler to listen to events of the specified type.
+ </summary>
+ <param name="eventType">The type of the event to listen to.</param>
+ <param name="eventHandler">The event handler to be invoked when the event occurs.</param>
+ <returns>An opaque cookie that can be used to unsubscribe subsequently.</returns>
+ </member>
+ <member name="M:System.ComponentModel.IEventManager.UnsubscribeEvent(System.Object)">
+ <summary>
+ Unsubscribes a previous event handler from subsequent events.
+ </summary>
+ <param name="subscriptionCookie">The cookie that represents the subscription.</param>
+ </member>
+ <member name="T:System.ComponentModel.DependencyAttribute">
+ <summary>
+ This attribute can be placed on a property, or constructor parameter.
+ When placed on a property or parameter this can be used to mark a dependency
+ and whether it is optional or not.
+ </summary>
+ </member>
+ <member name="P:System.ComponentModel.DependencyAttribute.Optional">
+ <summary>
+ Gets or sets whether the dependency is optional.
+ </summary>
+ </member>
+ <member name="T:System.ComponentModel.IInitializable">
+ <summary>
+ Implemented by objects that supports a simple, transacted notification for batch
+ initialization.
+ </summary>
+ </member>
+ <member name="M:System.ComponentModel.IInitializable.BeginInitialization(System.Collections.Generic.Dictionary{System.String,System.Object})">
+ <summary>
+ Signals the object that initialization is starting.
+ </summary>
+ <param name="options">An optional set of name/value pairs containing initialization data.</param>
+ </member>
+ <member name="M:System.ComponentModel.IInitializable.EndInitialization">
+ <summary>
+ Signals the object that initialization is complete.
+ </summary>
+ </member>
+ <member name="T:System.ComponentModel.IContainer">
+ <summary>
+ Encapsulates the functionality of a container that defines a scope of
+ composition where objects can be registered and dependencies can be resolved.
+ </summary>
+ </member>
+ <member name="M:System.ComponentModel.IContainer.GetObject(System.Type)">
+ <summary>
+ Gets an instance of an object for the specified object type.
+ </summary>
+ <param name="objectType">The type of object to retrieve.</param>
+ <returns>The resulting object; null if the object could not be retrieved.</returns>
+ </member>
+ <member name="M:System.ComponentModel.IContainer.RegisterObject(System.Type,System.Object)">
+ <summary>
+ Registers an object instance for the specified type with the container.
+ </summary>
+ <param name="objectType">The type of object this instance corresponds to.</param>
+ <param name="objectInstance">The object to register.</param>
+ </member>
+ <member name="M:System.ComponentModel.IContainer.RegisterFactory(System.Type,System.Func{System.ComponentModel.IContainer,System.Type,System.Object})">
+ <summary>
+ Registers an object factory for the specified type with the container.
+ </summary>
+ <param name="objectType">The type of object this factory corresponds to.</param>
+ <param name="objectFactory">The factory to reg