pandora/pandora/0xdb.jsonc

661 lines
21 KiB
Text
Raw Normal View History

/*
Pan.do/ra Settings
You can edit this file.
*/
2010-09-05 00:31:29 +00:00
{
/*
Capabilities are per user level.
2011-10-13 17:35:33 +00:00
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
*/
2011-08-25 21:14:42 +00:00
"capabilities": {
2011-10-30 21:05:57 +00:00
// "canClickMap": {"friend": true, "staff": true, "admin": true},
2011-10-02 15:37:58 +00:00
"canDeleteItems": {"admin": true},
"canDownloadVideo": {"guest": 0, "member": 0, "friend": 4, "staff": 4, "admin": 4},
"canEditFeaturedLists": {"staff": true, "admin": true},
"canEditMetadata": {"staff": true, "admin": true},
2011-10-27 08:47:57 +00:00
"canEditSitePages": {"staff": true, "admin": true},
2011-10-25 13:59:27 +00:00
"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},
2011-10-25 13:59:27 +00:00
"canSeeDebugMenu": {"staff": true, "admin": true},
"canSeeFiles": {"staff": true, "admin": true},
"canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4},
2011-12-18 09:27:15 +00:00
"canSeeExtraItemViews": {"friend": true, "staff": true, "admin": true},
"canSendMail": {"staff": true, "admin": true}
2011-08-25 21:14:42 +00:00
},
2011-10-13 17:35:33 +00:00
/*
clipKeys are the properties that clips can by sorted by.
If sortOperator is not specified, it will be + for strings and - for numbers.
*/
2011-08-21 08:17:10 +00:00
"clipKeys": [
{"id": "text", "title": "Text", "type": "string"},
2011-10-13 17:35:33 +00:00
{"id": "position", "title": "Position", "type": "float", "sortOperator": "+"},
{"id": "duration", "title": "Duration", "type": "float"},
2011-10-13 17:35:33 +00:00
{"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"}
2011-08-21 08:17:10 +00:00
],
2011-11-06 08:28:10 +00:00
// fixme: either this, or filter: true in itemKeys, but not both
"filters": [
2011-09-17 23:24:53 +00:00
{"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": "genre", "title": "Genre", "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-01-03 20:39:23 +00:00
],
2011-10-13 17:35:33 +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
2011-11-06 08:28:10 +00:00
filter: if true, one can filter results by this key
2011-10-13 17:35:33 +00:00
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"
*/
"itemKeys": [
2011-05-30 13:46:57 +00:00
{
"id": "*",
2011-05-30 13:46:57 +00:00
"title": "All",
2011-09-19 12:29:55 +00:00
"type": "text",
2011-05-30 13:46:57 +00:00
"find": true
},
{
"id": "title",
"title": "Title",
"type": "string",
"autocomplete": true,
"autocompleteSortKey": "votes",
"columnRequired": true,
"columnWidth": 180,
"find": true,
"sort": "title"
},
{
"id": "director",
"title": "Director",
"type": ["string"],
"autocomplete": true,
"columnRequired": true,
"columnWidth": 180,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true,
"sort": "person"
},
{
"id": "country",
"title": "Country",
"type": ["string"],
"autocomplete": true,
"columnWidth": 120,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true
},
{
"id": "year",
"title": "Year",
2011-11-10 13:55:55 +00:00
"type": "year",
"autocomplete": true,
"columnWidth": 60,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true
},
{
"id": "language",
"title": "Language",
"type": ["string"],
"autocomplete": true,
"columnWidth": 120,
"find": true,
2011-11-06 08:28:10 +00:00
"filter": true
},
2011-01-23 04:58:40 +00:00
{
"id": "runtime",
"title": "Runtime",
"type": "time",
"columnWidth": 60,
2011-10-10 07:51:05 +00:00
"format": {"type": "duration", "args": [0, "short"]}
2011-01-23 04:58:40 +00:00
},
{
"id": "writer",
"title": "Writer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true,
"sort": "person"
},
{
2011-01-23 04:58:40 +00:00
"id": "producer",
"title": "Producer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true,
"sort": "person"
},
{
"id": "cinematographer",
"title": "Cinematographer",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true,
"sort": "person"
},
{
"id": "editor",
"title": "Editor",
"type": ["string"],
"autocomplete": true,
"columnWidth": 180,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true,
"sort": "person"
},
{
"id": "actor",
"title": "Actor",
"type": ["string"],
"autocomplete": true,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true,
"sort": "person"
},
2011-01-23 04:58:40 +00:00
{
"id": "numberofactors",
"title": "Number of Actors",
"type": "integer",
"columnWidth": 60,
"value": {"key": "actor", "type": "length"}
2011-01-23 04:58:40 +00:00
},
{
"id": "character",
"title": "Character",
"type": ["string"],
"autocomplete": true,
"find": true,
"sort": "string"
},
{
"id": "name",
"title": "Name",
"type": ["string"],
"autocomplete": true,
"find": true
},
2011-11-10 15:03:10 +00:00
{
"id": "series",
"title": "TV Series",
"type": "boolean"
},
{
"id": "genre",
"title": "Genre",
"type": ["string"],
"autocomplete": true,
"columnWidth": 120,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true
},
{
"id": "keyword",
"title": "Keyword",
"type": ["string"],
"autocomplete": true,
2011-11-06 08:28:10 +00:00
"filter": true,
"find": true
},
{
"id": "summary",
"title": "Summary",
"type": "text",
"find": true
},
{
"id": "trivia",
"title": "Trivia",
"type": ["text"]
},
{
"id": "releasedate",
"title": "Release Date",
"type": "date",
"columnWidth": 120,
"format": {"type": "date", "args": ["%a, %b %e, %Y"]}
},
{
"id": "budget",
"title": "Budget",
"type": "integer",
"columnWidth": 90,
2011-11-10 19:52:26 +00:00
"format": {"type": "unit", "args": ["$"]}
},
{
"id": "gross",
"title": "Gross",
"type": "integer",
"columnWidth": 90,
2011-11-10 19:52:26 +00:00
"format": {"type": "unit", "args": ["$"]}
},
{
"id": "profit",
"title": "Profit",
"type": "integer",
"columnWidth": 90,
2011-11-10 19:52:26 +00:00
"format": {"type": "unit", "args": ["$"]}
},
{
"id": "rating",
"title": "Rating",
"type": "float",
"columnWidth": 60,
2011-11-12 11:50:17 +00:00
"format": {"type": "unit", "args": ["%", 0]}
},
{
"id": "votes",
"title": "Votes",
2011-11-10 19:52:26 +00:00
"type": "float",
"columnWidth": 60,
2011-11-10 19:52:26 +00:00
"format": {"type": "unit", "args": ["%", 2]}
},
{
"id": "id",
"title": "ID",
"type": "string",
"columnWidth": 90
},
2011-01-23 04:58:40 +00:00
{
"id": "subtitles",
"title": "Subtitles",
"type": "layer",
"find": true
},
{
"id": "duration",
"title": "Duration",
"type": "float",
"columnWidth": 90,
2011-10-10 07:32:50 +00:00
"format": {"type": "duration", "args": []}
},
{
"id": "resolution",
"title": "Resolution",
"type": ["integer"],
2011-11-10 21:22:58 +00:00
"capability": "canSeeFiles",
"columnWidth": 90,
"format": {"type": "resolution", "args": ["px"]}
2011-01-23 04:58:40 +00:00
},
{
"id": "aspectratio",
"title": "Aspect Ratio",
"type": "float",
"columnWidth": 90,
"format": {"type": "unit", "args": [":1"]}
},
{
"id": "pixels",
"title": "Pixels",
"type": "integer",
2011-11-10 21:22:58 +00:00
"capability": "canSeeFiles",
"columnWidth": 90,
"format": {"type": "value", "args": ["px"]}
},
{
"id": "hue",
"title": "Hue",
"type": "float",
"columnWidth": 90,
"format": {"type": "color", "args": ["hue"]},
2011-10-25 13:59:27 +00:00
"sortOperator": "+"
},
{
"id": "saturation",
"title": "Saturation",
"type": "float",
"columnWidth": 90,
2011-09-04 04:15:12 +00:00
"format": {"type": "color", "args": ["saturation"]}
},
{
"id": "lightness",
"title": "Lightness",
"type": "float",
"columnWidth": 90,
2011-09-04 04:15:12 +00:00
"format": {"type": "color", "args": ["lightness"]}
},
{
"id": "volume",
"title": "Volume",
"type": "float",
"columnWidth": 60
},
{
"id": "numberofcuts",
"title": "Number of Cuts",
"type": "integer",
"columnWidth": 60,
"value": {"key": "cuts", "type": "length"}
},
{
"id": "cutsperminute",
"title": "Cuts per Minute",
"type": "float",
"columnWidth": 60,
"value": {"key": "cuts", "type": "lengthperminute"}
},
{
"id": "words",
"title": "Words",
"type": "integer",
"columnWidth": 60,
"value": {"layer": "subtitles", "type": "words"}
},
{
"id": "wordsperminute",
"title": "Words per Minute",
"type": "float",
"columnWidth": 60,
2011-10-29 07:55:42 +00:00
"format": {"type": "unit", "args": ["wpm"]},
"value": {"layer": "subtitles", "type": "wordsperminute"}
},
{
"id": "size",
"title": "Size",
"type": "integer",
2011-08-25 21:14:42 +00:00
"capability": "canSeeFiles",
"columnWidth": 60,
2011-08-25 21:14:42 +00:00
"format": {"type": "value", "args": ["B"]}
},
{
"id": "bitrate",
"title": "Bitrate",
"type": "integer",
2011-08-25 21:14:42 +00:00
"capability": "canSeeFiles",
"columnWidth": 60,
2011-11-10 21:22:58 +00:00
"format": {"type": "unit", "args": ["kbps", 0, 0.001]}
},
2011-08-25 21:14:42 +00:00
{
"id": "parts",
"title": "Parts",
"type": "integer",
"capability": "canSeeFiles",
"columnWidth": 60
},
{
"id": "numberoffiles",
"title": "Number of Files",
"type": "integer",
2011-08-25 21:14:42 +00:00
"capability": "canSeeFiles",
"columnWidth": 60,
2011-08-25 21:14:42 +00:00
"value": {"key": "files", "type": "length"}
},
{
"id": "filename",
"title": "Filename",
"type": ["string"],
2011-08-25 21:14:42 +00:00
"capability": "canSeeFiles",
"find": true
},
{
2011-11-10 19:52:26 +00:00
"id": "created",
"title": "Date Created",
"type": "date",
2011-11-10 19:52:26 +00:00
"columnWidth": 150,
2011-01-28 08:54:00 +00:00
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}
},
{
"id": "modified",
2011-11-10 19:52:26 +00:00
"title": "Last Modified",
"type": "date",
2011-11-10 19:52:26 +00:00
"columnWidth": 150,
2011-01-28 08:54:00 +00:00
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}
},
2011-01-23 04:58:40 +00:00
{
"id": "accessed",
2011-11-10 19:52:26 +00:00
"title": "Last Accessed",
"type": "date",
2011-11-10 19:52:26 +00:00
"columnWidth": 150,
2011-01-28 08:54:00 +00:00
"format": {"type": "date", "args": ["%Y-%m-%d %H:%M:%S"]}
2011-01-23 04:58:40 +00:00
},
{
2011-11-10 19:52:26 +00:00
"id": "timesaccessed",
"title": "Times Accessed",
"type": "integer",
2011-11-10 19:52:26 +00:00
"columnWidth": 60
2011-08-25 21:14:42 +00:00
},
2011-10-25 13:59:27 +00:00
{
"id": "rightslevel",
"title": "Rights Level",
2011-11-10 21:22:58 +00:00
"type": "enum",
2011-10-26 14:52:23 +00:00
"columnWidth": 90,
"format": {"type": "ColorLevel", "args": [
["Public", "Relaxed", "Regular", "Restricted", "Private"]
]},
2011-11-10 21:22:58 +00:00
"sortOperator": "+",
"values": ["Public", "Relaxed", "Regular", "Restricted", "Private", "Unknown"]
2011-10-25 13:59:27 +00:00
},
2011-08-25 21:14:42 +00:00
{
"id": "canplayvideo",
2011-08-25 21:14:42 +00:00
"title": "Can Play Video",
"type": "boolean",
"value": "capability"
},
{
"id": "canplayclips",
2011-08-25 21:14:42 +00:00
"title": "Can Play Clips",
"type": "boolean",
"value": "capability"
}
],
2011-10-13 17:35:33 +00:00
/*
itemName specifies how items are being referred to.
Anything excessively long may cause layout errors.
*/
2011-01-03 20:39:23 +00:00
"itemName": {
"singular": "Movie",
"plural": "Movies"
},
2010-09-05 00:31:29 +00:00
"itemViews": [
{"id": "info", "title": "Info"},
{"id": "clips", "title": "Clips"},
{"id": "video", "title": "Video"},
2010-09-05 00:31:29 +00:00
{"id": "timeline", "title": "Timeline"},
{"id": "map", "title": "Map"},
{"id": "calendar", "title": "Calendar"},
2011-09-28 17:32:03 +00:00
{"id": "data", "title": "Data"},
{"id": "files", "title": "Files"}
2010-09-05 00:31:29 +00:00
],
2011-10-30 09:49:12 +00:00
// fixme: should be renamed to annotationLayers
2011-01-03 20:39:23 +00:00
"layers": [
{
"id": "privatenotes",
"title": "Private Notes",
"type": "text",
"overlap": true,
"private": true
},
{
"id": "publicnotes",
"title": "Public Notes",
"overlap": true,
"type": "text"
},
{
"id": "subtitles",
"title": "Subtitles",
"type": "text",
"overlay": true,
"sort": [
{"id": "words", "title": "Words", "type": "words"},
{"id": "wordsperminute", "title": "Words per Minute", "type": "wordsperminute"}
]
}
2011-01-03 20:39:23 +00:00
],
2010-09-05 00:31:29 +00:00
"listViews": [
{"id": "list", "title": "as List"},
2011-09-17 07:07:59 +00:00
{"id": "grid", "title": "as Grid"},
//{"id": "info", "title": "with Info"},
2010-09-05 00:31:29 +00:00
{"id": "clips", "title": "with Clips"},
{"id": "timelines", "title": "with Timelines"},
//{"id": "maps", "title": "with Maps"},
//{"id": "calendars", "title": "with Calendars"},
2010-09-05 00:31:29 +00:00
{"id": "clip", "title": "as Clips"},
//{"id": "video", "title": "as Video"},
2010-09-05 00:31:29 +00:00
{"id": "map", "title": "on Map"},
{"id": "calendar", "title": "on Calendar"}
],
2011-06-06 18:38:16 +00:00
"media": {
"importMoviePosters": true,
"importPosterFrames": true
},
"personalLists": [
{"title": "Favorites"},
2011-11-11 15:52:40 +00:00
{"title": "1960s", "query": {"conditions": [{"key": "year", "value": ["1960", "1970"], "operator": "="}], "operator": "&"}}
//{"title": "Movies with Video", "query": {"conditions": [{"key": "canplayvideo", "value": "true", "operator": "="}], "operator": "&"}},
//{"title": "Movies with Clips", "query": {"conditions": [{"key": "canplayclips", "value": "true", "operator": "="}], "operator": "&"}}
],
2011-10-28 23:10:00 +00:00
"rightsLevel": {"member": 4, "staff": 3, "admin": 2},
2011-08-25 21:14:42 +00:00
"rightsLevels": [
2011-10-24 10:04:41 +00:00
{"name": "Public", "color": [128, 255, 128]},
{"name": "Relaxed", "color": [192, 255, 128]},
{"name": "Regular", "color": [255, 255, 128]},
{"name": "Restricted", "color": [255, 192, 128]},
{"name": "Private", "color": [255, 128, 128]}
2011-08-25 21:14:42 +00:00
],
"sendReferrer": false,
2010-09-14 13:49:04 +00:00
"site": {
2011-12-18 09:27:15 +00:00
// FIXME: "from" and "to" would be more intuitive as keys here
"email": {
// E-mail address in contact form (to)
"contact": "0xdb@0xdb.org",
2011-12-18 09:27:15 +00:00
"footer": "-- \n0xDB - http://0xdb.org",
"prefix": "0xDB Newsletter -",
// E-mail address uses by the system (from)
"system": "0xdb@0xdb.org"
},
"id": "oxdb",
2011-11-03 12:58:22 +00:00
"name": "0xDB",
"url": "0xdb.org",
2011-10-27 10:07:44 +00:00
"videoprefix": ""
2010-09-14 13:49:04 +00:00
},
2011-01-21 05:13:41 +00:00
"sitePages": [
{"id": "about", "title": "About"},
{"id": "news", "title": "News"},
// {"id": "tour", "title": "Take a Tour"},
2011-01-21 05:13:41 +00:00
{"id": "faq", "title": "Frequently Asked Questions"},
{"id": "terms", "title": "Terms of Service"},
{"id": "rights", "title": "Rights Management"},
{"id": "contact", "title": "Contact"}
2010-09-05 00:31:29 +00:00
],
"totals": [
{"id": "items"},
{"id": "runtime"},
{"id": "files", "admin": true},
{"id": "duration", "admin": true},
{"id": "size", "admin": true},
{"id": "pixels"}
],
"user": {
2011-01-21 19:10:42 +00:00
"level": "guest",
2010-09-05 00:31:29 +00:00
"ui": {
2011-01-03 20:39:23 +00:00
"annotationsSize": 256,
"clipsColumns": 2,
"columns": {
"Colors": {
"columns": ["title", "director", "country", "year", "hue", "saturation", "brightness"],
"columnWidth": {}
}
},
2011-11-06 08:28:10 +00:00
"filters": [
2011-09-17 23:24:53 +00:00
{"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": "genre", "sort": [{"key": "items", "operator": "-"}]}
],
2011-11-06 08:28:10 +00:00
"filtersSize": 176,
"find": {"conditions": [], "operator": "&"},
2011-08-06 01:04:09 +00:00
"icons": "posters",
2011-08-06 01:34:07 +00:00
"infoIconSize": 256,
2011-01-03 20:39:23 +00:00
"item": "",
2011-10-30 09:49:12 +00:00
"itemFind": {"conditions": [], "operator": "&"},
2011-10-09 13:31:46 +00:00
"itemSort": [{"key": "position", "operator": "+"}],
"itemView": "info",
"listColumns": ["title", "director", "country", "year", "language", "runtime", "genre"],
"listColumnWidth": {},
"listSelection": [],
2011-10-08 17:22:56 +00:00
"listSort": [{"key": "director", "operator": "+"}],
"listView": "grid",
"lists": {},
2011-10-01 13:51:18 +00:00
"mapFind": "",
"mapSelection": "",
2011-11-09 22:32:54 +00:00
"page": "",
2011-01-03 20:39:23 +00:00
"section": "items",
"showAnnotations": true,
"showBrowser": true,
"showCalendarControls": true, // fixme: should be false
2011-11-06 08:28:10 +00:00
"showFilters": true,
2011-09-09 16:37:07 +00:00
"showFlags": true,
"showHome": true,
2011-10-02 15:37:58 +00:00
"showIconBrowser": false,
2010-09-05 00:31:29 +00:00
"showInfo": true,
2011-09-30 03:35:40 +00:00
"showMapControls": false,
"showMapLabels": false,
2011-01-21 05:13:41 +00:00
"showFolder": {
"items": {
"personal": true,
"favorite": true,
2011-09-01 04:46:44 +00:00
"featured": true,
"volumes": true
2011-01-21 05:13:41 +00:00
}
},
2011-01-03 20:39:23 +00:00
"showSidebar": true,
"showSitePosters": false,
"showTimeline": true,
2011-01-05 13:06:09 +00:00
"sidebarSize": 256,
2011-01-17 21:12:52 +00:00
"theme": "modern",
2011-09-17 07:07:59 +00:00
"videoPoints": {},
2011-08-17 19:34:55 +00:00
"videoScale": "fit",
"videoMuted": false,
"videoSize": "small",
"videoView": "video",
2011-08-17 19:34:55 +00:00
"videoVolume": 1
2010-09-05 00:31:29 +00:00
},
2011-09-01 04:46:44 +00:00
"username": "",
"volumes": []
},
2011-10-24 10:04:41 +00:00
// fixme: this should include colors
2011-10-02 15:37:58 +00:00
"userLevels": ["guest", "member", "friend", "staff", "admin"],
2011-08-19 14:43:05 +00:00
"video": {
2011-08-20 10:06:18 +00:00
"download": false,
2011-08-19 21:00:22 +00:00
"formats": ["webm", "mp4"],
2011-08-19 14:43:05 +00:00
"resolutions": [96]
}
2010-09-10 10:09:21 +00:00
}