OSDN Git Service

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