OSDN Git Service

a94e738625a43066ead44f4fa62da64f5488f588
[pettanr/pettanr.git] / app / assets / javascripts / manifest / work / profilers.js.coffee.erb
1 #マニフェスト\r
2 @profilers = {\r
3   scroll: {\r
4     lists: {\r
5       'scroll_panels.by_scroll': {\r
6         model_name: 'scroll_panel',\r
7         list_name: 'by_scroll',\r
8       }, \r
9       'panels.by_scroll': {\r
10         model_name: 'panel',\r
11         list_name: 'by_scroll',\r
12       }, \r
13     }, \r
14     columns: [\r
15       'id', \r
16       'title', \r
17       'description', \r
18       'visible', \r
19       'author_id', \r
20       'created_at', \r
21       'updated_at',\r
22     ],\r
23     associations: {\r
24       belongs_to: [\r
25         'author',\r
26       ],\r
27       has_many: [\r
28         'scroll_panels.by_scroll', \r
29         'panels.by_scroll'\r
30       ],\r
31     }, \r
32   },\r
33   scroll_panel: {\r
34     lists: {\r
35     }, \r
36     columns: [\r
37       'id', \r
38       'scroll_id', \r
39       'panel_id', \r
40       't', \r
41       'author_id', \r
42       'created_at', \r
43       'updated_at',\r
44     ],\r
45     associations: {\r
46       belongs_to: [\r
47         'scroll', \r
48         'panel'\r
49       ],\r
50       has_many: [\r
51       ],\r
52     }, \r
53   },\r
54   comic: {\r
55     lists: {\r
56       'stories.by_comic': {\r
57         model_name: 'story',\r
58         list_name: 'by_comic',\r
59       }, \r
60     }, \r
61     columns: [\r
62       'id', \r
63       'title', \r
64       'description', \r
65       'visible', \r
66       'author_id', \r
67       'created_at', \r
68       'updated_at',\r
69     ],\r
70     associations: {\r
71       belongs_to: [\r
72         'author',\r
73       ],\r
74       has_many: [\r
75         'stories.by_comic', \r
76       ],\r
77     }, \r
78   },\r
79   story: {\r
80     lists: {\r
81       'story_sheets.by_story': {\r
82         model_name: 'story_sheet',\r
83         list_name: 'by_story',\r
84       }, \r
85       'sheets.by_story': {\r
86         model_name: 'sheet',\r
87         list_name: 'by_sheet',\r
88       }, \r
89     }, \r
90     columns: [\r
91       'id', \r
92       'comic_id', \r
93       'title', \r
94       'description', \r
95       't', \r
96       'visible', \r
97       'created_at', \r
98       'updated_at',\r
99     ],\r
100     associations: {\r
101       belongs_to: [\r
102         'comic',\r
103       ],\r
104       has_many: [\r
105         'story_sheets.by_story', \r
106         'sheets.by_story'\r
107       ],\r
108     }, \r
109   },\r
110   story_sheet: {\r
111     lists: {\r
112     }, \r
113     columns: [\r
114       'id', \r
115       'story_id', \r
116       'sheet_id', \r
117       't', \r
118       'author_id', \r
119       'created_at', \r
120       'updated_at',\r
121     ],\r
122     associations: {\r
123       belongs_to: [\r
124         'story',\r
125         'sheet',\r
126       ],\r
127       has_many: [\r
128       ],\r
129     }, \r
130   },\r
131   sheet: {\r
132     lists: {\r
133       'story_sheets.by_sheet': {\r
134         model_name: 'story_sheet',\r
135         list_name: 'by_sheet',\r
136       }, \r
137       'stories.by_sheet': {\r
138         model_name: 'story',\r
139         list_name: 'by_sheet',\r
140       }, \r
141       'sheet_panels.by_sheet': {\r
142         model_name: 'sheet_panel',\r
143         list_name: 'by_sheet',\r
144       }, \r
145       'panels.by_sheet': {\r
146         model_name: 'panel',\r
147         list_name: 'by_sheet',\r
148       }, \r
149     }, \r
150     columns: [\r
151       'id', \r
152       'caption', \r
153       'width', \r
154       'height', \r
155       'visible', \r
156       'author_id', \r
157       'created_at', \r
158       'updated_at',\r
159     ],\r
160     associations: {\r
161       belongs_to: [\r
162         'author',\r
163       ],\r
164       has_many: [\r
165         'story_sheets.by_sheet', \r
166         'stories.by_sheet', \r
167         'sheet_panels.by_sheet'\r
168         'panels.by_sheet'\r
169       ],\r
170     }, \r
171   },\r
172   sheet_panel: {\r
173     lists: {\r
174     }, \r
175     columns: [\r
176       'id', \r
177       'sheet_id', \r
178       'panel_id', \r
179       'x', \r
180       'y', \r
181       'z', \r
182       't', \r
183       'author_id', \r
184       'created_at', \r
185       'updated_at',\r
186     ],\r
187     associations: {\r
188       belongs_to: [\r
189         'sheet',\r
190         'panel',\r
191       ],\r
192       has_many: [\r
193       ],\r
194     }, \r
195   },\r
196   panel: {\r
197     lists: {\r
198       'scroll_panels.by_panel': {\r
199         model_name: 'scroll_panel',\r
200         list_name: 'by_panel',\r
201       }, \r
202       'scrolls.by_panel': {\r
203         model_name: 'scroll',\r
204         list_name: 'by_panel',\r
205       }, \r
206       'sheet_panels.by_panel': {\r
207         model_name: 'sheet_panel',\r
208         list_name: 'by_panel',\r
209       }, \r
210       'sheets.by_panel': {\r
211         model_name: 'sheet',\r
212         list_name: 'by_panel',\r
213       }, \r
214       'panel_pictures.by_panel': {\r
215         model_name: 'panel_picture',\r
216         list_name: 'by_panel',\r
217       }, \r
218       'speech_balloons.by_panel': {\r
219         model_name: 'speech_balloon',\r
220         list_name: 'by_panel',\r
221       }, \r
222       'ground_pictures.by_panel': {\r
223         model_name: 'ground_picture',\r
224         list_name: 'by_panel',\r
225       }, \r
226       'ground_colors.by_panel': {\r
227         model_name: 'ground_color',\r
228         list_name: 'by_panel',\r
229       }, \r
230     }, \r
231     columns: [\r
232       'id', \r
233       'width', \r
234       'height', \r
235       'border', \r
236       'caption', \r
237       'publish', \r
238       'author_id', \r
239       'created_at', \r
240       'updated_at',\r
241     ],\r
242     associations: {\r
243       belongs_to: [\r
244         'author',\r
245       ],\r
246       has_many: [\r
247         'scroll_panels.by_panel',\r
248         'scrolls.by_panel',\r
249         'sheet_panels.by_panel',\r
250         'sheets.by_panel',\r
251         'panel_pictures.by_panel',\r
252         'speech_balloons.by_panel',\r
253         'ground_pictures.by_panel',\r
254         'ground_colors.by_panel',\r
255       ],\r
256     }, \r
257   },\r
258   panel_picture: {\r
259     lists: {\r
260     }, \r
261     columns: [\r
262       'id', \r
263       'panel_id', \r
264       'picture_id', \r
265       'caption', \r
266       'x', \r
267       'y', \r
268       'width', \r
269       'height', \r
270       'link', \r
271       'z', \r
272       't', \r
273       'created_at', \r
274       'updated_at',\r
275     ],\r
276     associations: {\r
277       belongs_to: [\r
278         'panel',\r
279       ],\r
280       has_many: [\r
281       ],\r
282     }, \r
283   },\r
284   speech_balloon: {\r
285     lists: {\r
286       'balloon.by_speech_balloon': {\r
287         model_name: 'balloon',\r
288         list_name: 'by_speech_balloon',\r
289       }, \r
290       'speech.by_speech_balloon': {\r
291         model_name: 'panel',\r
292         list_name: 'by_speech_balloon',\r
293       }, \r
294     }, \r
295     columns: [\r
296       'id', \r
297       'panel_id', \r
298       'speech_balloon_template_id', \r
299       'classname', \r
300       'z', \r
301       't', \r
302       'settings', \r
303       'caption', \r
304       'created_at', \r
305       'updated_at',\r
306     ],\r
307     associations: {\r
308       belongs_to: [\r
309         'panel',\r
310       ],\r
311       has_many: [\r
312       ],\r
313       has_one: [\r
314         'balloon.by_speech_balloon',\r
315         'speech.by_speech_balloon',\r
316       ],\r
317     }, \r
318   },\r
319   speech: {\r
320     lists: {\r
321     }, \r
322     columns: [\r
323       'id', \r
324       'speech_balloon_id', \r
325       'writing_format_id', \r
326       'content', \r
327       'font_size', \r
328       'text_align', \r
329       'fore_color', \r
330       'x', \r
331       'y', \r
332       'width', \r
333       'height', \r
334       'quotes', \r
335       'settings', \r
336       'created_at', \r
337       'updated_at',\r
338     ],\r
339     associations: {\r
340       belongs_to: [\r
341         'speech_balloon',\r
342         'writing_format',\r
343       ],\r
344       has_many: [\r
345       ],\r
346     }, \r
347   },\r
348   balloon: {\r
349     lists: {\r
350     }, \r
351     columns: [\r
352       'id', \r
353       'speech_balloon_id', \r
354       'system_picture_id', \r
355       'x', \r
356       'y', \r
357       'width', \r
358       'height', \r
359       'r', \r
360       'settings', \r
361       'created_at', \r
362       'updated_at',\r
363     ],\r
364     associations: {\r
365       belongs_to: [\r
366         'speech_balloon',\r
367         'system_picture',\r
368       ],\r
369       has_many: [\r
370       ],\r
371     }, \r
372   },\r
373   ground_picture: {\r
374     lists: {\r
375     }, \r
376     columns: [\r
377       'id', \r
378       'panel_id', \r
379       'picture_id', \r
380       'caption', \r
381       'repeat', \r
382       'x', \r
383       'y', \r
384       'z', \r
385       't', \r
386       'created_at', \r
387       'updated_at',\r
388     ],\r
389     associations: {\r
390       belongs_to: [\r
391         'panel',\r
392       ],\r
393       has_many: [\r
394       ],\r
395     }, \r
396   },\r
397   ground_color: {\r
398     lists: {\r
399     }, \r
400     columns: [\r
401       'id', \r
402       'panel_id', \r
403       'caption', \r
404       'code', \r
405       'orientation', \r
406       'xy', \r
407       'wh', \r
408       'z', \r
409       't', \r
410       'created_at', \r
411       'updated_at',\r
412     ],\r
413     associations: {\r
414       belongs_to: [\r
415         'panel',\r
416       ],\r
417       has_many: [\r
418       ],\r
419     }, \r
420   },\r
421   original_picture: {\r
422     lists: {\r
423     }, \r
424     columns: [\r
425       'id', \r
426       'ext', \r
427       'width', \r
428       'height', \r
429       'filesize', \r
430       'artist_id', \r
431       'md5', \r
432       'uploaded_at', \r
433       'published_at', \r
434       'stopped_at', \r
435       'created_at', \r
436       'updated_at',\r
437     ],\r
438     associations: {\r
439       belongs_to: [\r
440         'artist',\r
441       ],\r
442       has_many: [\r
443       ],\r
444       has_one: [\r
445         'resource_picture',\r
446       ],\r
447     }, \r
448   },\r
449   picture: {\r
450     lists: {\r
451     }, \r
452     columns: [\r
453       'id', \r
454       'original_picture_id', \r
455       'revision', \r
456       'ext', \r
457       'width', \r
458       'height', \r
459       'filesize', \r
460       'artist_id', \r
461       'license_id', \r
462       'md5', \r
463       'artist_name', \r
464       'credit', \r
465       'settings', \r
466       'classname', \r
467       'created_at', \r
468       'updated_at',\r
469     ],\r
470     associations: {\r
471       belongs_to: [\r
472         'license',\r
473         'artist',\r
474       ],\r
475       has_many: [\r
476       ],\r
477       has_one: [\r
478       ],\r
479     }, \r
480   },\r
481   resource_picture: {\r
482     lists: {\r
483     }, \r
484     columns: [\r
485       'id', \r
486       'original_picture_id', \r
487       'revision', \r
488       'ext', \r
489       'width', \r
490       'height', \r
491       'filesize', \r
492       'artist_id', \r
493       'license_id', \r
494       'md5', \r
495       'artist_name', \r
496       'credit', \r
497       'settings', \r
498       'picture_id', \r
499       'classname', \r
500       'created_at', \r
501       'updated_at',\r
502     ],\r
503     associations: {\r
504       belongs_to: [\r
505         'original_picture',\r
506         'license',\r
507         'artist',\r
508       ],\r
509       has_many: [\r
510       ],\r
511       has_one: [\r
512       ],\r
513     }, \r
514   },\r
515   speech_balloon_template: {\r
516     lists: {\r
517       'speech_balloons.by_speech_balloon_template': {\r
518         model_name: 'speech_balloon',\r
519         list_name: 'by_speech_balloon_template',\r
520       }, \r
521       'panels.by_speech_balloon_template': {\r
522         model_name: 'panel',\r
523         list_name: 'by_speech_balloon_template',\r
524       }, \r
525     }, \r
526     columns: [\r
527       'id', \r
528       'name', \r
529       'classname', \r
530       'caption', \r
531       't', \r
532       'system_picture_id', \r
533       'settings', \r
534       'created_at', \r
535       'updated_at',\r
536     ],\r
537     associations: {\r
538       belongs_to: [\r
539         'system_picture',\r
540       ],\r
541       has_many: [\r
542         'speech_balloons.by_speech_balloon_template', \r
543         'panels.by_speech_balloon_template', \r
544       ],\r
545       has_one: [\r
546       ],\r
547     }, \r
548   },\r
549   writing_format: {\r
550     lists: {\r
551       'speeches.by_writing_format': {\r
552         model_name: 'speech',\r
553         list_name: 'by_writing_format',\r
554       }, \r
555     }, \r
556     columns: [\r
557       'id', \r
558       'name', \r
559       'classname', \r
560       'caption', \r
561       'system_picture_id', \r
562       'settings', \r
563       'created_at', \r
564       'updated_at',\r
565     ],\r
566     associations: {\r
567       belongs_to: [\r
568         'system_picture',\r
569       ],\r
570       has_many: [\r
571         'speeches.by_writing_format', \r
572       ],\r
573       has_one: [\r
574       ],\r
575     }, \r
576   },\r
577   license_group: {\r
578     lists: {\r
579       'licenses.by_license_group': {\r
580         model_name: 'license',\r
581         list_name: 'by_license_group',\r
582       }, \r
583     }, \r
584     columns: [\r
585       'id', \r
586       'name', \r
587       'classname', \r
588       'caption', \r
589       'url', \r
590       'created_at', \r
591       'updated_at',\r
592     ],\r
593     associations: {\r
594       belongs_to: [\r
595       ],\r
596       has_many: [\r
597         'licenses.by_license_group', \r
598       ],\r
599       has_one: [\r
600       ],\r
601     }, \r
602   },\r
603   license: {\r
604     lists: {\r
605       'resource_pictures.by_license': {\r
606         model_name: 'resource_picture',\r
607         list_name: 'by_license',\r
608       }, \r
609     }, \r
610     columns: [\r
611       'id', \r
612       'license_group_id', \r
613       'name', \r
614       'caption', \r
615       'system_picture_id', \r
616       'url', \r
617       'settings', \r
618       'credit_pictures', \r
619       'created_at', \r
620       'updated_at',\r
621     ],\r
622     associations: {\r
623       belongs_to: [\r
624         'license_group', \r
625         'system_picture', \r
626       ],\r
627       has_many: [\r
628         'resource_pictures.by_license', \r
629       ],\r
630       has_one: [\r
631       ],\r
632     }, \r
633   },\r
634   author: {\r
635     lists: {\r
636       'scrolls.by_author': {\r
637         model_name: 'scroll',\r
638         list_name: 'by_author',\r
639       }, \r
640       'comics.by_author': {\r
641         model_name: 'comic',\r
642         list_name: 'by_author',\r
643       }, \r
644       'scrolls.by_author': {\r
645         model_name: 'scroll',\r
646         list_name: 'by_author',\r
647       }, \r
648       'stories.by_author': {\r
649         model_name: 'story',\r
650         list_name: 'by_author',\r
651       }, \r
652       'panels.by_author': {\r
653         model_name: 'panel',\r
654         list_name: 'by_author',\r
655       }, \r
656       'panel_pictures.by_author': {\r
657         model_name: 'panel_picture',\r
658         list_name: 'by_author',\r
659       }, \r
660       'speech_balloons.by_author': {\r
661         model_name: 'speech_balloon',\r
662         list_name: 'by_author',\r
663       }, \r
664       'ground_pictures.by_author': {\r
665         model_name: 'ground_picture',\r
666         list_name: 'by_author',\r
667       }, \r
668       'ground_colors.by_author': {\r
669         model_name: 'ground_color',\r
670         list_name: 'by_author',\r
671       }, \r
672     }, \r
673     columns: [\r
674       'id', \r
675       'name', \r
676       'user_id', \r
677       'created_at', \r
678       'updated_at',\r
679     ],\r
680     associations: {\r
681       belongs_to: [\r
682       ],\r
683       has_many: [\r
684         'scrolls.by_author', \r
685         'comics.by_author', \r
686         'scrolls.by_author', \r
687         'stories.by_author', \r
688         'panels.by_author', \r
689         'panel_pictures.by_author', \r
690         'speech_balloons.by_author', \r
691         'ground_pictures.by_author', \r
692         'ground_colors.by_author', \r
693       ],\r
694       has_one: [\r
695       ],\r
696     }, \r
697   },\r
698   artist: {\r
699     lists: {\r
700       'resource_pictures.by_artist': {\r
701         model_name: 'resource_picture',\r
702         list_name: 'by_artist',\r
703       }, \r
704     }, \r
705     columns: [\r
706       'id', \r
707       'name', \r
708       'author_id', \r
709       'created_at', \r
710       'updated_at',\r
711     ],\r
712     associations: {\r
713       belongs_to: [\r
714       ],\r
715       has_many: [\r
716         'resource_pictures.by_artist', \r
717       ],\r
718       has_one: [\r
719       ],\r
720     }, \r
721   },\r
722   system_picture: {\r
723     lists: {\r
724       #'balloons.by_system_picture': {\r
725       #  model_name: 'balloon',\r
726       #  list_name: 'by_system_picture',\r
727       #}, \r
728       'speech_balloon_templates.by_system_picture': {\r
729         model_name: 'speech_balloon_template',\r
730         list_name: 'by_system_picture',\r
731       }, \r
732       'licenses.by_system_picture': {\r
733         model_name: 'license',\r
734         list_name: 'by_system_picture',\r
735       }, \r
736     }, \r
737     columns: [\r
738       'id', \r
739       'ext', \r
740       'width', \r
741       'height', \r
742       'filesize', \r
743       'md5', \r
744       'created_at', \r
745       'updated_at',\r
746     ],\r
747     associations: {\r
748       belongs_to: [\r
749       ],\r
750       has_many: [\r
751         #'balloons.by_system_picture', \r
752         'speech_balloon_templates.by_system_picture', \r
753         'licenses.by_system_picture', \r
754       ],\r
755       has_one: [\r
756       ],\r
757     }, \r
758   },\r
759 }\r