Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Nov 13, 2009
0 parents commit e0d7693
Showing 130 changed files with 11,164 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
ant -q %*
94 changes: 94 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Plupload" default="build" basedir=".">
<!-- Path properties -->
<property description="Export directory" name="export_dir" value="export" />

<!-- Setup classpath for js-build-tools ant tasks -->
<path id="tasks.classpath">
<pathelement location="."/>

<fileset dir="tools\ant">
<include name="**/*.jar"/>
</fileset>
</path>

<!-- Register new js-build-tools ant tasks -->
<taskdef name="preprocess" classname="com.moxiecode.ant.tasks.PreProcessTask" classpathref="tasks.classpath" loaderref="tasks.classpath.loader" />
<taskdef name="yuicompress" classname="com.moxiecode.ant.tasks.YuiCompressTask" classpathref="tasks.classpath" loaderref="tasks.classpath.loader" />
<taskdef name="moxiedoc" classname="com.moxiecode.ant.tasks.MoxieDocTask" classpathref="tasks.classpath" loaderref="tasks.classpath.loader" />
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="tasks.classpath" loaderref="tasks.classpath.loader" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="tasks.classpath" loaderref="tasks.classpath.loader" />

<!-- Generate JS documentation -->
<target name="moxiedoc" depends="" description="Generates HTML documentation out of js source">
<delete quiet="true">
<fileset dir="docs\api" includes="**/*"/>
</delete>

<moxiedoc outdir="docs\api" templatedir="tools\templates" msintellisense="docs\api\plupload.vsdoc.js" title="Plupload API">
<fileset dir="js">
<exclude name="jquery.*" />
<exclude name="gears_init.js" />
<exclude name="**/*.min.js" />
<include name="**/*.js" />
</fileset>
</moxiedoc>
</target>

<target name="build">
<!-- Concat multuple JS files together -->
<concat destfile="js/plupload.full.tmp.js">
<fileset dir="src/javascript" includes="plupload.js" />
<fileset dir="src/javascript" includes="plupload.gears.js" />
<fileset dir="src/javascript" includes="plupload.silverlight.js" />
<fileset dir="src/javascript" includes="plupload.flash.js" />
<fileset dir="src/javascript" includes="plupload.html5.js" />
</concat>

<!-- Compress Plupload full and base using the YUI Compressor -->
<yuicompress infile="js/plupload.full.tmp.js" outfile="js/plupload.full.min.js" />
<yuicompress infile="src/javascript/jquery.plupload.queue.js" outfile="js/jquery.plupload.queue.min.js" />
<yuicompress infile="src/javascript/jquery.plupload.single.js" outfile="js/jquery.plupload.single.min.js" />
<yuicompress infile="src/javascript/plupload.js" outfile="js/plupload.min.js" />
<yuicompress infile="src/javascript/plupload.gears.js" outfile="js/plupload.gears.min.js" />
<yuicompress infile="src/javascript/plupload.silverlight.js" outfile="js/plupload.silverlight.min.js" />
<yuicompress infile="src/javascript/plupload.flash.js" outfile="js/plupload.flash.min.js" />
<yuicompress infile="src/javascript/plupload.html5.js" outfile="js/plupload.html5.min.js" />

<delete file="js/plupload.full.tmp.js" quiet="true" />
</target>

<target name="release">
<!-- Export -->
<delete dir="${export_dir}/plupload" quiet="true" />

<svn javahl="${javahl}">
<export srcUrl="http://plupload.googlecode.com/svn/trunk/" destPath="${export_dir}/plupload" />
</svn>

<!-- Parse minor version, major version and release date from changelog -->
<loadfile property="changelog" srcFile="${export_dir}/plupload/changelog.txt" />
<propertyregex property="version" input="${changelog}" regexp="^Version ([0-9xabrc.]+)" select="\1" />
<propertyregex property="release_date" input="${changelog}" regexp="^Version [^\(]+\(([^\)]+)\)" select="\1" />
<propertyregex property="file_version" input="${version}" regexp="\." replace="_" />

<!-- Compress production package -->
<delete file="${export_dir}/plupload_${file_version}.zip" quiet="true" />
<zip destfile="${export_dir}/plupload_${file_version}.zip">
<fileset dir="${export_dir}/plupload">
<include name="*/**" />
<exclude name="tools/**" />
<exclude name="build.xml" />
<exclude name="build.bat" />
</fileset>
</zip>

<!-- Compress dev package -->
<delete file="${export_dir}/plupload_${file_version}_dev.zip" quiet="true" />
<zip destfile="${export_dir}/plupload_${file_version}_dev.zip">
<fileset dir="${export_dir}/plupload">
<include name="*/**" />
</fileset>
</zip>
</target>
</project>
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version 1.0 (2009-xx-xx)
First official release of Plupload.

143 changes: 143 additions & 0 deletions docs/api/class_plupload.File.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.File</title>
<meta name="generator" content="MoxieDoc" />

<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.File</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">File</td>
</tr>
</table>
<div class="classDescription">File instance.
</div>
<div class="summaryLists">
<h2>Public Properties</h2>
<table class="Properties summary">
<thead>
<tr>
<th>Property</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#id">id</a> : String</div>
<div class="summary">File id this is a globally unique id for the specific file.</div>
</td>
<td class="last">File</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#loaded">loaded</a> : Number</div>
<div class="summary">Number of bytes uploaded of the files total size.</div>
</td>
<td class="last">File</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#name">name</a> : String</div>
<div class="summary">File name for example "myfile.</div>
</td>
<td class="last">File</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#percent">percent</a> : Number</div>
<div class="summary">Number of percentage uploaded of the file.</div>
</td>
<td class="last">File</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#size">size</a> : Number</div>
<div class="summary">File size in bytes.</div>
</td>
<td class="last">File</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.File.html#status">status</a> : Number</div>
<div class="summary">Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.</div>
</td>
<td class="last">File</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Property details</h2>
<div class="memberDetails" id="id">
<h3>id<span class="memberType">property</span>
</h3>
<code class="syntax">public id : String</code>
<div class="memberDescription">File id this is a globally unique id for the specific file.
</div>
</div>
<div class="memberDetails" id="loaded">
<h3>loaded<span class="memberType">property</span>
</h3>
<code class="syntax">public loaded : Number</code>
<div class="memberDescription">Number of bytes uploaded of the files total size.
</div>
</div>
<div class="memberDetails" id="name">
<h3>name<span class="memberType">property</span>
</h3>
<code class="syntax">public name : String</code>
<div class="memberDescription">File name for example "myfile.gif".
</div>
</div>
<div class="memberDetails" id="percent">
<h3>percent<span class="memberType">property</span>
</h3>
<code class="syntax">public percent : Number</code>
<div class="memberDescription">Number of percentage uploaded of the file.
</div>
</div>
<div class="memberDetails" id="size">
<h3>size<span class="memberType">property</span>
</h3>
<code class="syntax">public size : Number</code>
<div class="memberDescription">File size in bytes.
</div>
</div>
<div class="memberDetails last" id="status">
<h3>status<span class="memberType">property</span>
</h3>
<code class="syntax">public status : Number</code>
<div class="memberDescription">Status constant matching the plupload states QUEUED, UPLOADING, FAILED, DONE.
</div>
</div>
</div>
</div>
</div>
</body>
</html>
110 changes: 110 additions & 0 deletions docs/api/class_plupload.FlashRuntime.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: plupload.FlashRuntime</title>
<meta name="generator" content="MoxieDoc" />

<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>plupload.FlashRuntime</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">plupload</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">FlashRuntime</td>
</tr>
<tr>
<td class="first">Type</td>
<td class="last">Singleton</td>
</tr>
<tr>
<td class="first">Inheritance</td>
<td class="last inheritageList">
<span>FlashRuntime</span>
<span class="last">
<a href="class_plupload.Runtime.html">Runtime</a>
</span>
</td>
</tr>
</table>
<div class="classDescription">FlashRuntime implementation.
</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_plupload.FlashRuntime.html#init">init</a>(uploader:<a href="class_plupload.Uploader.html">Uploader</a>):void</div>
<div class="summary">
<span class="static">[static] </span>Initializes the upload runtime.</div>
</td>
<td class="last">FlashRuntime</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_plupload.FlashRuntime.html#isSupported">isSupported</a>():boolean</div>
<div class="summary">
<span class="static">[static] </span>Checks if the Flash is installed or not.</div>
</td>
<td class="last">FlashRuntime</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails" id="init">
<h3>init<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function init(uploader:<a href="class_plupload.Uploader.html">Uploader</a>):void</code>
<div class="memberDescription">Initializes the upload runtime. This method should add necessary items to the DOM and register events needed for operation.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">uploader:<a href="class_plupload.Uploader.html">Uploader</a>
</td>
<td class="last">Uploader instance that needs to be initialized.</td>
</tr>
</table>
</div>
<div class="memberDetails last" id="isSupported">
<h3>isSupported<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function isSupported():boolean</code>
<div class="memberDescription">Checks if the Flash is installed or not.
</div>
<h4>Returns</h4>
<div class="returns">boolean - true/false if the runtime exists.</div>
</div>
</div>
</div>
</div>
</body>
</html>
Loading
Oops, something went wrong.

0 comments on commit e0d7693

Please sign in to comment.