X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmanifest%2Fwork%2Fcontrollers.js.coffee.erb;h=604a318a7883d45008edc393c9f446606a471dde;hb=69b61b39006c1951fc8c08746e884e63e50233b3;hp=e00855c1b6f3ea1454fada66c2e4ba4a6ac29256;hpb=0812719c611a0d80d83e13c4a697ecbc6b7d2a99;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 e00855c1..604a318a 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', }, }, @@ -38,6 +67,18 @@ new: { type: 'new', }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, scroll_panels: { @@ -55,6 +96,9 @@ by_scroll: { type: 'list', }, + by_author: { + type: 'list', + }, show: { type: 'show', }, @@ -70,6 +114,24 @@ count_by_scroll: { type: 'count', }, + count_by_author: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, comics: { @@ -81,9 +143,19 @@ }, }, + by_story: { + type: 'list', + }, by_author: { type: 'list', }, + play: { + type: 'list', + args: { + item_name: 'comic_story', + list_name: 'play', + }, + }, show: { type: 'show', }, @@ -93,9 +165,80 @@ 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', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, stories: { @@ -119,6 +262,7 @@ play: { type: 'list', args: { + item_name: 'story_sheet', list_name: 'play', }, }, @@ -131,15 +275,30 @@ list_name: 'public', }, }, - by_comic: { + count_by_comic: { type: 'count', }, - by_sheet: { + count_by_sheet: { type: 'count', }, count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, story_sheets: { @@ -157,6 +316,9 @@ by_sheet: { type: 'list', }, + by_author: { + type: 'list', + }, show: { type: 'show', }, @@ -172,6 +334,24 @@ count_by_sheet: { type: 'count', }, + count_by_author: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, sheets: { @@ -195,6 +375,7 @@ play: { type: 'list', args: { + item_name: 'sheet_panel', list_name: 'play', }, }, @@ -216,6 +397,21 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, sheet_panels: { @@ -233,6 +429,9 @@ by_panel: { type: 'list', }, + by_author: { + type: 'list', + }, show: { type: 'show', }, @@ -248,6 +447,24 @@ count_by_panel: { type: 'count', }, + count_by_author: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, panels: { @@ -292,6 +509,21 @@ count_by_speech_balloon_template: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, panel_pictures: { @@ -324,6 +556,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, speech_balloons: { @@ -341,6 +579,9 @@ by_author: { type: 'list', }, + by_speech_balloon_template: { + type: 'list', + }, show: { type: 'show', }, @@ -356,6 +597,15 @@ count_by_author: { type: 'count', }, + count_by_speech_balloon_template: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, speeches: { @@ -367,7 +617,7 @@ }, }, - by_writing_format: { + by_author: { type: 'list', }, show: { @@ -379,9 +629,15 @@ list_name: 'public', }, }, - count_by_writing_format: { + count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, balloons: { @@ -393,12 +649,9 @@ }, }, - #by_system_picture: { - # type: 'list', - # args: { - # list_name: 'by_system_picture', - # }, - #}, + by_author: { + type: 'list', + }, show: { type: 'show', }, @@ -408,6 +661,15 @@ list_name: 'public', }, }, + count_by_author: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, ground_pictures: { @@ -440,6 +702,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, ground_colors: { @@ -472,6 +740,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, original_pictures: { @@ -485,19 +759,56 @@ 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', + }, }, }, pictures: { actions: { + index: { + type: 'list', + args: { + list_name: 'public', + + }, + }, + by_artist: { + type: 'list', + }, show: { type: 'show', }, + count: { + type: 'count', + args: { + list_name: 'public', + }, + }, + count_by_artist: { + type: 'count', + }, }, }, resource_pictures: { @@ -509,6 +820,9 @@ }, }, + by_license_group: { + type: 'list', + }, by_license: { type: 'list', }, @@ -524,6 +838,9 @@ list_name: 'public', }, }, + count_by_license_group: { + type: 'count', + }, count_by_license: { type: 'count', }, @@ -541,6 +858,9 @@ }, }, + by_panel: { + type: 'list', + }, show: { type: 'show', }, @@ -550,6 +870,24 @@ list_name: 'public', }, }, + count_by_panel: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, writing_formats: { @@ -576,6 +914,21 @@ count_by_system_picture: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, license_groups: { @@ -596,6 +949,21 @@ list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, licenses: { @@ -628,6 +996,21 @@ count_by_system_picture: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, authors: { @@ -639,60 +1022,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', }, @@ -702,6 +1031,21 @@ list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, artists: { @@ -713,12 +1057,6 @@ }, }, - resource_pictures: { - type: 'list', - args: { - list_name: 'resource_pictures', - }, - }, show: { type: 'show', }, @@ -728,6 +1066,21 @@ list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, system_pictures: {