Added an optional flag on some plugin attributes [#828]

This commit is contained in:
Jon Buckley 2012-03-02 21:49:06 -05:00
Родитель b27ed87710 5ce8e49360
Коммит a51af10eda
20 изменённых файлов: 134 добавлений и 60 удалений

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

@ -160,7 +160,8 @@
nameofworkurl: { nameofworkurl: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Url of Work" label: "Url of Work",
optional: true
}, },
copyrightholder: { copyrightholder: {
elem: "input", elem: "input",
@ -170,7 +171,8 @@
copyrightholderurl: { copyrightholderurl: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Copyright Holder Url" label: "Copyright Holder Url",
optional: true
}, },
license: { license: {
elem: "input", elem: "input",
@ -180,7 +182,8 @@
licenseurl: { licenseurl: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "License URL" label: "License URL",
optional: true
}, },
target: "attribution-container" target: "attribution-container"
} }

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

@ -170,7 +170,8 @@
onFrame: { onFrame: {
elem: "input", elem: "input",
type: "function", type: "function",
label: "onFrame" label: "onFrame",
optional: true
}, },
onEnd: { onEnd: {
elem: "input", elem: "input",

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

@ -51,12 +51,14 @@ api - https://github.com/documentcloud/document-viewer/blob/master/public/javasc
width: { width: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Width" label: "Width",
optional: true
}, },
height: { height: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Height" label: "Height",
optional: true
}, },
src: { src: {
elem: "input", elem: "input",
@ -66,17 +68,20 @@ api - https://github.com/documentcloud/document-viewer/blob/master/public/javasc
preload: { preload: {
elem: "input", elem: "input",
type: "boolean", type: "boolean",
label: "Preload" label: "Preload",
optional: true
}, },
page: { page: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "Page Number" label: "Page Number",
optional: true
}, },
aid: { aid: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "Annotation Id" label: "Annotation Id",
optional: true
} }
} }
}, },

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

@ -77,92 +77,110 @@
font: { font: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "font" label: "font",
optional: true
}, },
xid: { xid: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Xid" label: "Xid",
optional: true
}, },
href: { href: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Href" label: "Href",
optional: true
}, },
site: { site: {
elem: "input", elem: "input",
type: "url", type: "url",
label:"Site" label:"Site",
optional: true
}, },
height: { height: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Height" label: "Height",
optional: true
}, },
width: { width: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Width" label: "Width",
optional: true
}, },
action: { action: {
elem: "select", elem: "select",
options: [ "like", "recommend" ], options: [ "like", "recommend" ],
label: "Action" label: "Action",
optional: true
}, },
stream: { stream: {
elem: "select", elem: "select",
options: [ "false", "true" ], options: [ "false", "true" ],
label: "Stream" label: "Stream",
optional: true
}, },
header: { header: {
elem: "select", elem: "select",
options: [ "false", "true" ], options: [ "false", "true" ],
label: "Header" label: "Header",
optional: true
}, },
layout: { layout: {
elem: "select", elem: "select",
options: [ "standard", "button_count", "box_count" ], options: [ "standard", "button_count", "box_count" ],
label: "Layout" label: "Layout",
optional: true
}, },
max_rows: { max_rows: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Max_rows" label: "Max_rows",
optional: true
}, },
border_color: { border_color: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Border_color" label: "Border_color",
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
}, },
colorscheme: { colorscheme: {
elem: "select", elem: "select",
options: [ "light", "dark" ], options: [ "light", "dark" ],
label: "Colorscheme" label: "Colorscheme",
optional: true
}, },
show_faces: { show_faces: {
elem: "select", elem: "select",
options: [ "false", "true" ], options: [ "false", "true" ],
label: "Showfaces" label: "Showfaces",
optional: true
}, },
recommendations: { recommendations: {
elem: "select", elem: "select",
options: [ "false", "true" ], options: [ "false", "true" ],
label: "Recommendations" label: "Recommendations",
optional: true
}, },
always_post_to_friends: { always_post_to_friends: {
elem: "input", elem: "input",
options: [ "false", "true" ], options: [ "false", "true" ],
label: "Always_post_to_friends" label: "Always_post_to_friends",
optional: true
}, },
num_posts: { num_posts: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Number_of_Comments" label: "Number_of_Comments",
optional: true
} }
} }
}, },

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

@ -187,7 +187,8 @@
userid: { userid: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "UserID" label: "UserID",
optional: true
}, },
tags: { tags: {
elem: "input", elem: "input",
@ -198,32 +199,38 @@
elem: "input", elem: "input",
type: "text", type: "text",
label: "Username" label: "Username"
optional: true
}, },
apikey: { apikey: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Api_key" label: "Api_key"
optional: true
}, },
target: "flickr-container", target: "flickr-container",
height: { height: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Height" label: "Height"
optional: true
}, },
width: { width: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Width" label: "Width"
optional: true
}, },
padding: { padding: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Padding" label: "Padding"
optional: true
}, },
border: { border: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Border" label: "Border"
optional: true
}, },
numberofimages: { numberofimages: {
elem: "input", elem: "input",

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

@ -173,11 +173,13 @@
elem: "input", elem: "input",
type: "text", type: "text",
label: "title" label: "title"
optional: true
}, },
orientation: { orientation: {
elem: "select", elem: "select",
options: [ "Vertical", "Horizontal" ], options: [ "Vertical", "Horizontal" ],
label: "orientation" label: "orientation"
optional: true
} }
} }
}); });

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

@ -356,21 +356,25 @@ var googleCallback;
elem: "select", elem: "select",
options: [ "ROADMAP", "SATELLITE", "STREETVIEW", "HYBRID", "TERRAIN" ], options: [ "ROADMAP", "SATELLITE", "STREETVIEW", "HYBRID", "TERRAIN" ],
label: "Type" label: "Type"
optional: true
}, },
zoom: { zoom: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Zoom" label: "Zoom"
optional: true
}, },
lat: { lat: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Lat" label: "Lat"
optional: true
}, },
lng: { lng: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Lng" label: "Lng"
optional: true
}, },
location: { location: {
elem: "input", elem: "input",
@ -381,11 +385,13 @@ var googleCallback;
elem: "input", elem: "input",
type: "text", type: "text",
label: "Heading" label: "Heading"
optional: true
}, },
pitch: { pitch: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Pitch" label: "Pitch"
optional: true
} }
} }
}); });

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

@ -50,7 +50,8 @@
href: { href: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Link URL" label: "Link URL",
optional: true
}, },
target: "image-container", target: "image-container",
src: { src: {
@ -61,7 +62,8 @@
text: { text: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "TEXT" label: "TEXT",
optional: true
} }
} }
}, },

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

@ -70,32 +70,38 @@
memberid: { memberid: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Member ID" label: "Member ID",
optional: true
}, },
format: { format: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Format" label: "Format",
optional: true
}, },
companyid: { companyid: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Company ID" label: "Company ID",
optional: true
}, },
modules: { modules: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Modules" label: "Modules",
optional: true
}, },
productid: { productid: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "productid" label: "productid",
optional: true
}, },
related: { related: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "related" label: "related",
optional: true
}, },
start: { start: {
elem: "input", elem: "input",

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

@ -53,7 +53,8 @@
salutation : { salutation : {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Text" label: "Text",
optional: true
}, },
name: { name: {
elem: "input", elem: "input",
@ -63,7 +64,8 @@
role: { role: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Text" label: "Text",
optional: true
} }
} }
}, },

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

@ -202,7 +202,8 @@
dynamic: { dynamic: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Dynamic" label: "Dynamic",
optional: true
} }
} }
}); });

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

@ -305,22 +305,26 @@
type: { type: {
elem: "select", elem: "select",
options: [ "ROADMAP", "SATELLITE", "TERRAIN" ], options: [ "ROADMAP", "SATELLITE", "TERRAIN" ],
label: "Type" label: "Type",
optional: true
}, },
zoom: { zoom: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Zoom" label: "Zoom",
optional: true
}, },
lat: { lat: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Lat" label: "Lat",
optional: true
}, },
lng: { lng: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Lng" label: "Lng",
optional: true
}, },
location: { location: {
elem: "input", elem: "input",
@ -330,7 +334,8 @@
markers: { markers: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "List Markers" label: "List Markers",
optional: true
} }
} }
}); });

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

@ -155,7 +155,8 @@
noPause: { noPause: {
elem: "select", elem: "select",
options: [ "TRUE", "FALSE" ], options: [ "TRUE", "FALSE" ],
label: "No Loop" label: "No Loop",
optional: true
} }
} }
}); });

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

@ -123,12 +123,14 @@
image: { image: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "Image Src" label: "Image Src",
optional: true
}, },
href: { href: {
elem: "input", elem: "input",
type: "url", type: "url",
label: "URL" label: "URL",
optional: true
} }
} }
}); });

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

@ -131,12 +131,14 @@
innerHTML: { innerHTML: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "innerHTML" label: "innerHTML",
optional: true
}, },
direction: { direction: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "direction" label: "direction",
optional: true
} }
} }
}); });

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

@ -269,17 +269,20 @@
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: "Application_Key",
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: "avatarSize",
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 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
* is not found in their arrays. If multiple videos or photos are in the blogpost then it will use this same size for all of them unless * is not found in their arrays. If multiple videos or photos are in the blogpost then it will use this same size for all of them unless
@ -288,7 +291,8 @@
width: { width: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "Photo_Width" label: "Photo_Width",
optional: true
} }
} }
}, },

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

@ -60,12 +60,14 @@
height: { height: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "Height" label: "Height",
optional: true
}, },
width: { width: {
elem: "input", elem: "input",
type: "number", type: "number",
label: "Width" label: "Width",
optional: true
} }
} }
}, },

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

@ -38,7 +38,8 @@
id: { id: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Id" label: "Id",
optional: true
}, },
start: { start: {
elem: "input", elem: "input",

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

@ -54,7 +54,8 @@ var wikiCallback;
lang: { lang: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Language" label: "Language",
optional: true
}, },
src: { src: {
elem: "input", elem: "input",
@ -64,12 +65,14 @@ var wikiCallback;
title: { title: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Title" label: "Title",
optional: true
}, },
numberofwords: { numberofwords: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Num Of Words" label: "Num Of Words",
optional: true
}, },
target: "wikipedia-container" target: "wikipedia-container"
} }

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

@ -88,7 +88,8 @@
color: { color: {
elem: "input", elem: "input",
type: "text", type: "text",
label: "Color" label: "Color",
optional: true
} }
} }
}, },