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=3eaf78c29b0eea3769ca41bc33f9a58e4965336a;hpb=623fb328302e8daec437b33f9511cdb491cbc203;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 3eaf78c2..05ce36fb 100644 --- a/app/assets/javascripts/manifest/work/controllers.js.coffee.erb +++ b/app/assets/javascripts/manifest/work/controllers.js.coffee.erb @@ -1,11 +1,39 @@ #マニフェスト @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: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, by_author: { @@ -17,17 +45,17 @@ play: { type: 'list', args: { + item_name: 'scroll_panel', list_name: 'play', }, }, show: { type: 'show', - name: 'show', }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_author: { @@ -39,6 +67,18 @@ new: { type: 'new', }, + edit: { + type: 'edit', + }, + create: { + type: 'create', + }, + update: { + type: 'update', + }, + destroy: { + type: 'destroy', + }, }, }, scroll_panels: { @@ -46,7 +86,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -56,10 +96,16 @@ by_scroll: { type: 'list', }, + by_author: { + type: 'list', + }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_panel: { @@ -68,6 +114,15 @@ count_by_scroll: { type: 'count', }, + count_by_author: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, comics: { @@ -75,22 +130,97 @@ index: { type: 'list', args: { - list_name: 'public_list', + 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', + }, count: { type: 'count', args: { - list_name: 'public_list', + 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', + }, }, }, stories: { @@ -98,7 +228,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -114,24 +244,43 @@ play: { type: 'list', args: { + item_name: 'story_sheet', list_name: 'play', }, }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + 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: { @@ -139,7 +288,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -149,10 +298,16 @@ by_sheet: { type: 'list', }, + by_author: { + type: 'list', + }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_story: { @@ -161,6 +316,15 @@ count_by_sheet: { type: 'count', }, + count_by_author: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, sheets: { @@ -168,7 +332,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -184,13 +348,17 @@ play: { type: 'list', args: { + item_name: 'sheet_panel', list_name: 'play', }, }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_story: { @@ -202,6 +370,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, sheet_panels: { @@ -209,7 +383,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -219,10 +393,16 @@ by_panel: { type: 'list', }, + by_author: { + type: 'list', + }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_sheet: { @@ -231,6 +411,15 @@ count_by_panel: { type: 'count', }, + count_by_author: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, panels: { @@ -238,7 +427,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -254,10 +443,13 @@ by_speech_balloon_template: { type: 'list', }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_scroll: { @@ -272,6 +464,12 @@ count_by_speech_balloon_template: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, panel_pictures: { @@ -279,7 +477,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -289,10 +487,13 @@ by_author: { type: 'list', }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_panel: { @@ -301,6 +502,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, speech_balloons: { @@ -308,7 +515,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -318,10 +525,16 @@ by_author: { type: 'list', }, + by_speech_balloon_template: { + type: 'list', + }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_panel: { @@ -330,6 +543,15 @@ count_by_author: { type: 'count', }, + count_by_speech_balloon_template: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, speeches: { @@ -337,22 +559,31 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, by_writing_format: { type: 'list', }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_writing_format: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, balloons: { @@ -360,7 +591,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -370,12 +601,21 @@ # list_name: 'by_system_picture', # }, #}, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, ground_pictures: { @@ -383,7 +623,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -393,10 +633,13 @@ by_author: { type: 'list', }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_panel: { @@ -405,6 +648,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, ground_colors: { @@ -412,7 +661,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -422,10 +671,13 @@ by_author: { type: 'list', }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_panel: { @@ -434,6 +686,12 @@ count_by_author: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, original_pictures: { @@ -441,39 +699,68 @@ index: { type: 'list', args: { - list_name: 'private_list', - + list_name: 'private', }, }, + show: { + type: 'show', + }, + history: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, pictures: { + actions: { + index: { + type: 'list', + args: { + list_name: 'public', + + }, + }, + show: { + type: 'show', + }, + }, }, resource_pictures: { actions: { index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, + by_original_picture: { + type: 'list', + }, by_license: { type: 'list', }, by_artist: { type: 'list', }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_license: { @@ -489,16 +776,31 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, + by_panel: { + type: 'list', + }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, + count_by_panel: { + type: 'count', + }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, writing_formats: { @@ -506,22 +808,31 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, by_system_picture: { type: 'list', }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_system_picture: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, license_groups: { @@ -529,16 +840,25 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, licenses: { @@ -546,7 +866,7 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, @@ -556,10 +876,13 @@ by_system_picture: { type: 'list', }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, count_by_license_group: { @@ -568,6 +891,12 @@ count_by_system_picture: { type: 'count', }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, authors: { @@ -575,70 +904,25 @@ index: { type: 'list', args: { - list_name: 'public_list', + 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', }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, artists: { @@ -646,22 +930,25 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, - resource_pictures: { - type: 'list', - args: { - list_name: 'resource_pictures', - }, + show: { + type: 'show', }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, + new: { + type: 'new', + }, + edit: { + type: 'edit', + }, }, }, system_pictures: { @@ -669,14 +956,17 @@ index: { type: 'list', args: { - list_name: 'public_list', + list_name: 'public', }, }, + show: { + type: 'show', + }, count: { type: 'count', args: { - list_name: 'public_list', + list_name: 'public', }, }, }, @@ -687,7 +977,7 @@ type: 'list', args: { item_name: 'scroll', - list_name: 'private_list', + list_name: 'private', }, }, @@ -695,7 +985,7 @@ type: 'list', args: { item_name: 'scroll_panel', - list_name: 'private_list', + list_name: 'private', }, }, @@ -703,7 +993,7 @@ type: 'list', args: { item_name: 'comic', - list_name: 'private_list', + list_name: 'private', }, }, @@ -711,7 +1001,7 @@ type: 'list', args: { item_name: 'story', - list_name: 'private_list', + list_name: 'private', }, }, @@ -719,7 +1009,7 @@ type: 'list', args: { item_name: 'story_sheet', - list_name: 'private_list', + list_name: 'private', }, }, @@ -727,7 +1017,7 @@ type: 'list', args: { item_name: 'sheet', - list_name: 'private_list', + list_name: 'private', }, }, @@ -735,7 +1025,7 @@ type: 'list', args: { item_name: 'sheet_panel', - list_name: 'private_list', + list_name: 'private', }, }, @@ -743,7 +1033,7 @@ type: 'list', args: { item_name: 'panel', - list_name: 'private_list', + list_name: 'private', }, }, @@ -751,7 +1041,7 @@ type: 'list', args: { item_name: 'panel_picture', - list_name: 'private_list', + list_name: 'private', }, }, @@ -759,7 +1049,7 @@ type: 'list', args: { item_name: 'speech_balloon', - list_name: 'private_list', + list_name: 'private', }, }, @@ -767,7 +1057,7 @@ type: 'list', args: { item_name: 'speech', - list_name: 'private_list', + list_name: 'private', }, }, @@ -775,7 +1065,7 @@ type: 'list', args: { item_name: 'balloon', - list_name: 'private_list', + list_name: 'private', }, }, @@ -783,7 +1073,7 @@ type: 'list', args: { item_name: 'ground_picture', - list_name: 'private_list', + list_name: 'private', }, }, @@ -791,7 +1081,7 @@ type: 'list', args: { item_name: 'ground_color', - list_name: 'private_list', + list_name: 'private', }, }, @@ -799,7 +1089,7 @@ type: 'list', args: { item_name: 'original_picture', - list_name: 'private_list', + list_name: 'private', }, }, @@ -807,7 +1097,7 @@ type: 'list', args: { item_name: 'resource_picture', - list_name: 'private_list', + list_name: 'private', }, },