X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmanifest%2Fwork%2Fsystem_resources.js.coffee.erb;h=cb97932181056e3533589f504224c22b96c278ed;hb=0b7174946e26683127e4b4eebda9a2cf87e64b78;hp=43664a87d377e0d8a0590aeed81603d33a761b54;hpb=4d910560a32d41372815a67f79a654b6352fd679;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/manifest/work/system_resources.js.coffee.erb b/app/assets/javascripts/manifest/work/system_resources.js.coffee.erb index 43664a87..cb979321 100644 --- a/app/assets/javascripts/manifest/work/system_resources.js.coffee.erb +++ b/app/assets/javascripts/manifest/work/system_resources.js.coffee.erb @@ -2,21 +2,28 @@ @system_resources = { engine_resources: { license_groups: { - PettanrCreativeCommonsV30Licenses: 'pettanr_creative_commons_v30_licenses', - PettanrPettanCommonsV01Licenses: 'pettanr_pettan_commons_v01_licenses', - PettanrPettanProtectedV01Licenses: 'pettanr_pettan_protected_v01_licenses', - PettanrPettanPublicV01Licenses: 'pettanr_pettan_public_v01_licenses', - PettanrPublicDomainV01Licenses: 'pettanr_public_domain_v01_licenses', - PettanrUnknownV01Licenses: 'pettanr_unknown_v01_licenses', + resource_items: { + PettanrCreativeCommonsV30Licenses: 'pettanr_creative_commons_v30_licenses', + PettanrPettanCommonsV01Licenses: 'pettanr_pettan_commons_v01_licenses', + PettanrPettanProtectedV01Licenses: 'pettanr_pettan_protected_v01_licenses', + PettanrPettanPublicV01Licenses: 'pettanr_pettan_public_v01_licenses', + PettanrPublicDomainV01Licenses: 'pettanr_public_domain_v01_licenses', + PettanrUnknownV01Licenses: 'pettanr_unknown_v01_licenses', + }, }, speech_balloon_templates: { - CircleSpeechBalloon: 'circle_speech_balloon', - PlainSpeechBalloon: 'plain_speech_balloon', - SquareSpeechBalloon: 'square_speech_balloon', - # TestSpeechBalloon: 'test_speech_balloon', + resource_items: { + CircleSpeechBalloon: 'circle_speech_balloon', + PlainSpeechBalloon: 'plain_speech_balloon', + SquareSpeechBalloon: 'square_speech_balloon', + TestSpeechBalloon: 'test_speech_balloon', + }, }, writing_formats: { - SimpleFormat: 'pettanr_simple_format', + has_route: 0, + resource_items: { + PettanrSimpleFormat: 'pettanr_simple_format', + }, }, }, elements: { @@ -25,51 +32,7 @@ GroundPicture: 'ground_pictures', GroundColor: 'ground_colors', }, -} -@magic_numbers = { - run_mode: 1, - thumbnail_width: 64, - thumbnail_height: 64, - profile: { - users: { - caption: "ペンギン王国", - url: "http://localhost:3001/", - description: "ペンギン王国はペンギン素材を豊富に用意したペンギンマニアのサイトです。", - }, - admins: { - caption: "site name for admin", - url: "http://your.site.url/admins/", - description: "admin register", - }, - demand_users: { - caption: "provider name", - url: "http://your.site.url/demanders/", - description: "provider description", - }, - }, - provider_sources: [ - 'http://sourceforge.jp/projects/pettanr/wiki/ProviderSource/attach/provider_source.json' - ], -} -@select_items = { - model_loader: { - writing_format_items: { - model_name: 'writing_format', - list_name: 'select_items', - caption: 'caption' - }, - license_group_items: { - model_name: 'license_group', - list_name: 'select_items', - caption: 'caption' - }, - speech_balloon_template_items: { - model_name: 'speech_balloon_template', - list_name: 'select_items', - caption: 'caption' - }, - }, - magic_number: { + select_items: { provider_status_status_items: [ ['select_items.provider_status.status.waiting', 0], ['select_items.provider_status.status.receiving', 1], @@ -127,5 +90,5 @@ ['select_items.speeches.text_align.right', 2], ['select_items.speeches.text_align.center', 3], ], - }, + } }