X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmanifest%2Fwork%2Fprofilers.js.coffee.erb;h=b047fd16517709082ca733df4973f8cbe2fc4b10;hb=84a5b0cfc30cd42930ee80551ba389b223643dc3;hp=d8c63d8e8d72e6dabe7f609c5dbc775c04f50215;hpb=86f28e7c3390194b98ce81b16ca400df83151586;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/manifest/work/profilers.js.coffee.erb b/app/assets/javascripts/manifest/work/profilers.js.coffee.erb index d8c63d8e..b047fd16 100644 --- a/app/assets/javascripts/manifest/work/profilers.js.coffee.erb +++ b/app/assets/javascripts/manifest/work/profilers.js.coffee.erb @@ -1,6 +1,11 @@ #マニフェスト @profilers = { scroll: { + columns: { + visible: { + type: 'source', + }, + }, column_names: [ 'title', 'description', @@ -161,14 +166,19 @@ }, }, speech_balloon: { + columns: { + speech_balloon_template_settings: { + type: 'extend', + }, + }, column_names: [ 'panel_id', + 'caption', 'speech_balloon_template_id', - 'classname', + 'speech_balloon_template_classname', 'z', 't', - 'settings', - 'caption', + 'speech_balloon_template_settings' ], associations: { belongs_to: [ @@ -181,9 +191,17 @@ }, }, speech: { + columns: { + speech_balloon_template_settings: { + type: 'extend', + }, + }, column_names: [ 'speech_balloon_id', + 'speech_balloon_template_id', + 'speech_balloon_template_classname', 'writing_format_id', + 'writing_format_classname', 'content', 'font_size', 'text_align', @@ -193,7 +211,8 @@ 'width', 'height', 'quotes', - 'settings', + 'speech_balloon_template_settings', + 'writing_format_settings', ], associations: { belongs_to: [ @@ -203,15 +222,22 @@ }, }, balloon: { + columns: { + speech_balloon_template_settings: { + type: 'extend', + }, + }, column_names: [ 'speech_balloon_id', + 'speech_balloon_template_id', + 'speech_balloon_template_classname', 'system_picture_id', 'x', 'y', 'width', 'height', 'r', - 'settings', + 'speech_balloon_template_settings', ], associations: { belongs_to: [ @@ -276,6 +302,17 @@ }, }, picture: { + columns: { + license_group_settings: { + type: 'extend', + }, + credit_picture_settings: { + type: 'extend', + }, + license_settings: { + type: 'extend', + }, + }, column_names: [ 'original_picture_id', 'revision', @@ -287,9 +324,10 @@ 'license_id', 'md5', 'artist_name', - 'credit', - 'settings', - 'classname', + 'license_group_settings', + 'credit_picture_settings', + 'license_settings', + 'license_group_classname', ], associations: { belongs_to: [ @@ -299,9 +337,28 @@ }, }, resource_picture: { + columns: { + license_group_settings: { + type: 'extend', + args: { + boost_name: 'license_group', + }, + }, + credit_picture_settings: { + type: 'extend', + args: { + boost_name: 'credit_picture', + }, + }, + license_settings: { + type: 'extend', + args: { + boost_name: 'license', + }, + }, + }, column_names: [ 'original_picture_id', - 'revision', 'ext', 'width', 'height', @@ -310,10 +367,11 @@ 'license_id', 'md5', 'artist_name', - 'credit', - 'settings', + 'license_group_settings', + 'credit_picture_settings', + 'license_settings', 'picture_id', - 'classname', + 'license_group_classname', ], associations: { belongs_to: [ @@ -324,6 +382,11 @@ }, }, speech_balloon_template: { + columns: { + settings: { + type: 'json', + }, + }, column_names: [ 'name', 'classname', @@ -332,6 +395,83 @@ 'system_picture_id', 'settings', ], + extend_settings: { + circle_speech_balloon_speech_balloon: { + columns: { + }, + column_names: [ + ], + }, + circle_speech_balloon_balloon: { + columns: { + }, + column_names: [ + ], + }, + circle_speech_balloon_speech: { + columns: { + }, + column_names: [ + ], + }, + plain_speech_balloon_speech_balloon: { + columns: { + }, + column_names: [ + ], + }, + plain_speech_balloon_balloon: { + columns: { + }, + column_names: [ + ], + }, + plain_speech_balloon_speech: { + columns: { + }, + column_names: [ + ], + }, + square_speech_balloon_speech_balloon: { + columns: { + }, + column_names: [ + ], + }, + square_speech_balloon_balloon: { + columns: { + }, + column_names: [ + ], + }, + square_speech_balloon_speech: { + columns: { + }, + column_names: [ + ], + }, + test_speech_balloon_speech_balloon: { + columns: { + }, + column_names: [ + 'a', + ], + }, + test_speech_balloon_balloon: { + columns: { + }, + column_names: [ + 'b', + ], + }, + test_speech_balloon_speech: { + columns: { + }, + column_names: [ + 'c', + ], + }, + }, associations: { belongs_to: [ 'system_picture', @@ -339,6 +479,11 @@ }, }, writing_format: { + columns: { + settings: { + type: 'json', + }, + }, column_names: [ 'name', 'classname', @@ -346,6 +491,14 @@ 'system_picture_id', 'settings', ], + extend_settings: { + pettanr_simple_format_writing_format: { + columns: { + }, + column_names: [ + ], + }, + }, associations: { belongs_to: [ 'system_picture', @@ -362,6 +515,222 @@ 'caption', 'url', ], + extend_settings: { + pettanr_creative_commons_v30_licenses_license: { + columns: { + }, + column_names: [ + 'open', + 'commercial', + 'official', + 'attribution', + 'derive', + 'thumbnail', + 'gif_convert', + 'reverse', + 'sync_vh', + 'overlap', + ], + }, + pettanr_creative_commons_v30_licenses_credit_picture: { + columns: { + }, + column_names: [ + 'source_url_btn_id', + 'source_url_off_btn_id', + ], + }, + pettanr_creative_commons_v30_licenses_attribute: { + columns: { + }, + column_names: [ + 'license_id', + 'system_picture_id', + 'artist_name', + 'caption', + 'artist_url', + 'source_url', + 'more_permission_url', + ], + }, + pettanr_pettan_commons_v01_licenses_license: { + columns: { + }, + column_names: [ + 'open', + 'commercial', + 'official', + 'attribution', + 'derive', + 'thumbnail', + 'gif_convert', + 'reverse', + 'sync_vh', + 'overlap', + ], + }, + pettanr_pettan_commons_v01_licenses_credit_picture: { + columns: { + }, + column_names: [ + 'source_url_btn_id', + 'source_url_off_btn_id', + ], + }, + pettanr_pettan_commons_v01_licenses_attribute: { + columns: { + }, + column_names: [ + 'license_id', + 'system_picture_id', + 'artist_name', + 'caption', + 'sources', + ], + }, + pettanr_pettan_protected_v01_licenses_license: { + columns: { + }, + column_names: [ + 'open', + 'commercial', + 'official', + 'attribution', + 'derive', + 'thumbnail', + 'gif_convert', + 'reverse', + 'sync_vh', + 'overlap', + 'trackback', + ], + }, + pettanr_pettan_protected_v01_licenses_credit_picture: { + columns: { + }, + column_names: [ + 'source_url_btn_id', + 'source_url_off_btn_id', + ], + }, + pettanr_pettan_protected_v01_licenses_attribute: { + columns: { + }, + column_names: [ + 'license_id', + 'system_picture_id', + 'artist_name', + 'caption', + 'sources', + ], + }, + pettanr_pettan_public_v01_licenses_license: { + columns: { + }, + column_names: [ + 'open', + 'commercial', + 'official', + 'attribution', + 'derive', + 'thumbnail', + 'gif_convert', + 'reverse', + 'sync_vh', + 'overlap', + 'trackback', + ], + }, + pettanr_pettan_public_v01_licenses_credit_picture: { + columns: { + }, + column_names: [ + 'source_url_btn_id', + ], + }, + pettanr_pettan_public_v01_licenses_attribute: { + columns: { + }, + column_names: [ + 'license_id', + 'system_picture_id', + 'artist_name', + 'caption', + 'sources', + ], + }, + pettanr_public_domain_v01_licenses_license: { + columns: { + }, + column_names: [ + 'open', + 'commercial', + 'official', + 'attribution', + 'derive', + 'thumbnail', + 'gif_convert', + 'reverse', + 'sync_vh', + 'overlap', + 'trackback', + ], + }, + pettanr_public_domain_v01_licenses_credit_picture: { + columns: { + }, + column_names: [ + 'source_url_btn_id', + 'source_url_off_btn_id', + ], + }, + pettanr_public_domain_v01_licenses_attribute: { + columns: { + }, + column_names: [ + 'license_id', + 'system_picture_id', + 'artist_name', + 'source_url', + 'note', + ], + }, + pettanr_unknown_v01_licenses_license: { + columns: { + }, + column_names: [ + 'open', + 'commercial', + 'official', + 'attribution', + 'derive', + 'thumbnail', + 'gif_convert', + 'reverse', + 'sync_vh', + 'overlap', + 'trackback', + ], + }, + pettanr_unknown_v01_licenses_credit_picture: { + columns: { + }, + column_names: [ + 'source_url_btn_id', + 'source_url_off_btn_id', + ], + }, + pettanr_unknown_v01_licenses_attribute: { + columns: { + }, + column_names: [ + 'license_id', + 'system_picture_id', + 'source_url', + 'note', + ], + }, + }, associations: { has_many: [ 'licenses.by_license_group', @@ -369,14 +738,67 @@ }, }, license: { + columns: { + license_group_settings: { + type: 'extend', + args: { + boost_name: 'license_group', + }, + }, + credit_picture_settings: { + type: 'extend', + args: { + boost_name: 'credit_picture', + }, + }, + }, + extend_settings: { + pettanr_creative_commons_v30_licenses_attribute: { + columns: { + }, + column_names: [ + ], + }, + pettanr_pettan_commons_v01_licenses_attribute: { + columns: { + }, + column_names: [ + ], + }, + pettanr_pettan_protected_v01_licenses_attribute: { + columns: { + }, + column_names: [ + ], + }, + pettanr_pettan_public_v01_licenses_attribute: { + columns: { + }, + column_names: [ + ], + }, + pettanr_public_domain_v01_licenses_attribute: { + columns: { + }, + column_names: [ + ], + }, + pettanr_unknown_v01_licenses_attribute: { + columns: { + }, + column_names: [ + ], + }, + }, column_names: [ 'license_group_id', + 'license_group_classname', 'name', 'caption', 'system_picture_id', 'url', - 'settings', - 'credit_pictures', + 'license_group_settings', + 'credit_picture_settings', ], associations: { belongs_to: [