X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=public%2Fmanifest.json;h=d3943fd13fd096583be7e1497028f95ba0f72bde;hb=51c4338d3acb57f0a4a626c5cb4231c679e57017;hp=2d9443984bdf8157af0ed2aa42971d16bbc69208;hpb=a3a524d284c8d137ac0e3d60bd11c5c25157188f;p=pettanr%2Fpettanr.git diff --git a/public/manifest.json b/public/manifest.json index 2d944398..d3943fd1 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -8,13 +8,21 @@ "scroll_panel": { "type": "leaf", "args": { - "parent_model_name": "scroll" + "parent_model_name": "scroll", + "destination_model_name": "panel" } }, "comic": { "type": "binder", "args": {} }, + "comic_story": { + "type": "leaf", + "args": { + "parent_model_name": "comic", + "destination_model_name": "story" + } + }, "story": { "type": "binder", "args": {} @@ -22,7 +30,8 @@ "story_sheet": { "type": "leaf", "args": { - "parent_model_name": "story" + "parent_model_name": "story", + "destination_model_name": "sheet" } }, "sheet": { @@ -51,13 +60,8 @@ "parent_model_name": "panel", "boost": { "speech_balloon_template": { - "resource_name": "speech_balloon_template", - "engine_resource_name": "speech_balloon_templates", - "engine_resource_extend_column_name": "speech_balloon_template_classname", - "extend_column_name": "speech_balloon_template_classname", - "settings_column_name": "speech_balloon_template_settings", "extend_model_class_name": "SpeechBalloon", - "extend_item_name": "speech_balloon" + "item_name_for_extend_model": "speech_balloon" } } } @@ -68,13 +72,8 @@ "parent_model_name": "speech_balloon", "boost": { "speech_balloon_template": { - "resource_name": "speech_balloon_template", - "engine_resource_name": "speech_balloon_templates", - "engine_resource_extend_column_name": "speech_balloon_template_classname", - "extend_column_name": "speech_balloon_template_classname", - "settings_column_name": "speech_balloon_template_settings", "extend_model_class_name": "Balloon", - "extend_item_name": "balloon" + "item_name_for_extend_model": "balloon" } } } @@ -84,15 +83,14 @@ "args": { "parent_model_name": "speech_balloon", "boost": { - "writing_format": {}, + "writing_format": { + "level": "read", + "item_name_for_extend_model": "renderer", + "extend_module_name": "RendererModule" + }, "speech_balloon_template": { - "resource_name": "speech_balloon_template", - "engine_resource_name": "speech_balloon_templates", - "engine_resource_extend_column_name": "speech_balloon_template_classname", - "extend_column_name": "speech_balloon_template_classname", - "settings_column_name": "speech_balloon_template_settings", "extend_model_class_name": "Speech", - "extend_item_name": "speech" + "item_name_for_extend_model": "speech" } } } @@ -109,100 +107,91 @@ "parent_model_name": "panel" } }, - "original_picture": {}, + "original_picture": { + "type": "content" + }, "picture": { + "type": "content", "args": { "boost": { "license_group": { - "resource_name": "license_group", - "engine_resource_name": "license_groups", - "engine_resource_extend_column_name": "license_group_classname", - "extend_column_name": "license_group_classname", - "settings_column_name": "license_group_settings", "extend_model_class_name": "License", - "extend_item_name": "license" + "item_name_for_extend_model": "license" }, "license": { "level": "read", - "resource_name": "license_group", - "engine_resource_name": "license_groups", - "engine_resource_extend_column_name": "license_group_classname", - "extend_column_name": "license_group_classname", - "settings_column_name": "license_settings", + "template_name": "license_group", "extend_model_class_name": "Attribute", - "extend_item_name": "attribute" + "item_name_for_extend_model": "attribute" }, "credit_picture": { "level": "read", - "resource_name": "license_group", - "engine_resource_name": "license_groups", - "engine_resource_extend_column_name": "license_group_classname", - "extend_column_name": "license_group_classname", - "settings_column_name": "credit_picture_settings", + "template_name": "license_group", "extend_model_class_name": "CreditPicture", - "extend_item_name": "credit_picture" + "item_name_for_extend_model": "credit_picture" } } } }, "resource_picture": { + "type": "content", "args": { "boost": { "license_group": { - "resource_name": "license_group", - "engine_resource_name": "license_groups", - "engine_resource_extend_column_name": "license_group_classname", - "extend_column_name": "license_group_classname", - "settings_column_name": "license_group_settings", "extend_model_class_name": "License", - "extend_item_name": "license" + "item_name_for_extend_model": "license" }, "license": { "level": "read", - "resource_name": "license_group", - "engine_resource_name": "license_groups", - "engine_resource_extend_column_name": "license_group_classname", - "extend_column_name": "license_group_classname", - "settings_column_name": "license_settings", + "template_name": "license_group", "extend_model_class_name": "Attribute", - "extend_item_name": "attribute" + "item_name_for_extend_model": "attribute" }, "credit_picture": { "level": "read", - "resource_name": "license_group", - "engine_resource_name": "license_groups", - "engine_resource_extend_column_name": "license_group_classname", - "extend_column_name": "license_group_classname", - "settings_column_name": "credit_picture_settings", + "template_name": "license_group", "extend_model_class_name": "CreditPicture", - "extend_item_name": "credit_picture" + "item_name_for_extend_model": "credit_picture" } } } }, - "speech_balloon_template": {}, - "writing_format": {}, - "license_group": {}, + "speech_balloon_template": { + "type": "template" + }, + "writing_format": { + "type": "template" + }, + "license_group": { + "type": "template" + }, "license": { - "type": "leaf", + "type": "system_resource", "args": { "parent_model_name": "license_group", "boost": { - "license_group": {}, + "license_group": { + "extend_model_class_name": "License", + "item_name_for_extend_model": "license" + }, "credit_picture": { "level": "read", - "resource_name": "license_group", - "settings_column_name": "credit_picture_settings", + "template_name": "license_group", "extend_model_class_name": "CreditPicture", - "extend_item_name": "credit_picture", - "extend_column_name": "license_group_classname" + "item_name_for_extend_model": "credit_picture" } } } }, - "author": {}, - "artist": {}, - "system_picture": {} + "author": { + "type": "owner" + }, + "artist": { + "type": "owner" + }, + "system_picture": { + "type": "system_resource" + } }, "controllers": { "folders": { @@ -274,6 +263,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -317,6 +315,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -328,9 +335,19 @@ "list_name": "public" } }, + "by_story": { + "type": "list" + }, "by_author": { "type": "list" }, + "play": { + "type": "list", + "args": { + "item_name": "comic_story", + "list_name": "play" + } + }, "show": { "type": "show" }, @@ -340,6 +357,9 @@ "list_name": "public" } }, + "count_by_story": { + "type": "count" + }, "count_by_author": { "type": "count" }, @@ -348,10 +368,19 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, - "stories": { + "comic_stories": { "actions": { "index": { "type": "list", @@ -360,17 +389,70 @@ } }, "by_comic": { + "type": "list" + }, + "by_story": { + "type": "list" + }, + "by_author": { + "type": "list" + }, + "show": { + "type": "show" + }, + "count": { + "type": "count", + "args": { + "list_name": "public" + } + }, + "count_by_comic": { "type": "count" }, - "by_sheet": { + "count_by_story": { "type": "count" }, + "count_by_author": { + "type": "count" + }, + "new": { + "type": "new" + }, + "edit": { + "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" + } + } + }, + "stories": { + "actions": { + "index": { + "type": "list", + "args": { + "list_name": "public" + } + }, + "by_comic": { + "type": "list" + }, + "by_sheet": { + "type": "list" + }, "by_author": { "type": "list" }, "play": { "type": "list", "args": { + "item_name": "story_sheet", "list_name": "play" } }, @@ -383,6 +465,12 @@ "list_name": "public" } }, + "count_by_comic": { + "type": "count" + }, + "count_by_sheet": { + "type": "count" + }, "count_by_author": { "type": "count" }, @@ -391,6 +479,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -434,6 +531,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -484,6 +590,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -527,6 +642,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -576,6 +700,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -630,6 +763,9 @@ "by_author": { "type": "list" }, + "by_speech_balloon_template": { + "type": "list" + }, "show": { "type": "show" }, @@ -645,6 +781,9 @@ "count_by_author": { "type": "count" }, + "count_by_speech_balloon_template": { + "type": "count" + }, "new": { "type": "new" }, @@ -661,7 +800,7 @@ "list_name": "public" } }, - "by_writing_format": { + "by_author": { "type": "list" }, "show": { @@ -673,7 +812,7 @@ "list_name": "public" } }, - "count_by_writing_format": { + "count_by_author": { "type": "count" }, "new": { @@ -692,6 +831,9 @@ "list_name": "public" } }, + "by_author": { + "type": "list" + }, "show": { "type": "show" }, @@ -701,6 +843,9 @@ "list_name": "public" } }, + "count_by_author": { + "type": "count" + }, "new": { "type": "new" }, @@ -794,11 +939,29 @@ "show": { "type": "show" }, + "history": { + "type": "show" + }, "count": { "type": "count", "args": { "list_name": "public" } + }, + "new": { + "type": "new" + }, + "edit": { + "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -810,8 +973,20 @@ "list_name": "public" } }, + "by_artist": { + "type": "list" + }, "show": { "type": "show" + }, + "count": { + "type": "count", + "args": { + "list_name": "public" + } + }, + "count_by_artist": { + "type": "count" } } }, @@ -823,9 +998,6 @@ "list_name": "public" } }, - "by_original_picture": { - "type": "list" - }, "by_license": { "type": "list" }, @@ -857,6 +1029,9 @@ "list_name": "public" } }, + "by_panel": { + "type": "list" + }, "show": { "type": "show" }, @@ -866,11 +1041,23 @@ "list_name": "public" } }, + "count_by_panel": { + "type": "count" + }, "new": { "type": "new" }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -902,6 +1089,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -927,6 +1123,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -964,6 +1169,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -975,60 +1189,6 @@ "list_name": "public" } }, - "scrolls": { - "type": "list", - "args": { - "list_name": "scrolls" - } - }, - "comics": { - "type": "list", - "args": { - "list_name": "comics" - } - }, - "stories": { - "type": "list", - "args": { - "list_name": "stories" - } - }, - "sheets": { - "type": "list", - "args": { - "list_name": "sheets" - } - }, - "panels": { - "type": "list", - "args": { - "list_name": "panels" - } - }, - "panel_pictures": { - "type": "list", - "args": { - "list_name": "panel_pictures" - } - }, - "speech_balloons": { - "type": "list", - "args": { - "list_name": "speech_balloons" - } - }, - "ground_pictures": { - "type": "list", - "args": { - "list_name": "ground_pictures" - } - }, - "ground_colors": { - "type": "list", - "args": { - "list_name": "ground_colors" - } - }, "show": { "type": "show" }, @@ -1043,6 +1203,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -1054,12 +1223,6 @@ "list_name": "public" } }, - "resource_pictures": { - "type": "list", - "args": { - "list_name": "resource_pictures" - } - }, "show": { "type": "show" }, @@ -1074,6 +1237,15 @@ }, "edit": { "type": "edit" + }, + "create": { + "type": "create" + }, + "update": { + "type": "update" + }, + "destroy": { + "type": "destroy" } } }, @@ -1282,7 +1454,7 @@ "has_many": { "scroll_panels": {}, "panels": { - "through": "scroll_panel" + "through": "scroll_panels" } } }, @@ -1365,7 +1537,10 @@ "author": {} }, "has_many": { - "stories": {} + "comic_stories": {}, + "stories": { + "through": "comic_stories" + } } }, "attributes": { @@ -1401,25 +1576,61 @@ } } }, - "story": { + "comic_story": { "associations": { "belongs_to": { - "comic": {} + "comic": {}, + "story": {} }, - "has_many": { - "story_sheets": {}, - "sheets": { - "through": "story_sheets" - } - } + "has_many": {} }, "attributes": { "comic_id": { "type": "number", "rules": { + "required": true, + "number": true + } + }, + "story_id": { + "type": "number", + "rules": { + "required": true, "number": true } }, + "t": { + "type": "number", + "rules": { + "required": true, + "number": true, + "min": 0 + } + }, + "author_id": { + "type": "number", + "rules": { + "required": true, + "number": true + } + } + } + }, + "story": { + "associations": { + "belongs_to": {}, + "has_many": { + "comic_stories": {}, + "comics": { + "through": "comic_stories" + }, + "story_sheets": {}, + "sheets": { + "through": "story_sheets" + } + } + }, + "attributes": { "title": { "type": "text", "rules": {} @@ -1448,6 +1659,13 @@ "select_item_name": "story_visible_items" } } + }, + "author_id": { + "type": "number", + "rules": { + "required": true, + "number": true + } } } }, @@ -1756,7 +1974,8 @@ "speech_balloon": { "associations": { "belongs_to": { - "panel": {} + "panel": {}, + "speech_balloon_template": {} }, "has_many": {}, "has_one": { @@ -1778,7 +1997,7 @@ "number": true } }, - "speech_balloon_template_classname": { + "speech_balloon_template_module_name": { "type": "text", "rules": { "required": true @@ -1814,7 +2033,8 @@ "associations": { "belongs_to": { "speech_balloon": {}, - "system_picture": {} + "system_picture": {}, + "speech_balloon_template": {} }, "has_many": {} }, @@ -1832,7 +2052,7 @@ "number": true } }, - "speech_balloon_template_classname": { + "speech_balloon_template_module_name": { "type": "text", "rules": { "required": true @@ -1892,7 +2112,8 @@ "associations": { "belongs_to": { "speech_balloon": {}, - "writing_format": {} + "writing_format": {}, + "speech_balloon_template": {} }, "has_many": {} }, @@ -1910,7 +2131,7 @@ "number": true } }, - "speech_balloon_template_classname": { + "speech_balloon_template_module_name": { "type": "text", "rules": { "required": true @@ -1926,7 +2147,7 @@ "number": true } }, - "writing_format_classname": { + "writing_format_module_name": { "type": "text", "rules": { "required": true @@ -2294,13 +2515,6 @@ "number": true } }, - "license_group_id": { - "type": "number", - "rules": { - "required": true, - "number": true - } - }, "license_id": { "type": "number", "rules": { @@ -2332,7 +2546,7 @@ "type": "text", "rules": {} }, - "license_group_classname": { + "license_group_module_name": { "type": "text", "rules": { "required": true @@ -2392,13 +2606,6 @@ "number": true } }, - "license_group_id": { - "type": "number", - "rules": { - "required": true, - "number": true - } - }, "license_id": { "type": "number", "rules": { @@ -2437,7 +2644,7 @@ "number": true } }, - "license_group_classname": { + "license_group_module_name": { "type": "text", "rules": { "required": true @@ -2465,7 +2672,7 @@ "required": true } }, - "classname": { + "module_name": { "type": "text", "rules": { "required": true @@ -2517,7 +2724,7 @@ "required": true } }, - "classname": { + "module_name": { "type": "text", "rules": { "required": true @@ -2559,7 +2766,7 @@ "required": true } }, - "classname": { + "module_name": { "type": "text", "rules": { "required": true @@ -2597,7 +2804,7 @@ "number": true } }, - "license_group_classname": { + "license_group_module_name": { "type": "text", "rules": { "required": true @@ -2696,7 +2903,8 @@ "has_many": { "balloons": {}, "speech_balloon_templates": {}, - "licenses": {} + "licenses": {}, + "writing_formats": {} }, "has_one": {} }, @@ -3501,9 +3709,9 @@ } }, "system_resources": { - "engine_resources": { - "license_groups": { - "resource_items": { + "templates": { + "license_group": { + "template_items": { "PettanrCreativeCommonsV30Licenses": "pettanr_creative_commons_v30_licenses", "PettanrPettanCommonsV01Licenses": "pettanr_pettan_commons_v01_licenses", "PettanrPettanProtectedV01Licenses": "pettanr_pettan_protected_v01_licenses", @@ -3512,27 +3720,21 @@ "PettanrUnknownV01Licenses": "pettanr_unknown_v01_licenses" } }, - "speech_balloon_templates": { - "resource_items": { + "speech_balloon_template": { + "template_items": { "CircleSpeechBalloon": "circle_speech_balloon", "PlainSpeechBalloon": "plain_speech_balloon", "SquareSpeechBalloon": "square_speech_balloon", "TestSpeechBalloon": "test_speech_balloon" } }, - "writing_formats": { + "writing_format": { "has_route": 0, - "resource_items": { + "template_items": { "PettanrSimpleFormat": "pettanr_simple_format" } } }, - "elements": { - "PanelPicture": "panel_pictures", - "SpeechBalloon": "speech_balloons", - "GroundPicture": "ground_pictures", - "GroundColor": "ground_colors" - }, "select_items": { "provider_status_status_items": [ [