Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate Zepheira commits #2

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
20d4996
would be present from svn externals
zepheiryan Feb 27, 2013
719aa3e
files are unnecessary for require.js/r.js
zepheiryan Feb 27, 2013
076b694
file appears to be unreferenced from anywhere and probably unnecessar…
zepheiryan Feb 27, 2013
51b9382
removing remoteLog, this belongs somewhere other than the core
zepheiryan Feb 27, 2013
e614dc8
RequireJS, jQuery, and JSON2 libraries
zepheiryan Feb 27, 2013
c7b7446
only useful for non-requirejs loading
zepheiryan Feb 27, 2013
de4ca93
moved over to json2 lib
zepheiryan Feb 27, 2013
26c8692
All files should now conform to RequireJS modular dependency loading.…
zepheiryan Feb 27, 2013
c3d399a
adding i18n plugin file
zepheiryan Mar 8, 2013
401ad5a
eliminate terrible String modification in favor of string utilities
zepheiryan Mar 8, 2013
9003e6f
fix paths and missing dependencies
zepheiryan Mar 8, 2013
b8ab0ce
bug in not detecting null
zepheiryan Mar 8, 2013
70308ef
baseUrl is temporary, based on using local development infrastructure…
zepheiryan Mar 8, 2013
b8b7e68
remove documentation, can be found in commit log, move README to mark…
zepheiryan Mar 8, 2013
61d4b5c
adding local configuration option for use with standard local Jetty-b…
zepheiryan Mar 9, 2013
c904775
excising dead code paths, bumping to 3.0.0
zepheiryan Mar 9, 2013
cb64625
adding svn externals jetty jars
zepheiryan Mar 9, 2013
f013ed9
removed non-license text from license, moved legal matters to readme
zepheiryan Mar 9, 2013
0566204
fixing text linking
zepheiryan Mar 9, 2013
f18deb6
also add build tools
zepheiryan Mar 9, 2013
0c0ef1c
no need for config in ajax, config will have to be in users of ajax; …
zepheiryan Mar 9, 2013
a40b81e
using r.js for building bundled files, both for AMD-aware projects an…
zepheiryan Jul 31, 2013
b053eee
go back to using simile-ajax-api as the main entry point for backward…
zepheiryan Aug 1, 2013
b1ee160
add task to publish bundles locally, add cleanup for publish-local
zepheiryan Aug 1, 2013
ad3f0fc
make publish task default, make including / using require false by de…
zepheiryan Aug 1, 2013
d79f6e9
add includeRequire parameter in case something else is already loadin…
zepheiryan Aug 1, 2013
5f67ea2
removing require parameter, removing bundle parameter - using simile-…
zepheiryan Aug 2, 2013
fba85a5
shift function back to main file, take in bundle parameter solely for…
zepheiryan Aug 2, 2013
8d2dab2
moving main to simile-ajax to reduce conflicts when using as a separa…
zepheiryan Aug 2, 2013
06d3f3a
removing forgotten detritus
zepheiryan Aug 2, 2013
98dbab6
repair non-require bundle require statement; add domReady plugin to c…
zepheiryan Aug 2, 2013
f74dcce
remove JSON2, not used in this project; adjust README according to la…
zepheiryan Aug 2, 2013
83ff53d
fix path
zepheiryan Aug 2, 2013
9b9bcb4
make message bubble appearance controlled by css; remove line feeds; …
zepheiryan Aug 3, 2013
10416d7
remove dead code path, add css-loading only function
zepheiryan Aug 3, 2013
1979d12
add sample dev config; add handling for RequireJS config parameters, …
zepheiryan Aug 5, 2013
c51d476
add debug bundle, ignore if in place
zepheiryan Aug 6, 2013
cc4b9b1
add public method to set prefix
zepheiryan Aug 6, 2013
98c857a
more rigorously avoid multiple loads, add url args for cache busting …
zepheiryan Aug 7, 2013
6bc9ddb
move base to simile-ajax-base
zepheiryan Aug 8, 2013
140cf54
modifying graphics so initialization is called, not auto run, which c…
zepheiryan Aug 15, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build/
src/webapp/api/simile-ajax-api.js
src/webapp/api/simile-ajax-api-debug.js
src/webapp/api/simile-ajax-bundle.js
src/webapp/api/styles/simile-ajax-bundle.css
45 changes: 0 additions & 45 deletions CHANGES.txt

This file was deleted.

7 changes: 0 additions & 7 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,4 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Note: JQuery, www.jquery.com is included in this distribution. It is
* covered by its own license:
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*/
84 changes: 84 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
SimileAjax
==========

SimileAjax is a [SIMILE](http://simile-widgets.org/) Javascript library used by [Timeline](https://github.com/zepheira/timeline/) and other frameworks. It is relatively obsolete and has been written out of [Exhibit](https://github.com/zepheira/exhibit3/) entirely. You should probably choose jQuery or other similar tools to meet your needs, this primarily exists as a compatibility shim until it can be replaced.

Usage
-----

SimileAjax now comes in two flavors. You can continue to call `simile-ajax-api.js` (a built file) which is a self-contained bundle that should be backwards compatible with any prior usage of the library.

```html
<script src="ajax/api/simile-ajax-api.js"></script>
```

Or you can use your own RequireJS configuration to include SimileAjax in your application. The RequireJS-aware bundled file is quite different from the older convention and should take advantage of the RequireJS config system for setting things embedded URL parameters or global script variables used to provide. A sample configuration:

```javascript
require.config({
// ... your other configuration material ...
paths: {
"simile-ajax": "ajax/api/simile-ajax-bundle"
},
config: {
simile-ajax: {
bundle: true, // default
prefix: "ajax/api"
}
}
});
require(["simile-ajax"], function(SimileAjax) {
if (SimileAjax.loaded) {
console.log("SimileAjax is working.");
}
});
```

Mailing List and Forum
----------------------

Join the community by joining the [Google Group SIMILE Widgets](http://groups.google.com/group/simile-widgets/).

Licensing
---------

SimileAjax is open source software and is licensed under the modified BSD license located in the LICENSE.txt file located in the same directory as this README.

This code contains libraries found in `src/webapp/api/lib/` that are covered by their own licenses.

* [RequireJS](http://requirejs.org/) is covered by the [modified BSD license](https://github.com/jrburke/requirejs/blob/master/LICENSE).
* [almond](https://github.com/jrburke/almond) is covered by the [modified BSD license](https://github.com/jrburke/almond/blob/master/LICENSE).

This code contains libraries found in `lib/` and `optimize/` that support development that are covered by their own licenses.

* [Jetty](http://jetty.codehaus.org/) is covered by the [Apache 2.0 License](http://jetty.codehaus.org/jetty/license.html)
* [r.js](http://requirejs.org/docs/optimization.html) is covered by the [modified BSD license](https://github.com/jrburke/r.js/blob/master/LICENSE).

Bundling
--------

You will need `ant` and `node` in order to build the SimileAjax bundles. Use `ant bundle-all` to build both the RequireJS-dependent and non-RequireJS dependent bundles (and the CSS bundle). Use the non-RequireJS output, found in `build/simile-ajax-api.js`, for compatibility with older code that isn't AMD-aware. Use the RequireJS output, `build/simile-ajax-bundle.js`, for code that is AMD-aware.

Latest Release - 3.0.0
----------------------

Released August, 2013.

* Forked source to https://github.com/zepheira/simile-ajax/
* Swtiched from self-contained loading to RequireJS 2.1.2. Do not use SimileAjax to load script files, those methods are now deprecated and will do nothing.
* Removed jQuery, it was only included here to use SimileAjax as a namespace. Use RequireJS to load it into a context instead.
* Removed modification of native String class, use StringUtils instead.
* Removed all files related to loading and original bundling / compression.
* Demoted `bundle` parameter to only control CSS, only useful in development.
* Added handling for RequireJS config to ultimately supersede parameters and global variables.
* Minor bug fixes.
* See https://github.com/zepheira/simile-ajax/compare/2.2.3...3.0.0 for all commits.

Credits
-------

This software was created by the SIMILE project and originally written by the SIMILE development team (in alphabetical order):

* [David Huynh](http://davidhuynh.net)

Thanks for your interest.
50 changes: 0 additions & 50 deletions README.txt

This file was deleted.

49 changes: 0 additions & 49 deletions RELEASE_NOTES.txt

This file was deleted.

59 changes: 40 additions & 19 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,50 @@
|
+-->

<project default="bundle" basedir="." name="SimileAjax">
<project default="publish-local" basedir="." name="SimileAjax">

<property name="webapp.dir" value="src/webapp"/>
<property name="api.dir" value="${webapp.dir}/api"/>
<property name="site.dir" value="${webapp.dir}/site"/>
<property name="scripts.dir" value="${api.dir}/scripts"/>
<property name="docs.dir" value="${site.dir}/docs"/>
<property name="jsdoc.dir" value="tools/jsdoc"/>
<property name="rjs.dir" value="optimize"/>
<property name="build.dir" value="build"/>

<target name="tasks">
<taskdef name="jsmin"
classname="edu.mit.simile.jsminTask.JSMinTask"
classpath="tools/jsmin-task/jsminTask.jar"/>
<target name="bundle">
<exec dir="." executable="node">
<arg line="${rjs.dir}/r.js -o ${rjs.dir}/build.js"/>
</exec>
</target>

<target name="bundle" depends="tasks">
<jsmin output="src/webapp/api/simile-ajax-bundle.js">
<fileset dir="src/webapp/api/scripts">
<include name="jquery*.js" />
<include name="platform.js" />
</fileset>
<fileset dir="src/webapp/api/scripts">
<include name="**/*.js" />
<exclude name="signal.js" />
<exclude name="jquery*.js" />
<exclude name="platform.js" />
</fileset>
</jsmin>

<target name="bundle-require">
<exec dir="." executable="node">
<arg line="${rjs.dir}/r.js -o ${rjs.dir}/build-require.js"/>
</exec>
</target>

<target name="bundle-css">
<exec dir="." executable="node">
<arg line="${rjs.dir}/r.js -o ${rjs.dir}/build-css.js"/>
</exec>
</target>

<target name="bundle-debug">
<exec dir="." executable="node">
<arg line="${rjs.dir}/r.js -o ${rjs.dir}/build.js optimize=none out=build/simile-ajax-api-debug.js"/>
</exec>
<copy file="${build.dir}/simile-ajax-api-debug.js" todir="${api.dir}"/>
</target>

<target name="bundle-all" depends="bundle,bundle-require,bundle-css" />

<target name="publish-local" depends="bundle-all">
<copy file="${build.dir}/simile-ajax-api.js" todir="${api.dir}"/>
<copy file="${build.dir}/simile-ajax-bundle.js" todir="${api.dir}"/>
<copy file="${build.dir}/simile-ajax-bundle.css" todir="${api.dir}/styles"/>
</target>

<target name="docs">
<java jar="${jsdoc.dir}/app/js.jar" fork="true" dir="${jsdoc.dir}">
<arg value="app/run.js"/>
Expand All @@ -47,4 +61,11 @@
<arg value="../../src"/>
</java>
</target>

<target name="clean">
<delete dir="${build.dir}"/>
<delete file="${api.dir}/simile-ajax-api.js"/>
<delete file="${api.dir}/simile-ajax-bundle.js"/>
<delete file="${api.dir}/styles/simile-ajax-bundle.css"/>
</target>
</project>
11 changes: 11 additions & 0 deletions lib/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jetty</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
Binary file added lib/jetty-6.0.1.jar
Binary file not shown.
Binary file added lib/jetty-util-6.0.1.jar
Binary file not shown.
Binary file added lib/servlet-api-2.5-6.0.1.jar
Binary file not shown.
Binary file added lib/start.jar
Binary file not shown.
4 changes: 4 additions & 0 deletions optimize/build-css.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
({
"cssIn": "../src/webapp/api/styles/main.css",
"out": "../build/simile-ajax-bundle.css"
})
5 changes: 5 additions & 0 deletions optimize/build-require.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
({
"baseUrl": "../src/webapp/api/",
"name": "simile-ajax",
"out": "../build/simile-ajax-bundle.js"
})
10 changes: 10 additions & 0 deletions optimize/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
({
"baseUrl": "../src/webapp/api/",
"name": "lib/almond",
"include": [ "simile-ajax" ],
"wrap": {
"startFile": "start.frag",
"endFile": "end.frag"
},
"out": "../build/simile-ajax-api.js"
})
2 changes: 2 additions & 0 deletions optimize/end.frag
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
return require("simile-ajax");
}));
Loading