Sha256: d4f30355b389d80ba2ac05350eb8df6be6779212dfdc8c8c73d34251884ce97f
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
class Skr.Extension extends Lanes.Extensions.Base identifier: "skr" # Data that is provided by lib/skr/extension.rb's # client_bootstrap_data method ends up here setBootstrapData: (data) -> Lanes.Models.Query.LIKE_QUERY_TYPES.push 'visible_id' Skr.Models.GlAccount.initialize( accounts: data.gl_accounts default_ids: data.default_gl_account_ids, ) Skr.Models.Location.initialize( locations: data.locations ) Skr.Models.PaymentTerm.initialize( payment_terms: data.payment_terms ) for type, choices of data.templates klass = Skr.Models[_.classify(type)] if klass klass.Templates = choices else console.log "Unable to find model for #{type}" rootComponent: (viewport) -> Lanes.Workspace.Layout preferenceElement: (props) -> React.createElement(SC.UserPreferences, key: 'skr') settingsElement: (props) -> React.createElement(SC.SystemSettings, key: 'skr')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.3.0 | client/skr/Extension.coffee |
stockor-0.2 | client/skr/Extension.coffee |