main.js 945 B

123456789101112131415161718192021222324252627282930313233
  1. Ext.define('cn.tonyandmoney.app.Instance', {
  2. extend: 'SYNO.SDS.AppInstance',
  3. appWindowName: 'cn.tonyandmoney.app.Main',
  4. constructor: function() {
  5. this.callParent(arguments);
  6. }
  7. });
  8. Ext.define('cn.tonyandmoney.app.Main', {
  9. extend: 'SYNO.SDS.AppWindow',
  10. appInstance: null,
  11. constructor: function(cfg) {
  12. this.appInstance = cfg.appInstance;
  13. var config = Ext.apply({
  14. resizable: true,
  15. maximizable: true,
  16. minimizable: true,
  17. width: 1200,
  18. height: 800,
  19. layout: 'fit',
  20. items: [
  21. new Ext.BoxComponent({
  22. height: "100%",
  23. html: '<iframe src="/webman/3rdparty/WebToolBox/index.html”" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%"></iframe>'
  24. })
  25. ]
  26. }, cfg);
  27. this.callParent([config]);
  28. }
  29. });