OSDN Git Service

9701afd3f52d4eeac9cd67914a5a45a5fb611dff
[pettanr/pettanr.git] / app / assets / javascripts / manifest / work / lists.js.coffee.erb
1 #マニフェスト\r
2 @lists = {\r
3   scroll: {\r
4     default_page_size: 25, \r
5     max_page_size: 100, \r
6     lists: {\r
7       public_list: {\r
8         type: 'public',\r
9       },\r
10       private_list: {\r
11         type: 'private',\r
12       },\r
13       scroll_panels: {\r
14         type: 'has_many',\r
15         association_name: 'scroll_panels',\r
16       },\r
17       panels: {\r
18         type: 'has_many_through',\r
19         association_name: 'panels',\r
20       },\r
21       by_author: {\r
22         type: 'filter',\r
23         from: 'author',\r
24         filter_key: 'author_id',\r
25       },\r
26       by_panel: {\r
27         type: 'through_filter',\r
28         from: 'panel',\r
29         through: 'scroll_panels',\r
30         filter_key: 'panel_id',\r
31       },\r
32       play: {\r
33         type: 'play',\r
34         model: 'scroll_panel',\r
35         filter_key: 'scroll_id',\r
36       },\r
37     },\r
38   },\r
39   scroll_panel: {\r
40     default_page_size: 20, \r
41     lists: {\r
42       public_list: {\r
43         type: 'public',\r
44       },\r
45       private_list: {\r
46         type: 'private',\r
47       },\r
48       by_scroll: {\r
49         type: 'filter',\r
50         from: 'scroll',\r
51         filter_key: 'scroll_id',\r
52       },\r
53       by_panel: {\r
54         type: 'filter',\r
55         from: 'panel',\r
56         filter_key: 'panel_id',\r
57       },\r
58     },\r
59   },\r
60   comic: {\r
61     default_page_size: 20, \r
62     lists: {\r
63       public_list: {\r
64         type: 'public',\r
65       },\r
66       private_list: {\r
67         type: 'private',\r
68       },\r
69       stories: {\r
70         type: 'has_many',\r
71         association_name: 'stories',\r
72       },\r
73       by_author: {\r
74         type: 'filter',\r
75         from: 'author',\r
76         filter_key: 'author_id',\r
77       },\r
78     },\r
79   },\r
80   story: {\r
81     default_page_size: 20, \r
82     lists: {\r
83       public_list: {\r
84         type: 'public',\r
85       },\r
86       private_list: {\r
87         type: 'private',\r
88       },\r
89       story_sheets: {\r
90         type: 'has_many',\r
91         association_name: 'story_sheets',\r
92       },\r
93       sheets: {\r
94         type: 'has_many',\r
95         association_name: 'sheets',\r
96       },\r
97       by_comic: {\r
98         type: 'filter',\r
99         from: 'comic',\r
100         filter_key: 'comic_id',\r
101       },\r
102       by_sheet: {\r
103         type: 'through_filter',\r
104         from: 'sheet',\r
105         through: 'story_sheets',\r
106         filter_key: 'sheet_id',\r
107       },\r
108       by_author: {\r
109         type: 'element_filter',\r
110         from: 'author',\r
111         filter_key: 'author_id',\r
112       },\r
113       play: {\r
114         type: 'play',\r
115         model: 'story_sheet',\r
116         filter_key: 'story_id',\r
117       },\r
118     },\r
119   },\r
120   story_sheet: {\r
121     default_page_size: 20, \r
122     lists: {\r
123       public_list: {\r
124         type: 'public',\r
125       },\r
126       private_list: {\r
127         type: 'private',\r
128       },\r
129       by_story: {\r
130         type: 'filter',\r
131         from: 'story',\r
132         filter_key: 'story_id',\r
133       },\r
134       by_sheet: {\r
135         type: 'filter',\r
136         from: 'sheet',\r
137         filter_key: 'sheet_id',\r
138       },\r
139     },\r
140   },\r
141   sheet: {\r
142     default_page_size: 20, \r
143     lists: {\r
144       public_list: {\r
145         type: 'public',\r
146       },\r
147       private_list: {\r
148         type: 'private',\r
149       },\r
150       story_sheets: {\r
151         type: 'has_many',\r
152         association_name: 'story_sheets',\r
153       },\r
154       stories: {\r
155         type: 'has_many',\r
156         association_name: 'stories',\r
157       },\r
158       sheet_panels: {\r
159         type: 'has_many',\r
160         association_name: 'sheet_panels',\r
161       },\r
162       panels: {\r
163         type: 'has_many',\r
164         association_name: 'panels',\r
165       },\r
166       by_story: {\r
167         type: 'through_filter',\r
168         from: 'story',\r
169         through: 'story_sheets',\r
170         filter_key: 'story_id',\r
171       },\r
172       by_panel: {\r
173         type: 'through_filter',\r
174         from: 'panel',\r
175         through: 'sheet_panels',\r
176         filter_key: 'panel_id',\r
177       },\r
178       by_author: {\r
179         type: 'filter',\r
180         from: 'author',\r
181         filter_key: 'author_id',\r
182       },\r
183       play: {\r
184         type: 'play',\r
185         model: 'sheet_panel',\r
186         filter_key: 'sheet_id',\r
187       },\r
188     },\r
189   },\r
190   sheet_panel: {\r
191     default_page_size: 20, \r
192     lists: {\r
193       public_list: {\r
194         type: 'public',\r
195       },\r
196       private_list: {\r
197         type: 'private',\r
198       },\r
199       by_sheet: {\r
200         type: 'filter',\r
201         association_name: 'sheet_panels',\r
202         from: 'sheet',\r
203         filter_key: 'sheet_id',\r
204       },\r
205       by_panel: {\r
206         type: 'filter',\r
207         from: 'panel',\r
208         filter_key: 'panel_id',\r
209       },\r
210     },\r
211   },\r
212   panel: {\r
213     default_page_size: 20, \r
214     lists: {\r
215       public_list: {\r
216         type: 'public',\r
217       },\r
218       private_list: {\r
219         type: 'private',\r
220       },\r
221       scroll_panels: {\r
222         type: 'has_many',\r
223         association_name: 'scroll_panels',\r
224       },\r
225       scrolls: {\r
226         type: 'has_many',\r
227         association_name: 'scrolls',\r
228       },\r
229       sheet_panels: {\r
230         type: 'has_many',\r
231         association_name: 'sheet_panels',\r
232       },\r
233       sheets: {\r
234         type: 'has_many',\r
235         association_name: 'sheets',\r
236       },\r
237       panel_pictures: {\r
238         type: 'has_many',\r
239         association_name: 'panel_pictures',\r
240       },\r
241       speech_balloons: {\r
242         type: 'has_many',\r
243         association_name: 'speech_balloons',\r
244       },\r
245       ground_pictures: {\r
246         type: 'has_many',\r
247         association_name: 'ground_pictures',\r
248       },\r
249       ground_colors: {\r
250         type: 'has_many',\r
251         association_name: 'ground_colors',\r
252       },\r
253       by_scroll: {\r
254         type: 'through_filter',\r
255         from: 'scroll',\r
256         through: 'scroll_panels',\r
257         filter_key: 'scroll_id',\r
258       },\r
259       by_sheet: {\r
260         type: 'through_filter',\r
261         from: 'sheet',\r
262         through: 'sheet_panels',\r
263         filter_key: 'sheet_id',\r
264       },\r
265       by_author: {\r
266         type: 'filter',\r
267         from: 'author',\r
268         filter_key: 'author_id',\r
269       },\r
270       by_speech_balloon_template: {\r
271         type: 'through_filter',\r
272         from: 'speech_balloon_template',\r
273         through: 'speech_balloons',\r
274         filter_key: 'speech_balloon_template_id',\r
275       },\r
276     },\r
277   },\r
278   panel_picture: {\r
279     default_page_size: 20, \r
280     lists: {\r
281       public_list: {\r
282         type: 'public',\r
283       },\r
284       private_list: {\r
285         type: 'private',\r
286       },\r
287       by_panel: {\r
288         type: 'filter',\r
289         from: 'panel',\r
290         filter_key: 'panel_id',\r
291       },\r
292       by_author: {\r
293         type: 'element_filter',\r
294         from: 'author',\r
295         filter_key: 'author_id',\r
296       },\r
297     },\r
298   },\r
299   speech_balloon: {\r
300     default_page_size: 20, \r
301     lists: {\r
302       public_list: {\r
303         type: 'public',\r
304       },\r
305       private_list: {\r
306         type: 'private',\r
307       },\r
308       by_panel: {\r
309         type: 'filter',\r
310         from: 'panel',\r
311         filter_key: 'panel_id',\r
312       },\r
313       by_speech_balloon_template: {\r
314         type: 'filter',\r
315         from: 'speech_balloon_template',\r
316         filter_key: 'speech_balloon_template_id',\r
317       },\r
318       by_author: {\r
319         type: 'element_filter',\r
320         from: 'author',\r
321         filter_key: 'author_id',\r
322       },\r
323     },\r
324   },\r
325   speech: {\r
326     default_page_size: 20, \r
327     lists: {\r
328       public_list: {\r
329         type: 'public',\r
330       },\r
331       by_speech_balloon: {\r
332         type: 'filter',\r
333         from: 'speech_balloon',\r
334         includes: {speech_balloon: {panel: {}}},\r
335         filter_key: 'speech_balloon_id',\r
336       },\r
337       by_writing_format: {\r
338         type: 'filter',\r
339         from: 'writing_format',\r
340         filter_key: 'writing_format_id',\r
341       },\r
342     },\r
343   },\r
344   balloon: {\r
345     default_page_size: 20, \r
346     lists: {\r
347       public_list: {\r
348         type: 'public',\r
349       },\r
350       by_speech_balloon: {\r
351         type: 'filter',\r
352         from: 'speech_balloon',\r
353         includes: {speech_balloon: {panel: {}}},\r
354         filter_key: 'speech_balloon_id',\r
355       },\r
356       #by_system_picture: {\r
357       #  type: 'filter',\r
358       #  from: 'system_picture',\r
359       #  filter_key: 'system_picture_id',\r
360       #},\r
361     },\r
362   },\r
363   ground_picture: {\r
364     default_page_size: 20, \r
365     lists: {\r
366       public_list: {\r
367         type: 'public',\r
368       },\r
369       private_list: {\r
370         type: 'private',\r
371       },\r
372       by_panel: {\r
373         type: 'filter',\r
374         from: 'panel',\r
375         filter_key: 'panel_id',\r
376       },\r
377       by_author: {\r
378         type: 'element_filter',\r
379         from: 'author',\r
380         filter_key: 'author_id',\r
381       },\r
382     },\r
383   },\r
384   ground_color: {\r
385     default_page_size: 20, \r
386     lists: {\r
387       public_list: {\r
388         type: 'public',\r
389       },\r
390       private_list: {\r
391         type: 'private',\r
392       },\r
393       by_panel: {\r
394         type: 'filter',\r
395         from: 'panel',\r
396         filter_key: 'panel_id',\r
397       },\r
398       by_author: {\r
399         type: 'element_filter',\r
400         from: 'author',\r
401         filter_key: 'author_id',\r
402       },\r
403     },\r
404   },\r
405   original_picture: {\r
406     default_page_size: 20, \r
407     lists: {\r
408       private_list: {\r
409         type: 'private',\r
410       },\r
411     },\r
412   },\r
413   picture: {\r
414   },\r
415   resource_picture: {\r
416     default_page_size: 20, \r
417     lists: {\r
418       public_list: {\r
419         type: 'public',\r
420       },\r
421       private_list: {\r
422         type: 'private',\r
423       },\r
424       by_license: {\r
425         type: 'filter',\r
426         from: 'license',\r
427         filter_key: 'license_id',\r
428       },\r
429       by_artist: {\r
430         type: 'filter',\r
431         from: 'artist',\r
432         filter_key: 'artist_id',\r
433       },\r
434     },\r
435   },\r
436   speech_balloon_template: {\r
437     default_page_size: 20, \r
438     lists: {\r
439       public_list: {\r
440         type: 'public',\r
441       },\r
442       select_items: {\r
443         type: 'system_resource',\r
444       },\r
445       speech_balloons: {\r
446         type: 'has_many',\r
447         association_name: 'speech_balloons',\r
448       },\r
449       panels: {\r
450         type: 'has_many',\r
451         association_name: 'panels',\r
452       },\r
453     },\r
454   },\r
455   writing_format: {\r
456     default_page_size: 20, \r
457     lists: {\r
458       public_list: {\r
459         type: 'public',\r
460       },\r
461       select_items: {\r
462         type: 'system_resource',\r
463       },\r
464       speeches: {\r
465         type: 'has_many',\r
466         association_name: 'speeches',\r
467       },\r
468       by_system_picture: {\r
469         type: 'filter',\r
470         from: 'system_picture',\r
471         filter_key: 'system_picture_id',\r
472       },\r
473     },\r
474   },\r
475   license_group: {\r
476     default_page_size: 20, \r
477     lists: {\r
478       public_list: {\r
479         type: 'public',\r
480       },\r
481       select_items: {\r
482         type: 'system_resource',\r
483       },\r
484       licenses: {\r
485         type: 'has_many',\r
486         association_name: 'licenses',\r
487       },\r
488     },\r
489   },\r
490   license: {\r
491     default_page_size: 20, \r
492     lists: {\r
493       public_list: {\r
494         type: 'public',\r
495       },\r
496       resource_pictures: {\r
497         type: 'has_many',\r
498         association_name: 'resource_pictures',\r
499       },\r
500       by_license_group: {\r
501         type: 'filter',\r
502         from: 'license_group',\r
503         filter_key: 'license_group_id',\r
504       },\r
505       by_system_picture: {\r
506         type: 'filter',\r
507         from: 'system_picture',\r
508         filter_key: 'system_picture_id',\r
509       },\r
510     },\r
511   },\r
512   author: {\r
513     default_page_size: 20, \r
514     lists: {\r
515       public_list: {\r
516         type: 'public',\r
517       },\r
518       scrolls: {\r
519         type: 'has_many',\r
520         association_name: 'scrolls',\r
521       },\r
522       comics: {\r
523         type: 'has_many',\r
524         association_name: 'comics',\r
525       },\r
526       stories: {\r
527         type: 'has_many',\r
528         association_name: 'stories',\r
529       },\r
530       sheets: {\r
531         type: 'has_many',\r
532         association_name: 'sheets',\r
533       },\r
534       panels: {\r
535         type: 'has_many',\r
536         association_name: 'panels',\r
537       },\r
538       panel_pictures: {\r
539         type: 'has_many',\r
540         association_name: 'panel_pictures',\r
541       },\r
542       speech_balloons: {\r
543         type: 'has_many',\r
544         association_name: 'speech_balloons',\r
545       },\r
546       ground_pictures: {\r
547         type: 'has_many',\r
548         association_name: 'ground_pictures',\r
549       },\r
550       ground_colors: {\r
551         type: 'has_many',\r
552         association_name: 'ground_colors',\r
553       },\r
554     },\r
555   },\r
556   artist: {\r
557     default_page_size: 20, \r
558     lists: {\r
559       public_list: {\r
560         type: 'public',\r
561       },\r
562       resource_pictures: {\r
563         type: 'has_many',\r
564         association_name: 'resource_pictures',\r
565       },\r
566     },\r
567   },\r
568   system_picture: {\r
569     default_page_size: 20, \r
570     lists: {\r
571       public_list: {\r
572         type: 'public',\r
573       },\r
574     },\r
575   },\r
576 }\r