OSDN Git Service

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