[#1019] Created a standard naming for all common manifest options. Fixed labeling on all.

This commit is contained in:
Matthew Schranz 2012-05-22 09:18:16 -04:00 коммит произвёл David Seifried
Родитель ac555be570
Коммит b6322459ea
27 изменённых файлов: 165 добавлений и 168 удалений

Просмотреть файл

@ -144,13 +144,13 @@
options:{ options:{
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
nameofwork: { nameofwork: {
elem: "input", elem: "input",
@ -160,7 +160,7 @@
nameofworkurl: { nameofworkurl: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Url of Work", label: "URL of Work",
optional: true optional: true
}, },
copyrightholder: { copyrightholder: {
@ -171,17 +171,17 @@
copyrightholderurl: { copyrightholderurl: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Copyright Holder Url", label: "Copyright Holder URL",
optional: true optional: true
}, },
license: { license: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "License type" label: "License Type"
}, },
licenseurl: { licenseurl: {
elem: "input", elem: "input",
type: "url", type: "text",
label: "License URL", label: "License URL",
optional: true optional: true
}, },

Просмотреть файл

@ -155,13 +155,13 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
onStart: { onStart: {
elem: "input", elem: "input",

Просмотреть файл

@ -39,13 +39,13 @@ api - https://github.com/documentcloud/document-viewer/blob/master/public/javasc
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "documentcloud-container", target: "documentcloud-container",
width: { width: {
@ -62,7 +62,7 @@ api - https://github.com/documentcloud/document-viewer/blob/master/public/javasc
}, },
src: { src: {
elem: "input", elem: "input",
type: "text", type: "url",
label: "PDF URL", label: "PDF URL",
"default": "http://www.documentcloud.org/documents/70050-urbina-day-1-in-progress.html" "default": "http://www.documentcloud.org/documents/70050-urbina-day-1-in-progress.html"
}, },

Просмотреть файл

@ -60,24 +60,24 @@
type: { type: {
elem: "select", elem: "select",
options: [ "LIKE", "LIKE-BOX", "ACTIVITY", "FACEPILE", "LIVE-STREAM", "SEND", "COMMENTS" ], options: [ "LIKE", "LIKE-BOX", "ACTIVITY", "FACEPILE", "LIVE-STREAM", "SEND", "COMMENTS" ],
label: "Type" label: "Plugin Type"
}, },
target: "facebook-container", target: "facebook-container",
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
// optional parameters: // optional parameters:
font: { font: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "font", label: "Font",
optional: true optional: true
}, },
xid: { xid: {
@ -89,7 +89,7 @@
href: { href: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Href", label: "href",
optional: true optional: true
}, },
site: { site: {
@ -141,32 +141,32 @@
max_rows: { max_rows: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "Max_rows", label: "Max Rows",
"default": 1, "default": 1,
optional: true optional: true
}, },
border_color: { border_color: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Border_color", label: "Border Color",
optional: true optional: true
}, },
event_app_id: { event_app_id: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Event_app_id", label: "Event App Id",
optional: true optional: true
}, },
colorscheme: { colorscheme: {
elem: "select", elem: "select",
options: [ "light", "dark" ], options: [ "light", "dark" ],
label: "Colorscheme", label: "Color Scheme",
optional: true optional: true
}, },
show_faces: { show_faces: {
elem: "input", elem: "input",
type: "checkbox", type: "checkbox",
label: "Showfaces", label: "Show Faces",
"default": false, "default": false,
optional: true optional: true
}, },
@ -180,14 +180,14 @@
always_post_to_friends: { always_post_to_friends: {
elem: "input", elem: "input",
type: "checkbox", type: "checkbox",
label: "Always_post_to_friends", label: "Always post to Friends",
"default": false, "default": false,
optional: true optional: true
}, },
num_posts: { num_posts: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "Number_of_Comments", label: "Number of Comments",
"default": 1, "default": 1,
optional: true optional: true
} }

Просмотреть файл

@ -176,13 +176,13 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
userid: { userid: {
elem: "input", elem: "input",
@ -204,7 +204,7 @@
apikey: { apikey: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Api_key", label: "API Key",
optional: true optional: true
}, },
target: "flickr-container", target: "flickr-container",

Просмотреть файл

@ -36,13 +36,13 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
text: { text: {
elem: "input", elem: "input",

Просмотреть файл

@ -153,13 +153,13 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
gmltag: { gmltag: {
elem: "input", elem: "input",

Просмотреть файл

@ -155,32 +155,32 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "feed-container", target: "feed-container",
url: { url: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "url", label: "Feed URL",
"default": "http://planet.mozilla.org/rss20.xml" "default": "http://planet.mozilla.org/rss20.xml"
}, },
title: { title: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "title", label: "Title",
"default": "Planet Mozilla", "default": "Planet Mozilla",
optional: true optional: true
}, },
orientation: { orientation: {
elem: "select", elem: "select",
options: [ "Vertical", "Horizontal" ], options: [ "Vertical", "Horizontal" ],
label: "orientation", label: "Orientation",
"default": "Vertical", "default": "Vertical",
optional: true optional: true
} }

Просмотреть файл

@ -395,19 +395,19 @@ var googleCallback;
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "start",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "start",
label: "Out" label: "End"
}, },
target: "map-container", target: "map-container",
type: { type: {
elem: "select", elem: "select",
options: [ "ROADMAP", "SATELLITE", "STREETVIEW", "HYBRID", "TERRAIN", "STAMEN-WATERCOLOR", "STAMEN-TERRAIN", "STAMEN-TONER" ], options: [ "ROADMAP", "SATELLITE", "STREETVIEW", "HYBRID", "TERRAIN", "STAMEN-WATERCOLOR", "STAMEN-TERRAIN", "STAMEN-TONER" ],
label: "Type", label: "Map Type",
optional: true optional: true
}, },
zoom: { zoom: {

Просмотреть файл

@ -92,31 +92,32 @@
start: { start: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "Out" label: "End"
},
src: {
elem: "input",
type: "url",
label: "Image URL",
"default": "http://mozillapopcorn.org/wp-content/themes/popcorn/images/for_developers.png"
}, },
href: { href: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "anchor URL", label: "Link",
"default": "http://mozillapopcorn.org/wp-content/themes/popcorn/images/for_developers.png", "default": "http://mozillapopcorn.org/wp-content/themes/popcorn/images/for_developers.png",
optional: true optional: true
}, },
target: "image-container", target: "image-container",
src: {
elem: "input",
type: "url",
label: "Source URL",
"default": "http://mozillapopcorn.org/wp-content/themes/popcorn/images/for_developers.png"
},
text: { text: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Text", label: "Caption",
"default": "Popcorn.js",
optional: true optional: true
} }
} }

Просмотреть файл

@ -119,13 +119,13 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "lastfm-container", target: "lastfm-container",
artist: { artist: {

Просмотреть файл

@ -54,7 +54,7 @@
}, },
url: { url: {
elem: "input", elem: "input",
type: "text", type: "url",
label: "URL" label: "URL"
}, },
apikey: { apikey: {
@ -94,24 +94,24 @@
productid: { productid: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "productid", label: "Product Id",
optional: true optional: true
}, },
related: { related: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "related", label: "Related",
optional: true optional: true
}, },
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "linkedin-container" target: "linkedin-container"

Просмотреть файл

@ -41,32 +41,32 @@
options:{ options:{
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "lowerthird-container", target: "lowerthird-container",
salutation : { salutation : {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Text", label: "Salutation",
"default": "hello", "default": "hello",
optional: true optional: true
}, },
name: { name: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Text", label: "Name",
"default": "Popcorn.js" "default": "Popcorn.js"
}, },
role: { role: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Text", label: "Role",
"default": "JavaScript library", "default": "JavaScript library",
optional: true optional: true
} }

Просмотреть файл

@ -64,12 +64,12 @@
target: "mediaspawner-container", target: "mediaspawner-container",
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Start" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "End" label: "End"
}, },
autoplay: { autoplay: {

Просмотреть файл

@ -179,13 +179,13 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "mustache-container", target: "mustache-container",
template: { template: {

Просмотреть файл

@ -341,19 +341,19 @@
options:{ options:{
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "map-container", target: "map-container",
type: { type: {
elem: "select", elem: "select",
options: [ "ROADMAP", "SATELLITE", "TERRAIN" ], options: [ "ROADMAP", "SATELLITE", "TERRAIN" ],
label: "Type", label: "Map Type",
optional: true optional: true
}, },
zoom: { zoom: {

Просмотреть файл

@ -134,19 +134,15 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "Number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "Number",
label: "Out" label: "End"
},
target: {
elem: "input",
type: "text",
label: "Target"
}, },
target: "processing-container",
sketch: { sketch: {
elem: "input", elem: "input",
type: "url", type: "url",

Просмотреть файл

@ -131,15 +131,15 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "rdio", target: "rdio-container",
artist: { artist: {
elem: "input", elem: "input",
type: "text", type: "text",

Просмотреть файл

@ -71,12 +71,12 @@
start: { start: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Out" label: "End"
}, },
target: "subtitle-container", target: "subtitle-container",
text: { text: {

Просмотреть файл

@ -106,31 +106,31 @@
options:{ options:{
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target : "tagthisperson-container", target : "tagthisperson-container",
person: { person: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Name", label: "Person's Name",
"default": "Popcorn.js" "default": "Popcorn.js"
}, },
image: { image: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Image Src", label: "Image URL",
optional: true optional: true
}, },
href: { href: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "URL", label: "Link",
optional: true optional: true
} }
} }

Просмотреть файл

@ -129,13 +129,13 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
text: { text: {
elem: "input", elem: "input",

Просмотреть файл

@ -109,35 +109,35 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "feed-container", target: "feed-container",
title: { title: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "title" label: "Title"
}, },
text: { text: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "text" label: "Text"
}, },
innerHTML: { innerHTML: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "innerHTML", label: "HTML Code",
optional: true optional: true
}, },
direction: { direction: {
elem: "select", elem: "select",
options: [ "DOWN", "UP" ], options: [ "DOWN", "UP" ],
label: "direction", label: "Direction",
optional: true optional: true
} }
} }

Просмотреть файл

@ -247,42 +247,42 @@
requestType: { requestType: {
elem: "select", elem: "select",
options:[ "INFO", "AVATAR", "BLOGPOST" ], options:[ "INFO", "AVATAR", "BLOGPOST" ],
label: "Type_Of_Plugin" label: "Request Type"
}, },
target: "tumblr-container", target: "tumblr-container",
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Start_Time" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "End_Time" label: "End"
}, },
base_hostname: { base_hostname: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "User_Name", label: "User Name",
"default": "https://citriccomics.tumblr.com" "default": "https://citriccomics.tumblr.com"
}, },
// optional parameters: // optional parameters:
api_key: { // Required for Blog Info and Blog Post retrievals api_key: { // Required for Blog Info and Blog Post retrievals
elem: "input", elem: "input",
type: "text", type: "text",
label: "Application_Key", label: "API key",
optional: true optional: true
}, },
size: { size: {
elem: "select", elem: "select",
options: [ 16, 24, 30, 40, 48, 64, 96, 128, 512 ], options: [ 16, 24, 30, 40, 48, 64, 96, 128, 512 ],
label: "avatarSize", label: "Avatar Size",
optional: true optional: true
}, },
blogId: { // Required for BLOGPOST requests blogId: { // Required for BLOGPOST requests
elem: "input", elem: "input",
type: "number", type: "number",
label: "Blog_ID", label: "Blog Id",
optional: true optional: true
}, },
/* Optional for Photo and Video BlogPosts, defaulted to 250 pixels for photos and 400 for videos if not provided or provided width /* Optional for Photo and Video BlogPosts, defaulted to 250 pixels for photos and 400 for videos if not provided or provided width
@ -291,8 +291,8 @@
*/ */
width: { width: {
elem: "input", elem: "input",
type: "number", type: "text",
label: "Photo_Width", label: "Photo Width",
optional: true optional: true
} }
} }

Просмотреть файл

@ -43,18 +43,18 @@
options:{ options:{
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
src: { src: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Source", label: "Tweet Source (# or @)",
"default": "@popcornjs" "default": "@popcornjs"
}, },
target: "twitter-container", target: "twitter-container",

Просмотреть файл

@ -43,18 +43,18 @@
}, },
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
src: { src: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Src", label: "Webpage URL",
"default": "http://mozillapopcorn.org" "default": "http://mozillapopcorn.org"
}, },
target: "iframe-container" target: "iframe-container"

Просмотреть файл

@ -43,13 +43,13 @@ var wikiCallback;
options:{ options:{
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
lang: { lang: {
elem: "input", elem: "input",
@ -61,7 +61,7 @@ var wikiCallback;
src: { src: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Src", label: "Wikipedia URL",
"default": "http://en.wikipedia.org/wiki/Cat" "default": "http://en.wikipedia.org/wiki/Cat"
}, },
title: { title: {
@ -73,8 +73,8 @@ var wikiCallback;
}, },
numberofwords: { numberofwords: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Num Of Words", label: "Number of Words",
"default": "200", "default": "200",
optional: true optional: true
}, },

Просмотреть файл

@ -71,13 +71,13 @@
options: { options: {
start: { start: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "In" label: "Start"
}, },
end: { end: {
elem: "input", elem: "input",
type: "text", type: "number",
label: "Out" label: "End"
}, },
target: "wordriver-container", target: "wordriver-container",
text: { text: {