OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / local_manifest / filer.js.coffee
1 class LocalManifest.Filer extends ManifestBase.Base\r
2   \r
3   set_default: () ->\r
4     super()\r
5     @item_class = Manifest.item_name_to_model @name\r
6     @json.symbol ||= {}\r
7     @json.caption ||= {}\r
8     @json.summary ||= {}\r
9     @json.icon ||= {}\r
10     @json.date ||= {}\r
11     @json.edit ||= {}\r
12     @json.button ||= {}\r
13     \r
14   init: () ->\r
15     super()\r
16     @symbol = ManifestBase.load_type_args this, @json, 'symbol', LocalManifest.FilerModule.SymbolFactory\r
17     @caption = ManifestBase.load_type_args this, @json, 'caption', LocalManifest.FilerModule.CaptionFactory\r
18     @summary = ManifestBase.load_type_args this, @json, 'summary', LocalManifest.FilerModule.SummaryFactory\r
19     @icon = ManifestBase.load_type_args this, @json, 'icon', LocalManifest.FilerModule.IconFactory\r
20     @date = ManifestBase.load_type_args this, @json, 'date', LocalManifest.FilerModule.DateFactory\r
21     @edit = ManifestBase.load_type_args this, @json, 'edit', LocalManifest.FilerModule.EditFactory\r
22     @button = ManifestBase.load_type_args this, @json, 'button', LocalManifest.FilerModule.ButtonFactory\r
23   \r
24   item_name: () ->\r
25     @name\r
26   \r
27   filer_name: () ->\r
28     @name\r
29   \r
30   constructor: (manifest, name, json, module_name) ->\r
31     super(manifest, name, json, module_name)\r
32     \r
33 class LocalManifest.FilerModule\r
34 \r