X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=public%2Fmanifest.json;h=4e2505012e3cdc0bb293f685b5d897134e81926c;hp=da1b7f76ae2f4a200e7b0f7a8f372efc5d3746a5;hb=HEAD;hpb=26a6de7f9a264f04424a7fcd1acacad612322210 diff --git a/public/manifest.json b/public/manifest.json index da1b7f76..4e250501 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -19,6 +19,7 @@ "original_picture": "original_pictures", "picture": "pictures", "resource_picture": "resource_pictures", + "resource_picture_picture": "resource_picture_pictures", "original_picture_license_group": "original_picture_license_groups", "original_picture_license": "original_picture_licenses", "speech_balloon_template": "speech_balloon_templates", @@ -187,6 +188,7 @@ } } }, + "resource_picture_picture": {}, "original_picture_license_group": {}, "original_picture_license": { "args": { @@ -288,7 +290,7 @@ "play": { "type": "list", "args": { - "alias": "scroll_panels.by_scroll", + "return_item_name": "scroll_panel", "order": "t", "direction": 1 } @@ -382,7 +384,8 @@ "play": { "type": "list", "args": { - "alias": "comic_stories.by_comic", + "return_item_name": "comic_story", + "max_page_size": -1, "order": "t", "direction": 1 } @@ -482,7 +485,8 @@ "play": { "type": "list", "args": { - "alias": "story_sheets.by_story", + "return_item_name": "story_sheet", + "max_page_size": -1, "order": "t", "direction": 1 } @@ -582,7 +586,7 @@ "play": { "type": "list", "args": { - "alias": "sheet_panels.by_sheet", + "return_item_name": "sheet_panel", "order": "t", "direction": 1 } @@ -933,7 +937,13 @@ "type": "show" }, "history": { - "type": "show" + "type": "list", + "args": { + "return_item_name": "picture", + "max_page_size": -1, + "order": "revision", + "direction": 1 + } }, "new": { "type": "new" @@ -1005,6 +1015,60 @@ }, "show": { "type": "show" + }, + "destroy": { + "type": "destroy" + } + } + }, + "original_picture_license_groups": { + "actions": { + "new": { + "type": "new" + }, + "create": { + "type": "create" + } + } + }, + "original_picture_licenses": { + "actions": { + "new": { + "type": "new" + }, + "create": { + "type": "create" + } + } + }, + "resource_picture_pictures": { + "actions": { + "index": { + "type": "list", + "args": { + "param_id": "none" + } + }, + "by_original_picture": { + "type": "list", + "args": { + "param_id": "suffix" + } + }, + "by_resource_picture": { + "type": "list", + "args": { + "param_id": "suffix" + } + }, + "by_picture": { + "type": "list", + "args": { + "param_id": "suffix" + } + }, + "show": { + "type": "show" } } }, @@ -1014,7 +1078,9 @@ "type": "list", "args": { "param_id": "none", - "max_page_size": -1 + "max_page_size": -1, + "order": "t", + "direction": 1 } }, "by_panel": { @@ -1055,7 +1121,9 @@ "type": "list", "args": { "param_id": "none", - "max_page_size": -1 + "max_page_size": -1, + "order": "t", + "direction": 1 } }, "by_system_picture": { @@ -1090,7 +1158,9 @@ "type": "list", "args": { "param_id": "none", - "max_page_size": -1 + "max_page_size": -1, + "order": "t", + "direction": 1 } }, "by_resource_picture": { @@ -1125,13 +1195,17 @@ "type": "list", "args": { "param_id": "none", - "max_page_size": -1 + "max_page_size": -1, + "order": "name", + "direction": 1 } }, "by_license_group": { "type": "list", "args": { - "param_id": "suffix" + "param_id": "suffix", + "order": "name", + "direction": 1 } }, "by_system_picture": { @@ -1234,120 +1308,103 @@ "scrolls": { "type": "list", "args": { - "item_name": "scroll", - "param_id": "none" + "item_name": "scroll" } }, "scroll_panels": { "type": "list", "args": { - "item_name": "scroll_panel", - "param_id": "none" + "item_name": "scroll_panel" } }, "comics": { "type": "list", "args": { - "item_name": "comic", - "param_id": "none" + "item_name": "comic" } }, "comic_stories": { "type": "list", "args": { - "item_name": "comic_story", - "param_id": "none" + "item_name": "comic_story" } }, "stories": { "type": "list", "args": { - "item_name": "story", - "param_id": "none" + "item_name": "story" } }, "story_sheets": { "type": "list", "args": { - "item_name": "story_sheet", - "param_id": "none" + "item_name": "story_sheet" } }, "sheets": { "type": "list", "args": { - "item_name": "sheet", - "param_id": "none" + "item_name": "sheet" } }, "sheet_panels": { "type": "list", "args": { - "item_name": "sheet_panel", - "param_id": "none" + "item_name": "sheet_panel" } }, "panels": { "type": "list", "args": { - "item_name": "panel", - "param_id": "none" + "item_name": "panel" } }, "panel_pictures": { "type": "list", "args": { - "item_name": "panel_picture", - "param_id": "none" + "item_name": "panel_picture" } }, "speech_balloons": { "type": "list", "args": { - "item_name": "speech_balloon", - "param_id": "none" + "item_name": "speech_balloon" } }, "speeches": { "type": "list", "args": { - "item_name": "speech", - "param_id": "none" + "item_name": "speech" } }, "balloons": { "type": "list", "args": { - "item_name": "balloon", - "param_id": "none" + "item_name": "balloon" } }, "ground_pictures": { "type": "list", "args": { - "item_name": "ground_picture", - "param_id": "none" + "item_name": "ground_picture" } }, "ground_colors": { "type": "list", "args": { - "item_name": "ground_color", - "param_id": "none" + "item_name": "ground_color" } }, "original_pictures": { "type": "list", "args": { - "item_name": "original_picture", - "param_id": "none" + "item_name": "original_picture" } }, "resource_pictures": { "type": "list", "args": { - "item_name": "resource_picture", - "param_id": "none" + "item_name": "resource_picture" } } } @@ -1846,7 +1903,8 @@ "panel_picture": { "associations": { "belongs_to": { - "panel": {} + "panel": {}, + "picture": {} }, "has_many": {} }, @@ -2195,7 +2253,8 @@ "ground_picture": { "associations": { "belongs_to": { - "panel": {} + "panel": {}, + "picture": {} }, "has_many": {} }, @@ -2348,7 +2407,8 @@ "artist": {} }, "has_many": { - "pictures": {} + "pictures": {}, + "resource_picture_pictures": {} }, "has_one": { "resource_picture": {} @@ -2411,10 +2471,16 @@ "belongs_to": { "license": {}, "artist": {}, + "original_picture": {}, "system_picture": {} }, - "has_many": {}, - "has_one": {} + "has_many": { + "panel_pictures": {}, + "ground_pictures": {} + }, + "has_one": { + "resource_picture_picture": {} + } }, "attributes": { "original_picture_id": { @@ -2509,12 +2575,15 @@ "associations": { "belongs_to": { "original_picture": {}, + "picture": {}, "license_group": {}, "license": {}, "artist": {}, "system_picture": {} }, - "has_many": {}, + "has_many": { + "resource_picture_pictures": {} + }, "has_one": {} }, "attributes": { @@ -2613,6 +2682,40 @@ } } }, + "resource_picture_picture": { + "associations": { + "belongs_to": { + "original_picture": {}, + "resource_picture": {}, + "picture": {} + }, + "has_many": {}, + "has_one": {} + }, + "attributes": { + "original_picture_id": { + "type": "number", + "rules": { + "required": true, + "number": true + } + }, + "resource_picture_id": { + "type": "number", + "rules": { + "required": true, + "number": true + } + }, + "picture_id": { + "type": "number", + "rules": { + "required": true, + "number": true + } + } + } + }, "original_picture_license_group": { "associations": { "belongs_to": {