Reader/Feed.bjs
[web.Reader] / Reader / Feed.bjs
1 {
2  "name" : "Feed",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/web.Reader/Reader/Feed.bjs",
6  "permname" : "",
7  "modOrder" : "",
8  "strings" : {
9   "8287b137f969bcae66ca51f7abf14308" : "Show Previously Read ",
10   "d9cd9f7b44e0493c9604e9f8fb7a6c07" : "Mark All Read",
11   "b7436cc90ecf26f15baeead978f09040" : "name of feed",
12   "83ca9a18d9507324a9453c92a7420dd2" : "Report Issue"
13  },
14  "items" : [
15   {
16    "xtype" : "Body",
17    "$ xns" : "Roo.bootstrap",
18    "items" : [
19     {
20      "String tag" : "div",
21      "xtype" : "Element",
22      "$ xns" : "Roo.bootstrap",
23      "String html" : "name of feed",
24      "String style" : "font-weight: bold;\nfont-size: 22px;\n \nposition: absolute;\nleft: 100px;\ntop: 10px;\nz-Index: 1000;\ncolor: white;"
25     },
26     {
27      "$ String brand_href" : "baseURL + '/Feeds'",
28      "String position" : "fixed-top",
29      "xtype" : "NavHeaderbar",
30      "Boolean inverse" : true,
31      "String brand" : "<i class=\"fa fa-chevron-left\"></i> Feeds",
32      "$ xns" : "Roo.bootstrap",
33      "items" : [
34       {
35        "xtype" : "NavGroup",
36        "String align" : "right",
37        "$ xns" : "Roo.bootstrap",
38        "items" : [
39         {
40          "xtype" : "NavItem",
41          "$ xns" : "Roo.bootstrap",
42          "String html" : "Mark All Read"
43         },
44         {
45          "xtype" : "NavItem",
46          "$ xns" : "Roo.bootstrap",
47          "String html" : "Show Previously Read "
48         },
49         {
50          "xtype" : "NavItem",
51          "$ xns" : "Roo.bootstrap",
52          "String html" : "Report Issue"
53         }
54        ]
55       }
56      ]
57     },
58     {
59      "listeners" : {
60       "render" : "function (_self)\n{\n    this.store.load({});\n}"
61      },
62      "boolean striped" : true,
63      "boolean hover" : true,
64      "boolean responsive" : true,
65      "xtype" : "Table",
66      "Boolean thead" : false,
67      "$ xns" : "Roo.bootstrap",
68      "String style" : "margin-top:50px",
69      "items" : [
70       {
71        "listeners" : {
72         "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    o.params.feed = 83;\n}"
73        },
74        "xtype" : "Store",
75        "boolean remoteSort" : true,
76        "$ xns" : "Roo.data",
77        "* prop" : "store",
78        "items" : [
79         {
80          "xtype" : "HttpProxy",
81          "$ xns" : "Roo.data",
82          "String method" : "GET",
83          "* prop" : "proxy",
84          "$ String url" : "baseURL + '/Api/Reader_read'"
85         },
86         {
87          "$ Array fields" : "[\n        \"id\",\n            \"article_id\",\n            \"has_read\",\n            \"article_id_id\" ,\n            \"article_id_published_dt\" ,\n            \"article_id_headline\" ,\n            \"article_id_body\" ,\n            \"article_id_real_url\" ,\n            'article_id_body_txt'\n        ]\n    ",
88          "xtype" : "JsonReader",
89          "$ xns" : "Roo.data",
90          "* prop" : "reader"
91         }
92        ]
93       },
94       {
95        "String dataIndex" : "article_id_headline",
96        "$ Function renderer" : "function(v,x,r) {\n   \n   return String.format(\n            '<h3>{0}</h3><small>{1}</small><i class=\"rss-list-body\">{2}</i>' + \n                '{3}<i class=\"fa fa-chevron-right\"></i>',\n        r.data.article_id_headline,\n        r.data.article_id_published_dt,\n        r.data.article_id_body_txt,\n        r.data.has_read * 1 ? '<span class=\"badge\">Read</span>' : ''\n    );\n            \n \n }",
97        "xtype" : "ColumnModel",
98        "$ xns" : "Roo.grid",
99        "* prop" : "cm[]"
100       }
101      ]
102     }
103    ]
104   }
105  ]
106 }