[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-patches
Subject:    [Mono-patches] r150584 - in
From:       "Chris Toshok" <mono-patches-list () lists ! ximian ! com>
Date:       2010-01-30 0:47:08
Message-ID: 20100130004708.BC2519472C () mono-cvs ! ximian ! com
[Download RAW message or body]

Author: toshok
Date: 2010-01-29 19:47:08 -0500 (Fri, 29 Jan 2010)
New Revision: 150584

Modified:
   trunk/release/website/moonlight-unstable/Default.aspx
   trunk/release/website/moonlight-unstable/Default.aspx.in
   trunk/release/website/moonlight-unstable/css/moonlight.css
   trunk/release/website/moonlight-unstable/make-release
Log:
new stuff for 3.0 preview 1

Modified: trunk/release/website/moonlight-unstable/Default.aspx
===================================================================
--- trunk/release/website/moonlight-unstable/Default.aspx	2010-01-29 23:56:28 UTC \
                (rev 150583)
+++ trunk/release/website/moonlight-unstable/Default.aspx	2010-01-30 00:47:08 UTC \
(rev 150584) @@ -12,20 +12,21 @@
 <div id="page">
 
 <script type="text/xaml" id="bannerxaml">
-    <Canvas xmlns="http://schemas.microsoft.com/client/2007"
-            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-            x:Name="root" Width="500" Height="25">
-      <Rectangle x:Name="rect" Width="500" Height="25" Fill="#B7CEEC" RadiusX="5" \
                RadiusY="5" />
-      <TextBlock x:Name="message" TextWrapping="NoWrap" />
-    </Canvas>
+    <Grid xmlns="http://schemas.microsoft.com/client/2007"
+          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+          x:Name="root">
+      <Border x:Name="rect" Background="#B7CEEC" BorderBrush="#2554C7" \
BorderThickness="2" CornerRadius="5"> +        <TextBlock TextAlignment="Center" \
x:Name="message" TextWrapping="NoWrap" /> +      </Border>
+    </Grid>
 </script>
 
-<div id="moonlight-banner" style="width: 100%; height: 0px;"> </div>
+<div id="moonlight-banner" style="width: 100%; height: 25px; margin-bottom: 10px;"> \
</div>  
 <script type="text/javascript" src="Silverlight.js" /></script>
 <script type="text/javascript">
 
-var released_version = "1.99.5";
+var released_version = "2.99.0.1";
 
 var plugin = navigator.plugins["Silverlight Plug-In"];
 if (plugin.filename.indexOf("libmoonloader") == 0) {
@@ -38,71 +39,33 @@
     moonlight_banner.style.background="red";
 
     moonlight_banner.innerHTML = "error initializing plugin: " + args.errorMessage;
-    moonlight_banner.style.height = "25px";
-    moonlight_banner.style.marginBottom = "10px";
   }
 
-  var root;
   var message;
-  var rect;
 
-  function control_resize ()
-  {
-    var control_width = parseFloat (document.defaultView.getComputedStyle \
                (moonlight_banner,null).getPropertyValue ("width"));
-    var control_height = parseFloat (document.defaultView.getComputedStyle \
                (moonlight_banner,null).getPropertyValue ("height"));
-
-    //console.log ("control size is " + control_width + " x " + control_height);
-
-    root.width = rect.width = control_width;
-    root.height = rect.height = control_height;
-
-    message["Canvas.Left"] = control_width / 2 - message.actualWidth / 2; 
-    message["Canvas.Top"] = control_height / 2 - message.actualHeight / 2; 
-  }
-
   function onPluginLoad (control, userContext, rootElement)
   {
-    root = rootElement;
-    message = root.findName ("message");
-    rect = root.findName ("rect");
+    message = rootElement.findName ("message");
 
-    control.content.onResize = control_resize;
-
-    //console.log ("onPluginLoad");
-
-    moonlight_banner.style.height = "25px";
-    moonlight_banner.style.marginBottom = "10px";
-
     var moonlight_version = control.settings.version;
-    dump("current version = " + moonlight_version);
-    dump("released version = " + released_version);
-    //var x = Components.classes["@mozilla.org/xpcom/version-comparator;1"]
-    //            .getService(Components.interfaces.nsIVersionComparator)
-    //            .compare(moonlight_version,released_version);
 
-	
-
-    //console.log ("control.settings.version = " + control.settings.version);    
-
     if (moonlight_version == released_version) {
-      message.text = "Congratulations, you're running the current beta release of \
moonlight!"; +      message.text = "Congratulations, you're running the current \
preview release of moonlight!";  }
-    else if ((moonlight_version == "1.0.1")) {
-      message.text = "You're running the latest stable release of moonlight.";
+    else if ((moonlight_version == "2.0")) {
+      message.text = "You are running the latest stable release of moonlight.";
     }
     else if ((moonlight_version < released_version) || 
 		(moonlight_version == "1.0b1") ||
 		(moonlight_version == "1.0b2") || 
 		(moonlight_version == "1.0")) {
-      message.text = "You're running an older release of moonlight.  time to \
upgrade."; +      message.text = "You are running an older release of moonlight.  \
time to upgrade.";  }
     else {
-      message.text = "You're running an unstable build of moonlight.";
+      message.text = "You are running an unstable build of moonlight.";
     }
   }
 
-  //console.log ("creating moonlight instance");
-
   Silverlight.createObjectEx ({
 	source: "#bannerxaml",
 	parentElement: document.getElementById("moonlight-banner"),
@@ -122,7 +85,7 @@
 </script>
 
 <div id="col1">
-<img src="images/moonlight_logo.png" alt="Moonlight Logo"/>
+<img src="http://go-mono.com/moonlight/images/logo.png" alt="Moonlight Logo"/>
 </div>
 
 <script runat="server">
@@ -137,13 +100,13 @@
 string fileupdate = string.Empty;
 string userfriendly = string.Empty;
 string htdocs_path = \
                "/srv/www/htdocs/mono-website/go-mono/archive/moonlight-preview";
-string src_tarball_location = "http://ftp.novell.com/pub/mono/sources/moon/1.99.5";
-string svn_location = "http://anonsvn.mono-project.com/source/tags/moon/1.99.5";
+string src_tarball_location = \
"http://ftp.novell.com/pub/mono/sources/moon/2.99.0.1"; +string svn_location = \
"http://anonsvn.mono-project.com/source/tags/moon/2.99.0.1";  
 void Page_Init(object sender, EventArgs e)
 {
-        dir = "/var/www/mono-website/go-mono/archive/moonlight-plugins/1.99.5/";
-        dir = "downloads/1.99.5";
+        dir = "/var/www/mono-website/go-mono/archive/moonlight-plugins/2.99.0.1/";
+        dir = "downloads/2.99.0.1";
 
         if (IsPrivate) {
                 media = "-ffmpeg";
@@ -218,7 +181,7 @@
 
 void SetFileName()
 {
-	xpi = basename + "-1.99.5-" + architecture.SelectedValue + ".xpi";
+	xpi = basename + "-2.99.0.1-" + architecture.SelectedValue + ".xpi";
 	filepath = Path.Combine(dir,xpi);
 }
 
@@ -243,7 +206,7 @@
 
 <div id="col2">
 <h1>
-Moonlight 2.0 Beta 5
+Moonlight 3.0 Preview 1
 </h1>
 
 <p><a href="http://www.mono-project.com/Moonlight">Moonlight</a> is an
@@ -258,14 +221,20 @@
 </p>
 
 <div id="preview-notice">
-<p><b>Beta Release Security Notice</b></p>
+<p><b>Preview Release Security Notice</b></p>
 
-<p>
+<p> This release should be considered alpha quality.  There are
+various new subsystems in Silverlight 3 (e.g. pixel shaders, local
+messaging, the client http stack) which expose new and different
+attack vectors, and the implementations of these subsystems have not
+yet been exercised or audited.
 
-This release is feature complete, but as a beta there are various known bugs (mostly \
minor) and most assuredly unknown ones as well. We still haven't completed the \
security audit of the source code (mono or moonlight), so you need to be aware that \
there may be issues. +As such we recommend that you should only use this plugin on \
trusted +sites (e.g. internal or well-known web sites) on non-production
+computers. This situation will gradually evolve over the beta
+releases. An up to date overview of Moonlight security features status
+can be found on <a href="http://moonlight-project.com/SecurityStatus">Moonlight \
Security Status</a> wiki page.  
-As such we recommend that you should only use this plugin on trusted sites (e.g. \
internal or well-known web sites) on non-production computers. This situation will \
gradually evolve over the beta releases. An up to date overview of Moonlight security \
features status can be found on <a \
href="http://moonlight-project.com/SecurityStatus">Moonlight Security Status</a> wiki \
                page.
-
 </p>
 </div>
 
@@ -287,7 +256,7 @@
 <div id="dllink">
 <ul class="machine"> 
 <li>
-     <a href="/archive/moonlight-plugins/1.99.5/<%=xpi%>" title="<%=xpi%>">
+     <a href="/archive/moonlight-plugins/2.99.0.1/<%=xpi%>" title="<%=xpi%>">
       <img src="images/down.png" alt="Download"/>
       <strong>Linux/<%=userfriendly%></strong>
       <span class="filesize"><%=filesize%></span>
@@ -314,14 +283,13 @@
 <p>To continue the installation click <em>Allow.</em></p>
 
 <h1>Release Notes</h1>
-<p>Release notes can be found on the Moonlight project wiki, <a \
href="http://www.moonlight-project.com/Beta#Release_Notes">here</a>.</p> +<p>Release \
notes can be found on the Moonlight project wiki, <a \
href="http://www.moonlight-project.com/Preview#Release_Notes">here</a>.</p>  
 <h1>Bugs</h1>
 <p>If you come across any bugs using the preview, please tell us about it. See our \
<a href="http://mono-project.com/Bugs">Bugzilla page</a> about logging bugs.</p>  
 <h1>Source</h1>
-<p>You can download a tarball of the source <a \
                href="<%=src_tarball_location%>">here</a>, or you can check it out \
                from svn.
-<pre> svn co <%=svn_location%> </pre></p>
+<p>You can download a tarball of the source <a \
href="<%=src_tarball_location%>">here</a>, or you can check it out from svn, using \
the instructions found on the Moonlight project wiki, <a \
href="http://www.moonlight-project.com/Preview#Source_code">here</a>.</p>  
 </div> <!-- col2 -->
 </div> <!-- page -->

Modified: trunk/release/website/moonlight-unstable/Default.aspx.in
===================================================================
--- trunk/release/website/moonlight-unstable/Default.aspx.in	2010-01-29 23:56:28 UTC \
                (rev 150583)
+++ trunk/release/website/moonlight-unstable/Default.aspx.in	2010-01-30 00:47:08 UTC \
(rev 150584) @@ -12,15 +12,16 @@
 <div id="page">
 
 <script type="text/xaml" id="bannerxaml">
-    <Canvas xmlns="http://schemas.microsoft.com/client/2007"
-            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-            x:Name="root" Width="500" Height="25">
-      <Rectangle x:Name="rect" Width="500" Height="25" Fill="#B7CEEC" RadiusX="5" \
                RadiusY="5" />
-      <TextBlock x:Name="message" TextWrapping="NoWrap" />
-    </Canvas>
+    <Grid xmlns="http://schemas.microsoft.com/client/2007"
+          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+          x:Name="root">
+      <Border x:Name="rect" Background="#B7CEEC" BorderBrush="#2554C7" \
BorderThickness="2" CornerRadius="5"> +        <TextBlock TextAlignment="Center" \
x:Name="message" TextWrapping="NoWrap" /> +      </Border>
+    </Grid>
 </script>
 
-<div id="moonlight-banner" style="width: 100%; height: 0px;"> </div>
+<div id="moonlight-banner" style="width: 100%; height: 25px; margin-bottom: 10px;"> \
</div>  
 <script type="text/javascript" src="Silverlight.js" /></script>
 <script type="text/javascript">
@@ -38,71 +39,33 @@
     moonlight_banner.style.background="red";
 
     moonlight_banner.innerHTML = "error initializing plugin: " + args.errorMessage;
-    moonlight_banner.style.height = "25px";
-    moonlight_banner.style.marginBottom = "10px";
   }
 
-  var root;
   var message;
-  var rect;
 
-  function control_resize ()
-  {
-    var control_width = parseFloat (document.defaultView.getComputedStyle \
                (moonlight_banner,null).getPropertyValue ("width"));
-    var control_height = parseFloat (document.defaultView.getComputedStyle \
                (moonlight_banner,null).getPropertyValue ("height"));
-
-    //console.log ("control size is " + control_width + " x " + control_height);
-
-    root.width = rect.width = control_width;
-    root.height = rect.height = control_height;
-
-    message["Canvas.Left"] = control_width / 2 - message.actualWidth / 2; 
-    message["Canvas.Top"] = control_height / 2 - message.actualHeight / 2; 
-  }
-
   function onPluginLoad (control, userContext, rootElement)
   {
-    root = rootElement;
-    message = root.findName ("message");
-    rect = root.findName ("rect");
+    message = rootElement.findName ("message");
 
-    control.content.onResize = control_resize;
-
-    //console.log ("onPluginLoad");
-
-    moonlight_banner.style.height = "25px";
-    moonlight_banner.style.marginBottom = "10px";
-
     var moonlight_version = control.settings.version;
-    dump("current version = " + moonlight_version);
-    dump("released version = " + released_version);
-    //var x = Components.classes["@mozilla.org/xpcom/version-comparator;1"]
-    //            .getService(Components.interfaces.nsIVersionComparator)
-    //            .compare(moonlight_version,released_version);
 
-	
-
-    //console.log ("control.settings.version = " + control.settings.version);    
-
     if (moonlight_version == released_version) {
-      message.text = "Congratulations, you're running the current beta release of \
moonlight!"; +      message.text = "Congratulations, you're running the current \
preview release of moonlight!";  }
-    else if ((moonlight_version == "1.0.1")) {
-      message.text = "You're running the latest stable release of moonlight.";
+    else if ((moonlight_version == "2.0")) {
+      message.text = "You are running the latest stable release of moonlight.";
     }
     else if ((moonlight_version < released_version) || 
 		(moonlight_version == "1.0b1") ||
 		(moonlight_version == "1.0b2") || 
 		(moonlight_version == "1.0")) {
-      message.text = "You're running an older release of moonlight.  time to \
upgrade."; +      message.text = "You are running an older release of moonlight.  \
time to upgrade.";  }
     else {
-      message.text = "You're running an unstable build of moonlight.";
+      message.text = "You are running an unstable build of moonlight.";
     }
   }
 
-  //console.log ("creating moonlight instance");
-
   Silverlight.createObjectEx ({
 	source: "#bannerxaml",
 	parentElement: document.getElementById("moonlight-banner"),
@@ -122,7 +85,7 @@
 </script>
 
 <div id="col1">
-<img src="images/moonlight_logo.png" alt="Moonlight Logo"/>
+<img src="http://go-mono.com/moonlight/images/logo.png" alt="Moonlight Logo"/>
 </div>
 
 <script runat="server">
@@ -243,7 +206,7 @@
 
 <div id="col2">
 <h1>
-Moonlight 2.0 Beta @@BETA@@
+Moonlight 3.0 Preview @@PREVIEW@@
 </h1>
 
 <p><a href="http://www.mono-project.com/Moonlight">Moonlight</a> is an
@@ -258,14 +221,20 @@
 </p>
 
 <div id="preview-notice">
-<p><b>Beta Release Security Notice</b></p>
+<p><b>Preview Release Security Notice</b></p>
 
-<p>
+<p> This release should be considered alpha quality.  There are
+various new subsystems in Silverlight 3 (e.g. pixel shaders, local
+messaging, the client http stack) which expose new and different
+attack vectors, and the implementations of these subsystems have not
+yet been exercised or audited.
 
-This release is feature complete, but as a beta there are various known bugs (mostly \
minor) and most assuredly unknown ones as well. We still haven't completed the \
security audit of the source code (mono or moonlight), so you need to be aware that \
there may be issues. +As such we recommend that you should only use this plugin on \
trusted +sites (e.g. internal or well-known web sites) on non-production
+computers. This situation will gradually evolve over the beta
+releases. An up to date overview of Moonlight security features status
+can be found on <a href="http://moonlight-project.com/SecurityStatus">Moonlight \
Security Status</a> wiki page.  
-As such we recommend that you should only use this plugin on trusted sites (e.g. \
internal or well-known web sites) on non-production computers. This situation will \
gradually evolve over the beta releases. An up to date overview of Moonlight security \
features status can be found on <a \
href="http://moonlight-project.com/SecurityStatus">Moonlight Security Status</a> wiki \
                page.
-
 </p>
 </div>
 
@@ -314,14 +283,13 @@
 <p>To continue the installation click <em>Allow.</em></p>
 
 <h1>Release Notes</h1>
-<p>Release notes can be found on the Moonlight project wiki, <a \
href="http://www.moonlight-project.com/Beta#Release_Notes">here</a>.</p> +<p>Release \
notes can be found on the Moonlight project wiki, <a \
href="http://www.moonlight-project.com/Preview#Release_Notes">here</a>.</p>  
 <h1>Bugs</h1>
 <p>If you come across any bugs using the preview, please tell us about it. See our \
<a href="http://mono-project.com/Bugs">Bugzilla page</a> about logging bugs.</p>  
 <h1>Source</h1>
-<p>You can download a tarball of the source <a \
                href="<%=src_tarball_location%>">here</a>, or you can check it out \
                from svn.
-<pre> svn co <%=svn_location%> </pre></p>
+<p>You can download a tarball of the source <a \
href="<%=src_tarball_location%>">here</a>, or you can check it out from svn, using \
the instructions found on the Moonlight project wiki, <a \
href="http://www.moonlight-project.com/Preview#Source_code">here</a>.</p>  
 </div> <!-- col2 -->
 </div> <!-- page -->

Modified: trunk/release/website/moonlight-unstable/css/moonlight.css
===================================================================
--- trunk/release/website/moonlight-unstable/css/moonlight.css	2010-01-29 23:56:28 \
                UTC (rev 150583)
+++ trunk/release/website/moonlight-unstable/css/moonlight.css	2010-01-30 00:47:08 \
UTC (rev 150584) @@ -42,12 +42,15 @@
 }
 
 #col1 {
-	width: 10em;
-	float: left;
+        margin-left: -10em;
+        width: 10em;
+        float: left;
 }
 
 #col2 { 
-	margin-left: 10em;
+      /*        background-image: \
url('http://go-mono.com/moonlight/images/logo.png'); \
+		background-repeat:no-repeat;*/ +        margin-left: 10em;
 	min-width: 20em;
 }
 

Modified: trunk/release/website/moonlight-unstable/make-release
===================================================================
--- trunk/release/website/moonlight-unstable/make-release	2010-01-29 23:56:28 UTC \
                (rev 150583)
+++ trunk/release/website/moonlight-unstable/make-release	2010-01-30 00:47:08 UTC \
(rev 150584) @@ -1,14 +1,14 @@
 #!/bin/bash
 
 if [ $# != 1 ]; then
-	echo "Usage: $0 <version>"
+	echo "Usage: $0 <moonlight-version>"
 	exit 1
 fi
 
-BETA=`echo $1 | awk -F '.' '{print $3}'`
-#BETA=$(($BETA+1))
+PREVIEW=`echo $1 | awk -F '.' '{print $4}'`
+#PREVIEW=$(($PREVIEW+1))
 
 for i in *.in; do
 	
-	sed -e s/@@VERSION@@/$1/ -e s/@@BETA@@/$BETA/ $i > `basename $i .in`
+	sed -e s/@@VERSION@@/$1/ -e s/@@PREVIEW@@/$PREVIEW/ $i > `basename $i .in`
 done

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic