OSDN Git Service

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