pandora/pandora/padma.jsonc

539 lines
17 KiB
Plaintext
Raw Normal View History

/*
Pan.do/ra Settings
You can edit this file.
*/
2011-02-22 14:47:59 +00:00
{
/*
Capabilities are per user level.
They can either be general:
{level: true} means a user of that level has the capability)
or related to items:
{level: x} means a user of that level has the capability
for items of a rights level up to and including x
*/
"capabilities": {
// "canClickMap": {"friend": true, "staff": true, "admin": true},
"canDeleteItems": {"admin": true},
"canDownloadVideo": {"guest": 0, "member": 0, "friend": 4, "staff": 4, "admin": 4},
"canEditFeaturedLists": {"staff": true, "admin": true},
"canEditMetadata": {"staff": true, "admin": true},
"canEditSitePages": {"staff": true, "admin": true},
"canEditUsers": {"admin": true},
"canPlayClips": {"guest": 2, "member": 2, "friend": 4, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 1, "member": 1, "friend": 4, "staff": 4, "admin": 4},
"canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeFiles": {"staff": true, "admin": true},
"canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4},
"canSeeExtraItemViews": {"friend": true, "staff": true, "admin": true}
},
/*
clipKeys are the properties that clips can by sorted by.
If sortOperator is not specified, it will be + for strings and - for numbers.
*/
"clipKeys": [
{"id": "text", "title": "Text", "type": "string"},
{"id": "position", "title": "Position", "type": "float", "sortOperator": "+"},
{"id": "duration", "title": "Duration", "type": "float"},
{"id": "hue", "title": "Hue", "type": "float", "sortOperator": "+"},
{"id": "saturation", "title": "Saturation", "type": "float"},
{"id": "lightness", "title": "Lightness", "type": "float"},
{"id": "volume", "title": "Volume", "type": "float"}
],
// fixme: either this, or filter: true in itemKeys, but not both
"filters": [
{"id": "director", "title": "Director", "type": "string"},
{"id": "country", "title": "Country", "type": "string"},
{"id": "year", "title": "Year", "type": "integer"},
{"id": "language", "title": "Language", "type": "string"},
{"id": "source", "title": "Source", "type": "string"},
{"id": "writer", "title": "Writer", "type": "string"},
{"id": "producer", "title": "Producer", "type": "string"},
{"id": "cinematographer", "title": "Cinematographer", "type": "string"},
{"id": "editor", "title": "Editor", "type": "string"},
{"id": "actor", "title": "Actor", "type": "string"},
{"id": "keyword", "title": "Keyword", "type": "string"}
2011-02-22 14:47:59 +00:00
],
/*
An itemKey must have the following properties:
id: The id of the key (as known by the server)
title: The title of the key (as displayed by the client)
type: text, string, float, integer, or array of any of these
and can have any of the following properties:
autocomplete: If true, find element will autocomplete
autocompleteSortKey: The key that suggestions will be sorted by
capability: A capability required to see this key
columnRequired: If true, the column can't be removed
columnWidth: Default column width in px
find: If true, will appear as a find option
filter: if true, one can filter results by this key
format: {type: "...", args: [...]}, for special formatting
(Ox.formatType(args) will be called)
sort: special sort rule (title, person)
sortOperator: sort operator (+, -), in case it differs from the
default for the key's type (+ for strings, - for numbers)
value: {key: "...", type: "..."}, for keys that are derived
from other keys (like number of actors), or "capability"
*/
2011-02-22 14:47:59 +00:00
"itemKeys": [
{
"id": "*",
"title": "All",
"type": "text",
"find": true
},
2011-02-22 16:42:26 +00:00
{
2011-02-22 14:47:59 +00:00
"id": "title",
"title": "Title",
"type": "string",
2011-02-22 16:42:26 +00:00
"autocomplete": true,
2011-11-12 08:57:51 +00:00
"autocompleteSortKey": "timesaccessed",
2011-02-22 16:42:26 +00:00
"columnRequired": true,
"columnWidth": 180,
"find": true,
"sort": "title"
2011-02-22 14:47:59 +00:00
},
{
"id": "director",
"title": "Director",
"type": ["string"],
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"columnRequired": true,
"columnWidth": 180,
"filter": true,
2011-02-22 16:42:26 +00:00
"find": true,
"sort": "person"
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "collection",
"title": "Collection",
"type": "string",
"autocomplete": true,
"columnWidth": 120,
"filter": true,
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "year",
"title": "Year",
"type": "year",
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"columnWidth": 60,
"filter": true,
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "language",
"title": "Language",
"type": ["string"],
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"columnWidth": 120,
"filter": true,
"find": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "runtime",
"title": "Runtime",
"type": "time",
2011-02-22 16:42:26 +00:00
"columnWidth": 60,
"format": {"type": "duration", "args": [0, "medium"]}
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "source",
"title": "Source",
"type": "string",
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "genre",
2011-02-22 16:42:26 +00:00
"title": "Genre",
2011-02-22 14:47:59 +00:00
"type": ["string"],
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"columnWidth": 120,
"filter": true,
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "keyword",
2011-02-22 16:42:26 +00:00
"title": "Keyword",
2011-02-22 14:47:59 +00:00
"type": ["string"],
2011-02-22 16:42:26 +00:00
"autocomplete": true,
"filter": true,
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "numberofkeywords",
2011-02-22 16:42:26 +00:00
"title": "Number of Keywords",
2011-02-22 14:47:59 +00:00
"type": "integer",
2011-02-22 16:42:26 +00:00
"columnWidth": 60,
2011-02-22 14:47:59 +00:00
"value": {"key": "keyword", "type": "length"}
},
{
2011-02-22 16:42:26 +00:00
"id": "description",
"title": "Description",
2011-02-22 14:47:59 +00:00
"type": "text",
2011-02-22 16:42:26 +00:00
"find": true
2011-02-22 14:47:59 +00:00
},
{
"id": "wordsinsummary",
"title": "Words in Summary",
"type": "integer",
2011-02-22 16:42:26 +00:00
"columnWidth": 60,
"value": {"key": "description", "type": "words"}
2011-02-22 14:47:59 +00:00
},
{
2011-11-10 20:19:15 +00:00
"id": "created",
"title": "Date Created",
2011-02-22 14:47:59 +00:00
"type": "date",
2011-02-22 16:42:26 +00:00
"columnWidth": 120,
2011-02-22 14:47:59 +00:00
"format": {"type": "date", "args": ["%a, %b %e, %Y"]}
},
{
2011-02-22 16:42:26 +00:00
"id": "id",
"title": "ID",
"type": "string",
"columnWidth": 90
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "location",
"title": "Locations",
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "keyword",
"title": "Keywords",
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "description",
"title": "Descriptions",
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "transcript",
"title": "Transcripts",
"type": "layer",
"find": true
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "duration",
"title": "Duration",
"type": "float",
"columnWidth": 90,
"format": {"type": "duration", "args": [0, "short"]}
},
{
"id": "resolution",
"title": "Resolution",
"type": ["integer"],
"columnWidth": 90
2011-02-22 14:47:59 +00:00
},
{
"id": "aspectratio",
"title": "Aspect Ratio",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 90,
"format": {"type": "unit", "args": [":1"]}
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "pixels",
"title": "Pixels",
"type": "integer",
"columnWidth": 90,
"format": {"type": "value", "args": ["px"]}
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "hue",
"title": "Hue",
"type": "hue",
"columnWidth": 90,
"format": {"type": "color", "args": ["hue"]}
2011-02-22 14:47:59 +00:00
},
{
"id": "saturation",
"title": "Saturation",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 90,
"format": {"type": "color", "args": ["greyscale"]}
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "lightness",
"title": "Lightness",
"type": "float",
"columnWidth": 90,
"format": {"type": "color", "args": ["greyscale"]}
2011-02-22 14:47:59 +00:00
},
{
"id": "volume",
"title": "Volume",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 60
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "numberofcuts",
"title": "Number of Cuts",
"type": "integer",
"columnWidth": 60,
"value": {"key": "cuts", "type": "length"}
2011-02-22 14:47:59 +00:00
},
{
"id": "cutsperminute",
"title": "Cuts per Minute",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 60,
"value": {"key": "cuts", "type": "lengthperminute"}
2011-02-22 14:47:59 +00:00
},
{
"id": "words",
"title": "Words",
2011-02-22 16:42:26 +00:00
"type": "integer",
"columnWidth": 60,
"value": {"layer": "subtitles", "type": "words"}
2011-02-22 14:47:59 +00:00
},
{
"id": "wordsperminute",
"title": "Words per Minute",
2011-02-22 16:42:26 +00:00
"type": "float",
"columnWidth": 60,
"value": {"layer": "subtitles", "type": "wordsperminute"}
2011-02-22 14:47:59 +00:00
},
{
"id": "size",
"title": "Size",
2011-02-22 16:42:26 +00:00
"type": "integer",
"columnWidth": 60,
"format": {"type": "value", "args": ["B"]},
"rightsLevel": 1
2011-02-22 14:47:59 +00:00
},
{
"id": "bitrate",
"title": "Bitrate",
2011-02-22 16:42:26 +00:00
"type": "integer",
"columnWidth": 60,
"format": {"type": "unit", "args": ["kbps"]}
2011-02-22 14:47:59 +00:00
},
{
2011-02-22 16:42:26 +00:00
"id": "numberoffiles",
"title": "Number of Files",
"type": "integer",
"columnWidth": 60,
"value": {"key": "files", "type": "length"},
"rightsLevel": 1
2011-02-22 14:47:59 +00:00
},
{
"id": "filename",
"title": "Filename",
2011-02-22 16:42:26 +00:00
"type": ["string"],
"find": true,
"rightsLevel": 1
2011-02-22 14:47:59 +00:00
},
{
"id": "modified",
"title": "Date Modified",
2011-02-22 16:42:26 +00:00
"type": "date",
"columnWidth": 90
},
{
"id": "accessed",
"title": "Date Accessed",
"type": "date",
"columnWidth": 90
},
{
2011-11-10 20:19:15 +00:00
"id": "timesaccessed",
"title": "Times Accessed",
2011-02-22 16:42:26 +00:00
"type": "integer",
2011-11-10 20:19:15 +00:00
"columnWidth": 60
},
{
"id": "rightslevel",
"title": "Rights Level",
"type": "enum",
"columnWidth": 90,
"format": {"type": "ColorLevel", "args": [
["Public", "Relaxed", "Regular", "Restricted", "Private"]
]},
"sortOperator": "+",
"values": ["Public", "Relaxed", "Regular", "Restricted", "Private", "Unknown"]
}
2011-02-22 14:47:59 +00:00
],
"itemName": {
2011-02-22 16:42:26 +00:00
"singular": "Video",
"plural": "Videos"
2011-02-22 14:47:59 +00:00
},
"itemViews": [
{"id": "info", "title": "Info"},
{"id": "clips", "title": "Clips"},
{"id": "video", "title": "Video"},
2011-02-22 14:47:59 +00:00
{"id": "timeline", "title": "Timeline"},
{"id": "map", "title": "Map"},
{"id": "calendar", "title": "Calendar"},
{"id": "data", "title": "Data"},
{"id": "files", "title": "Files"}
2011-02-22 14:47:59 +00:00
],
"layers": [
2011-02-22 16:42:26 +00:00
{
"id": "location",
"title": "Locations",
"type": "location",
"overlap": true,
"private": true
},
{
"id": "keyword",
"title": "Keywords",
"overlap": true,
"type": "text"
},
{
"id": "description",
"title": "Descriptions",
"type": "text",
"overlay": true
},
{
"id": "transcript",
"title": "Transcripts",
"type": "text",
"overlay": true
}
2011-02-22 14:47:59 +00:00
],
"listViews": [
{"id": "list", "title": "as List"},
{"id": "icons", "title": "as Icons"},
//{"id": "info", "title": "with Info"},
2011-02-22 14:47:59 +00:00
{"id": "clips", "title": "with Clips"},
{"id": "timelines", "title": "with Timelines"},
{"id": "maps", "title": "with Maps"},
{"id": "calendars", "title": "with Calendars"},
{"id": "clip", "title": "as Clips"},
//{"id": "video", "title": "as Video"},
2011-02-22 14:47:59 +00:00
{"id": "map", "title": "on Map"},
{"id": "calendar", "title": "on Calendar"}
],
2011-08-11 14:15:56 +00:00
"media": {
"importMoviePosters": false,
"importPosterFrames": false
},
"personalLists": [
{"title": "Favorites"}
],
"rightsLevel": {"member": 2, "staff": 2, "admin": 2},
"rightsLevels": [
{"name": "Public", "color": [128, 255, 128]},
{"name": "Restricted", "color": [255, 192, 128]},
{"name": "Private", "color": [255, 128, 128]}
],
"sendReferrer": true,
2011-02-22 14:47:59 +00:00
"site": {
"email": {
// E-mail address in contact form (to)
"contact": "pad.ma@pad.ma",
// E-mail address uses by the system (from)
"system": "system@pad.ma"
},
"id": "padma",
"name": "Pad.ma",
"url": "pad.ma",
"videoprefix": ""
2011-02-22 14:47:59 +00:00
},
"sitePages": [
{"id": "about", "title": "About"},
{"id": "news", "title": "News"},
//{"id": "tour", "title": "Take a Tour"},
2011-02-22 14:47:59 +00:00
{"id": "faq", "title": "Frequently Asked Questions"},
2011-02-22 16:42:26 +00:00
{"id": "terms", "title": "Terms of Service"},
{"id": "license", "title": "License"},
{"id": "contact", "title": "Contact"}
2011-02-22 14:47:59 +00:00
],
"totals": [
{"id": "items"},
{"id": "runtime"},
{"id": "files", "admin": true},
{"id": "duration", "admin": true},
{"id": "size", "admin": true},
{"id": "pixels"}
],
"user": {
"level": "guest",
"ui": {
"annotationsSize": 256,
"clipsColumns": 2,
"columns": {
"Colors": {
"columns": ["title", "director", "country", "year", "hue", "saturation", "brightness"],
"columnWidth": {}
2011-02-22 14:47:59 +00:00
}
},
"filters": [
{"id": "director", "sort": [{"key": "items", "operator": "-"}]},
{"id": "country", "sort": [{"key": "items", "operator": "-"}]},
{"id": "year", "sort": [{"key": "name", "operator": "-"}]},
{"id": "language", "sort": [{"key": "items", "operator": "-"}]},
{"id": "source", "sort": [{"key": "items", "operator": "-"}]}
],
"filtersSize": 176,
"find": {"conditions": [], "operator": "&"},
"icons": "posters",
"infoIconSize": 256,
"item": "",
"itemFind": {"conditions": [], "operator": "&"},
"itemSort": [{"key": "position", "operator": "+"}],
"itemView": "info",
"listColumns": ["title", "director", "country", "year", "language", "duration", "source"],
"listColumnWidth": {},
"listSelection": [],
"listSort": [{"key": "director", "operator": "+"}],
"listView": "grid",
"lists": {},
"mapFind": "",
"mapSelection": "",
"page": "",
2011-02-22 14:47:59 +00:00
"section": "items",
"showAnnotations": true,
"showBrowser": true,
"showCalendarControls": true, // fixme: should be false
"showFilters": true,
"showFlags": true,
"showHome": true,
"showIconBrowser": false,
2011-02-22 14:47:59 +00:00
"showInfo": true,
"showMapControls": false,
"showMapLabels": false,
2011-02-22 14:47:59 +00:00
"showFolder": {
"items": {
"personal": true,
"favorite": true,
"featured": true,
"volumes": true
2011-02-22 14:47:59 +00:00
}
},
"showSidebar": true,
"showSitePosters": false,
"showTimeline": true,
2011-02-22 14:47:59 +00:00
"sidebarSize": 256,
2011-08-19 15:37:37 +00:00
"theme": "classic",
"videoPoints": {},
"videoScale": "fit",
"videoMuted": false,
"videoSize": "small",
"videoView": "video",
"videoVolume": 1
},
"username": "",
"volumes": []
2011-02-22 16:42:26 +00:00
},
2011-08-19 14:43:05 +00:00
"userLevels": ["guest", "member", "staff", "admin"],
"video": {
2011-08-20 10:06:18 +00:00
"download": true,
2011-08-19 21:03:35 +00:00
"formats": ["webm", "mp4"],
2011-08-19 14:43:05 +00:00
"resolutions": [480, 240, 96]
}
2011-02-22 14:47:59 +00:00
}