X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmanifest%2Fwork%2Fcontrollers.js.coffee.erb;h=05ce36fbfed50685568a10f2ded57df9d1999411;hb=0174862d186425888ff64ffe1fa52c6266708049;hp=58fd878d1eb1ffd63cdf84462029431aef9d3881;hpb=a6cc2e1d02637b226e971eebe2fb8952d6410a6f;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/manifest/work/controllers.js.coffee.erb b/app/assets/javascripts/manifest/work/controllers.js.coffee.erb index 58fd878d..05ce36fb 100644 --- a/app/assets/javascripts/manifest/work/controllers.js.coffee.erb +++ b/app/assets/javascripts/manifest/work/controllers.js.coffee.erb @@ -1,5 +1,33 @@ #マニフェスト @controllers = { + folders: { + actions: { + root: { + type: 'show', + }, + index: { + type: 'list', + args: { + list_name: 'public', + }, + }, + show: { + type: 'show', + }, + count: { + type: 'count', + args: { + list_name: 'public', + }, + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + }, + }, scrolls: { actions: { index: { @@ -17,6 +45,7 @@ play: { type: 'list', args: { + item_name: 'scroll_panel', list_name: 'play', }, }, @@ -41,6 +70,15 @@ edit: { type: 'edit', }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, scroll_panels: { @@ -58,6 +96,9 @@ by_scroll: { type: 'list', }, + by_author: { + type: 'list', + }, show: { type: 'show', }, @@ -73,6 +114,9 @@ count_by_scroll: { type: 'count', }, + count_by_author: { + type: 'count', + }, new: { type: 'new', }, @@ -90,9 +134,19 @@ }, }, + by_story: { + type: 'list', + }, by_author: { type: 'list', }, + play: { + type: 'list', + args: { + item_name: 'comic_story', + list_name: 'play', + }, + }, show: { type: 'show', }, @@ -102,6 +156,62 @@ list_name: 'public', }, }, + 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', + }, + }, + }, + comic_stories: { + actions: { + index: { + type: 'list', + args: { + list_name: 'public', + + }, + }, + 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', + }, + count_by_story: { + type: 'count', + }, count_by_author: { type: 'count', }, @@ -134,6 +244,7 @@ play: { type: 'list', args: { + item_name: 'story_sheet', list_name: 'play', }, }, @@ -146,10 +257,10 @@ list_name: 'public', }, }, - by_comic: { + count_by_comic: { type: 'count', }, - by_sheet: { + count_by_sheet: { type: 'count', }, count_by_author: { @@ -161,6 +272,15 @@ edit: { type: 'edit', }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, story_sheets: { @@ -178,6 +298,9 @@ by_sheet: { type: 'list', }, + by_author: { + type: 'list', + }, show: { type: 'show', }, @@ -193,6 +316,9 @@ count_by_sheet: { type: 'count', }, + count_by_author: { + type: 'count', + }, new: { type: 'new', }, @@ -222,6 +348,7 @@ play: { type: 'list', args: { + item_name: 'sheet_panel', list_name: 'play', }, }, @@ -266,6 +393,9 @@ by_panel: { type: 'list', }, + by_author: { + type: 'list', + }, show: { type: 'show', }, @@ -281,6 +411,9 @@ count_by_panel: { type: 'count', }, + count_by_author: { + type: 'count', + }, new: { type: 'new', }, @@ -369,6 +502,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, speech_balloons: { @@ -386,6 +525,9 @@ by_author: { type: 'list', }, + by_speech_balloon_template: { + type: 'list', + }, show: { type: 'show', }, @@ -401,6 +543,15 @@ count_by_author: { type: 'count', }, + count_by_speech_balloon_template: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, speeches: { @@ -427,6 +578,12 @@ count_by_writing_format: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, balloons: { @@ -453,6 +610,12 @@ list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, ground_pictures: { @@ -485,6 +648,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, ground_colors: { @@ -517,6 +686,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, original_pictures: { @@ -530,16 +705,32 @@ show: { type: 'show', }, + history: { + type: 'show', + }, count: { type: 'count', args: { list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, pictures: { actions: { + index: { + type: 'list', + args: { + list_name: 'public', + + }, + }, show: { type: 'show', }, @@ -589,6 +780,9 @@ }, }, + by_panel: { + type: 'list', + }, show: { type: 'show', }, @@ -598,6 +792,9 @@ list_name: 'public', }, }, + count_by_panel: { + type: 'count', + }, new: { type: 'new', }, @@ -711,60 +908,6 @@ }, }, - 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', }, @@ -791,12 +934,6 @@ }, }, - resource_pictures: { - type: 'list', - args: { - list_name: 'resource_pictures', - }, - }, show: { type: 'show', },