2 "name" : "Pman.Tab.AdminOAuthClient",
3 "parent" : "Pman.Tab.Admin",
5 "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminOAuthClient.bjs",
9 "16f63df432feae9fab6840eabc9d3704" : "No Clients found",
10 "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
11 "76525f0f34b48475e5ca33f71d296f3b" : "Client ID",
12 "27499763cc523271e74f32ff4f740a7f" : "Redirect URI",
13 "1063e38cb53d94d386f21227fcd84717" : "Remove",
14 "0c95cb44ad29b66991e47d3e27fecadc" : "Oauth2 Clients",
15 "734082edf44417dd19cc65943aa65c36" : "Client Secret"
20 "xtype" : "NestedLayoutPanel",
21 "title" : "Oauth2 Clients",
25 "xtype" : "BorderLayout",
31 "xtype" : "LayoutRegion",
38 "|activate" : "function() {\n _this.panel = this;\n \n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
43 "title" : "Oauth2 Clients",
44 "xtype" : "GridPanel",
45 "fitContainer" : true,
47 "tableName" : "core_oauth_clients",
51 "|render" : "function() \n{\n _this.grid = this; \n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
52 "afteredit" : "function (e)\n{\n if(e.originalValue == e.value || !e.value.length){\n return false;\n }\n \n Roo.log('commit it');\n e.record.commit();\n}"
54 "autoExpandColumn" : "redirect_uri",
55 "xtype" : "EditorGrid",
63 "update" : "function (_self, record, operation)\n{\n if (operation != Roo.data.Record.COMMIT) {\n return;\n }\n\n if (!record.data.client_id.length || !record.data.client_secret.length) {\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/Core_oauth_clients',\n method : 'POST',\n params : {\n id : record.data.id,\n client_id : record.data.client_id,\n client_secret : record.data.client_secret,\n redirect_uri : record.data.redirect_uri\n },\n success : function(res) {\n _this.grid.footer.onClick('refresh');\n }\n });\n \n}",
64 "beforeload" : "function (_self, o){\n o.params = o.params || {};\n\n}\n"
68 "$ sortInfo" : "{ field : 'client_id', direction: 'ASC' }",
70 "* prop" : "dataSource",
73 "$ url" : "baseURL + '/Roo/Core_oauth_clients'",
74 "xtype" : "HttpProxy",
82 "xtype" : "JsonReader",
83 "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'client_id',\n 'type': 'string'\n },\n {\n 'name': 'client_secret',\n 'type': 'string'\n },\n {\n 'name': 'redirect_uri',\n 'type': 'string'\n }\n]",
86 "totalProperty" : "total"
97 "|click" : "function()\n{\n \n var nr = _this.grid.ds.reader.newRow({\n id : 0,\n client_id : '',\n client_secret : '',\n redirect_uri : ''\n });\n \n _this.grid.stopEditing();\n _this.grid.ds.insert(_this.grid.ds.getCount(), nr); \n _this.grid.startEditing(_this.grid.ds.getCount()-1, 0);\n}\n"
101 "cls" : "x-btn-text-icon",
102 "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
103 "$ xns" : "Roo.Toolbar"
107 "|click" : "function ()\n{ \n var cs = _this.grid.getSelectionModel().getSelectedCell();\n if (!cs) {\n Roo.MessageBox.alert(\"Error\", \"Select a cell\");\n return;\n }\n _this.grid.stopEditing();\n \n var r = _this.grid.ds.getAt(cs[0]);\n \n Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete this client?\", function (v){\n if (v != 'yes') {\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/Core_oauth_clients',\n method : 'POST',\n params : {\n _delete : r.data.id\n },\n success : function(res) {\n _this.grid.footer.onClick('refresh');\n }\n });\n });\n}"
111 "cls" : "x-btn-text-icon",
112 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
113 "$ xns" : "Roo.Toolbar"
119 "xtype" : "PagingToolbar",
120 "emptyMsg" : "No Clients found",
122 "displayInfo" : true,
126 "xtype" : "ColumnModel",
127 "header" : "Client ID",
129 "$ renderer" : "function(v) { \n return String.format('{0}', v ? v : '');\n}",
130 "$ xns" : "Roo.grid",
131 "* prop" : "colModel[]",
132 "dataIndex" : "client_id",
135 "xtype" : "GridEditor",
136 "$ xns" : "Roo.grid",
140 "xtype" : "TextField",
141 "allowBlank" : false,
142 "$ xns" : "Roo.form",
150 "xtype" : "ColumnModel",
151 "header" : "Client Secret",
153 "$ renderer" : "function(v) { \n return String.format('{0}', v ? v : '');\n}",
154 "$ xns" : "Roo.grid",
155 "* prop" : "colModel[]",
156 "dataIndex" : "client_secret",
159 "xtype" : "GridEditor",
160 "$ xns" : "Roo.grid",
164 "xtype" : "TextField",
165 "allowBlank" : false,
166 "$ xns" : "Roo.form",
174 "xtype" : "ColumnModel",
175 "header" : "Redirect URI",
177 "$ renderer" : "function(v) { \n return String.format('{0}', v ? v : '');\n}",
178 "$ xns" : "Roo.grid",
179 "* prop" : "colModel[]",
180 "dataIndex" : "redirect_uri",
183 "xtype" : "GridEditor",
184 "$ xns" : "Roo.grid",
188 "xtype" : "TextField",
189 "$ xns" : "Roo.form",