File tree 5 files changed +85
-0
lines changed
5 files changed +85
-0
lines changed Original file line number Diff line number Diff line change 12
12
! /apps /covid /index.html
13
13
! /apps /covid /** /* .mjs
14
14
! /apps /covid /neo-config.json
15
+ ! /apps /email /index.html
16
+ ! /apps /email /** /* .mjs
17
+ ! /apps /email /neo-config.json
15
18
! /apps /finance /index.html
16
19
! /apps /finance /** /* .mjs
17
20
! /apps /finance /neo-config.json
Original file line number Diff line number Diff line change
1
+ import MainContainer from './view/MainContainer.mjs' ;
2
+
3
+ export const onStart = ( ) => Neo . app ( {
4
+ mainView : MainContainer ,
5
+ name : 'Email'
6
+ } ) ;
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE HTML>
2
+ < html >
3
+ < head >
4
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
+ < meta charset ="UTF-8 ">
6
+ < title > Email</ title >
7
+ </ head >
8
+ < body >
9
+ < script src ="../../src/MicroLoader.mjs " type ="module "> </ script >
10
+ </ body >
11
+ </ html >
Original file line number Diff line number Diff line change
1
+ {
2
+ "appPath" : " apps/email/app.mjs" ,
3
+ "basePath" : " ../../" ,
4
+ "environment" : " development" ,
5
+ "mainPath" : " ./Main.mjs" ,
6
+ "themes" : [
7
+ " neo-theme-light"
8
+ ]
9
+ }
Original file line number Diff line number Diff line change
1
+ import Component from '../../../src/component/Base.mjs' ;
2
+ import TabContainer from '../../../src/tab/Container.mjs' ;
3
+ import Viewport from '../../../src/container/Viewport.mjs' ;
4
+
5
+ /**
6
+ * @class Email.view.MainContainer
7
+ * @extends Neo.container.Viewport
8
+ */
9
+ class MainContainer extends Viewport {
10
+ static config = {
11
+ /**
12
+ * @member {String} className='Email.view.MainContainer'
13
+ * @protected
14
+ */
15
+ className : 'Email.view.MainContainer' ,
16
+ /**
17
+ * @member {Boolean} autoMount=true
18
+ */
19
+ autoMount : true ,
20
+ /**
21
+ * @member {Object[]} items
22
+ */
23
+ items : [ {
24
+ module : TabContainer ,
25
+ height : 300 ,
26
+ width : 500 ,
27
+ style : { flex : 'none' , margin : '20px' } ,
28
+
29
+ itemDefaults : {
30
+ module : Component ,
31
+ cls : [ 'neo-examples-tab-component' ] ,
32
+ style : { padding : '20px' } ,
33
+ } ,
34
+
35
+ items : [ {
36
+ header : {
37
+ iconCls : 'fa fa-home' ,
38
+ text : 'Tab 1'
39
+ } ,
40
+ vdom : { innerHTML : 'Welcome to your new Neo App.' }
41
+ } , {
42
+ header : {
43
+ iconCls : 'fa fa-play-circle' ,
44
+ text : 'Tab 2'
45
+ } ,
46
+ vdom : { innerHTML : 'Have fun creating something awesome!' }
47
+ } ]
48
+ } ] ,
49
+ /*
50
+ * @member {Object} layout={ntype:'fit'}
51
+ */
52
+ layout : { ntype : 'fit' }
53
+ }
54
+ }
55
+
56
+ export default Neo . setupClass ( MainContainer ) ;
You can’t perform that action at this time.
0 commit comments