From: cadecairos Date: Thu, 28 Jul 2011 22:08:09 +0000 (-0400) Subject: moved manifest declarations outside of plugin definitions. X-Git-Tag: v0.8^2~23^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=76a1736525c4817c7c688f6125d412d30a2f1071;p=popcorn-js.git moved manifest declarations outside of plugin definitions. --- diff --git a/plugins/attribution/popcorn.attribution.js b/plugins/attribution/popcorn.attribution.js index 703ea96..53c561a 100755 --- a/plugins/attribution/popcorn.attribution.js +++ b/plugins/attribution/popcorn.attribution.js @@ -42,25 +42,7 @@ target; return { - manifest: { - about:{ - name: "Popcorn Attribution Plugin", - version: "0.2", - author: "@rwaldron", - website: "github.com/rwldrn" - }, - options:{ - start: { elem:"input", type:"text", label:"In" }, - end: { elem:"input", type:"text", label:"Out" }, - nameofwork: { elem:"input", type:"text", label:"Name of Work" }, - nameofworkurl: { elem:"input", type:"text", label:"Url of Work" }, - copyrightholder: { elem:"input", type:"text", label:"Copyright Holder" }, - copyrightholderurl: { elem:"input", type:"text", label:"Copyright Holder Url" }, - license: { elem:"input", type:"text", label:"License type" }, - licenseurl: { elem:"input", type:"text", label:"License URL" }, - target: "attribution-container" - } - }, + _setup: function( options ) { var attrib = "", @@ -148,5 +130,24 @@ target && target.removeChild( options._container ); } }; - })()); + })(), + { + about:{ + name: "Popcorn Attribution Plugin", + version: "0.2", + author: "@rwaldron", + website: "github.com/rwldrn" + }, + options:{ + start: { elem:"input", type:"text", label:"In" }, + end: { elem:"input", type:"text", label:"Out" }, + nameofwork: { elem:"input", type:"text", label:"Name of Work" }, + nameofworkurl: { elem:"input", type:"text", label:"Url of Work" }, + copyrightholder: { elem:"input", type:"text", label:"Copyright Holder" }, + copyrightholderurl: { elem:"input", type:"text", label:"Copyright Holder Url" }, + license: { elem:"input", type:"text", label:"License type" }, + licenseurl: { elem:"input", type:"text", label:"License URL" }, + target: "attribution-container" + } + }); })( Popcorn ); diff --git a/plugins/code/popcorn.code.js b/plugins/code/popcorn.code.js index a871a35..18b08a4 100755 --- a/plugins/code/popcorn.code.js +++ b/plugins/code/popcorn.code.js @@ -133,8 +133,8 @@ } } }; - }, - { + }, + { about: { name: 'Popcorn Code Plugin', version: '0.1', diff --git a/plugins/lastfm/popcorn.lastfm.js b/plugins/lastfm/popcorn.lastfm.js index 9de8702..94f9a85 100755 --- a/plugins/lastfm/popcorn.lastfm.js +++ b/plugins/lastfm/popcorn.lastfm.js @@ -57,20 +57,6 @@ return { - manifest: { - about:{ - name: "Popcorn LastFM Plugin", - version: "0.1", - author: "Steven Weerdenburg", - website: "http://sweerdenburg.wordpress.com/" - }, - options:{ - start : {elem:'input', type:'text', label:'In'}, - end : {elem:'input', type:'text', label:'Out'}, - target : 'lastfm-container', - artist : {elem:'input', type:'text', label:'Artist'} - } - }, _setup: function( options ) { options._container = document.createElement( 'div' ); @@ -118,6 +104,20 @@ document.getElementById( options.target ) && document.getElementById( options.target ).removeChild( options._container ); } }; - })()); + })(), + { + about:{ + name: "Popcorn LastFM Plugin", + version: "0.1", + author: "Steven Weerdenburg", + website: "http://sweerdenburg.wordpress.com/" + }, + options:{ + start : {elem:'input', type:'text', label:'In'}, + end : {elem:'input', type:'text', label:'Out'}, + target : 'lastfm-container', + artist : {elem:'input', type:'text', label:'Artist'} + } + }); })( Popcorn ); diff --git a/plugins/processing/popcorn.processing.js b/plugins/processing/popcorn.processing.js index 60e2327..a6becdd 100644 --- a/plugins/processing/popcorn.processing.js +++ b/plugins/processing/popcorn.processing.js @@ -99,22 +99,6 @@ return { - manifest: { - about: { - name: "Popcorn Processing Plugin", - version: "0.1", - author: "Christopher De Cairos, Benjamin Chalovich", - website: "cadecairos.blogspot.com, ben1amin.wordpress.org" - }, - options: { - start : { elem: "input", type: "text", label: "In" }, - end : { elem: "input", type: "text", label: "Out" }, - target : { elem: "input", type: "text", label: "Target" }, - sketch : { elem: "input", type: "text", label: "Sketch" }, - noPause : { elem: "select", options: [ "TRUE", "FALSE" ], label: "No Loop" } - } - }, - _setup: function( options ) { options.codeReady = false; @@ -139,5 +123,20 @@ options.parentTarget && options.parentTarget.removeChild( options.canvas ); } }; + }, + { + about: { + name: "Popcorn Processing Plugin", + version: "0.1", + author: "Christopher De Cairos, Benjamin Chalovich", + website: "cadecairos.blogspot.com, ben1amin.wordpress.org" + }, + options: { + start : { elem: "input", type: "text", label: "In" }, + end : { elem: "input", type: "text", label: "Out" }, + target : { elem: "input", type: "text", label: "Target" }, + sketch : { elem: "input", type: "text", label: "Sketch" }, + noPause : { elem: "select", options: [ "TRUE", "FALSE" ], label: "No Loop" } + } }); }( Popcorn )); diff --git a/plugins/tagthisperson/popcorn.tagthisperson.js b/plugins/tagthisperson/popcorn.tagthisperson.js index 519ac29..557b0fc 100755 --- a/plugins/tagthisperson/popcorn.tagthisperson.js +++ b/plugins/tagthisperson/popcorn.tagthisperson.js @@ -47,22 +47,7 @@ Popcorn.plugin( "tagthisperson" , ( function() { return { - manifest: { - about:{ - name: "Popcorn tagthisperson Plugin", - version: "0.1", - author: "@annasob", - website: "annasob.wordpress.com" - }, - options:{ - start : {elem:'input', type:'text', label:'In'}, - end : {elem:'input', type:'text', label:'Out'}, - target : 'tagthisperson-container', - person : {elem:'input', type:'text', label:'Name'}, - image : {elem:'input', type:'text', label:'Image Src'}, - href : {elem:'input', type:'text', label:'URL'} - } - }, + _setup: function( options ) { var exists = false; // loop through the existing objects to ensure no duplicates @@ -104,6 +89,22 @@ document.getElementById( options.target ).innerHTML = options._p.toString(); } }; - })()); + })(), + { + about:{ + name: "Popcorn tagthisperson Plugin", + version: "0.1", + author: "@annasob", + website: "annasob.wordpress.com" + }, + options:{ + start : {elem:'input', type:'text', label:'In'}, + end : {elem:'input', type:'text', label:'Out'}, + target : 'tagthisperson-container', + person : {elem:'input', type:'text', label:'Name'}, + image : {elem:'input', type:'text', label:'Image Src'}, + href : {elem:'input', type:'text', label:'URL'} + } + }); })( Popcorn );