You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/01 20:01:12 UTC

[3/5] cleanup template stuff, added root cordova.js file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/CordovaApp.jsproj
----------------------------------------------------------------------
diff --git a/windows8/template/CordovaApp.jsproj b/windows8/template/CordovaApp.jsproj
index ff2e693..ab5eec1 100644
--- a/windows8/template/CordovaApp.jsproj
+++ b/windows8/template/CordovaApp.jsproj
@@ -53,13 +53,14 @@
     <AppxManifest Include="package.appxmanifest">
       <SubType>Designer</SubType>
     </AppxManifest>
-    <Content Include="default.html" />
-    <Content Include="images\logo.png" />
-    <Content Include="images\smalllogo.png" />
-    <Content Include="images\splashscreen.png" />
-    <Content Include="images\storelogo.png" />
-    <Content Include="js\default.js" />
-    <Content Include="css\default.css" />
+    <Content Include="www\cordova-2.2.0.js" />
+    <Content Include="www\css\index.css" />
+    <Content Include="www\img\logo.png" />
+    <Content Include="www\img\smalllogo.png" />
+    <Content Include="www\img\splashscreen.png" />
+    <Content Include="www\img\storelogo.png" />
+    <Content Include="www\index.html" />
+    <Content Include="www\js\index.js" />
     <None Include="CordovaApp_TemporaryKey.pfx" />
   </ItemGroup>
   <ItemGroup>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/css/default.css
----------------------------------------------------------------------
diff --git a/windows8/template/css/default.css b/windows8/template/css/default.css
deleted file mode 100644
index da816d5..0000000
--- a/windows8/template/css/default.css
+++ /dev/null
@@ -1,14 +0,0 @@
-body {
-}
-
-@media screen and (-ms-view-state: fullscreen-landscape) {
-}
-
-@media screen and (-ms-view-state: filled) {
-}
-
-@media screen and (-ms-view-state: snapped) {
-}
-
-@media screen and (-ms-view-state: fullscreen-portrait) {
-}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/default.html
----------------------------------------------------------------------
diff --git a/windows8/template/default.html b/windows8/template/default.html
deleted file mode 100644
index dfd8b9d..0000000
--- a/windows8/template/default.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8" />
-    <title>CordovaApp</title>
-
-    <!-- WinJS references -->
-    <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
-    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
-    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
-
-    <!-- CordovaApp references -->
-    <link href="/css/default.css" rel="stylesheet" />
-    <script src="/js/default.js"></script>
-</head>
-<body>
-    <p>Content goes here</p>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/images/logo.png
----------------------------------------------------------------------
diff --git a/windows8/template/images/logo.png b/windows8/template/images/logo.png
deleted file mode 100644
index 86a48a8..0000000
Binary files a/windows8/template/images/logo.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/images/smalllogo.png
----------------------------------------------------------------------
diff --git a/windows8/template/images/smalllogo.png b/windows8/template/images/smalllogo.png
deleted file mode 100644
index 0e648ef..0000000
Binary files a/windows8/template/images/smalllogo.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/images/splashscreen.png
----------------------------------------------------------------------
diff --git a/windows8/template/images/splashscreen.png b/windows8/template/images/splashscreen.png
deleted file mode 100644
index d1e6c98..0000000
Binary files a/windows8/template/images/splashscreen.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/images/storelogo.png
----------------------------------------------------------------------
diff --git a/windows8/template/images/storelogo.png b/windows8/template/images/storelogo.png
deleted file mode 100644
index dd00478..0000000
Binary files a/windows8/template/images/storelogo.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/js/default.js
----------------------------------------------------------------------
diff --git a/windows8/template/js/default.js b/windows8/template/js/default.js
deleted file mode 100644
index bb0961d..0000000
--- a/windows8/template/js/default.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// For an introduction to the Blank template, see the following documentation:
-// http://go.microsoft.com/fwlink/?LinkId=232509
-(function () {
-    "use strict";
-
-    WinJS.Binding.optimizeBindingReferences = true;
-
-    var app = WinJS.Application;
-    var activation = Windows.ApplicationModel.Activation;
-
-    app.onactivated = function (args) {
-        if (args.detail.kind === activation.ActivationKind.launch) {
-            if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
-                // TODO: This application has been newly launched. Initialize
-                // your application here.
-            } else {
-                // TODO: This application has been reactivated from suspension.
-                // Restore application state here.
-            }
-            args.setPromise(WinJS.UI.processAll());
-        }
-    };
-
-    app.oncheckpoint = function (args) {
-        // TODO: This application is about to be suspended. Save any state
-        // that needs to persist across suspensions here. You might use the
-        // WinJS.Application.sessionState object, which is automatically
-        // saved and restored across suspension. If you need to complete an
-        // asynchronous operation before your application is suspended, call
-        // args.setPromise().
-    };
-
-    app.start();
-})();

http://git-wip-us.apache.org/repos/asf/incubator-cordova-windows/blob/b6d177ed/windows8/template/package.appxmanifest
----------------------------------------------------------------------
diff --git a/windows8/template/package.appxmanifest b/windows8/template/package.appxmanifest
index d73171e..62c8f28 100644
--- a/windows8/template/package.appxmanifest
+++ b/windows8/template/package.appxmanifest
@@ -1,48 +1,27 @@
 <?xml version="1.0" encoding="utf-8"?>
 <Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
-
-  <Identity
-    Name="efffab2f-bfc5-4eda-b545-45ef4995f55a"
-    Version="1.0.0.0"
-    Publisher="CN=Jesse" />
-
+  <Identity Name="efffab2f-bfc5-4eda-b545-45ef4995f55a" Version="1.0.0.0" Publisher="CN=Jesse" />
   <Properties>
     <DisplayName>CordovaApp</DisplayName>
     <PublisherDisplayName>Jesse</PublisherDisplayName>
     <Logo>images\storelogo.png</Logo>
   </Properties>
-
   <Prerequisites>
     <OSMinVersion>6.2.1</OSMinVersion>
     <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
   </Prerequisites>
-
   <Resources>
     <Resource Language="x-generate" />
   </Resources>
-
   <Applications>
-    <Application 
-      Id="App"
-      StartPage="default.html">
-
-      <VisualElements
-        DisplayName="CordovaApp"
-        Logo="images\logo.png"
-        SmallLogo="images\smalllogo.png"
-        Description="CordovaApp"
-        ForegroundText="light"
-        BackgroundColor="#464646">
-
+    <Application Id="App" StartPage="www/index.html">
+      <VisualElements DisplayName="CordovaApp" Logo="www\img\logo.png" SmallLogo="www\img\smalllogo.png" Description="CordovaApp" ForegroundText="light" BackgroundColor="#464646">
         <DefaultTile ShowName="allLogos" />
-        <SplashScreen Image="images\splashscreen.png" />
-
+        <SplashScreen Image="www\img\splashscreen.png" />
       </VisualElements>
     </Application>
   </Applications>
-
   <Capabilities>
     <Capability Name="internetClient" />
   </Capabilities>
-
-</Package>
+</Package>
\ No newline at end of file