Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs
authorEdward <edward@roojs.com>
Wed, 19 Dec 2018 07:34:54 +0000 (15:34 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Dec 2018 07:34:54 +0000 (15:34 +0800)
Pman.Dialog.BAdminStaffTwoFactorQRCode.js

Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs
Pman.Dialog.BAdminStaffTwoFactorQRCode.js

index 91f690c..948b1bc 100644 (file)
      "String html" : "Confirm",
      "* prop" : "buttons[]"
     },
-    {
-     "xtype" : "Row",
-     "$ xns" : "Roo.bootstrap",
-     "items" : [
-      {
-       "xtype" : "Column",
-       "Number xs" : 12,
-       "$ xns" : "Roo.bootstrap"
-      }
-     ]
-    },
     {
      "xtype" : "Row",
      "$ xns" : "Roo.bootstrap",
        "$ xns" : "Roo.bootstrap",
        "items" : [
         {
-         "xtype" : "Container",
+         "xtype" : "Row",
          "$ xns" : "Roo.bootstrap",
-         "String well" : "sm",
-         "String html" : "<ol class='qr-list' start=\"1\">\n    <li>Open Google Authenticator in your phone, and scan this QR code.</li>\n</ol>"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "xtype" : "Row",
-     "$ xns" : "Roo.bootstrap",
-     "items" : [
-      {
-       "String cls" : "text-center",
-       "xtype" : "Column",
-       "Number xs" : 12,
-       "$ xns" : "Roo.bootstrap",
-       "items" : [
+         "items" : [
+          {
+           "xtype" : "Column",
+           "Number xs" : 12,
+           "$ xns" : "Roo.bootstrap",
+           "items" : [
+            {
+             "xtype" : "Container",
+             "$ xns" : "Roo.bootstrap",
+             "String well" : "sm",
+             "String html" : "<ol class='qr-list' start=\"1\">\n    <li>Open Google Authenticator in your phone, and scan this QR code.</li>\n</ol>"
+            }
+           ]
+          }
+         ]
+        },
         {
-         "listeners" : {
-          "render" : "function (_self)\n{\n    _this.qrcode_image = this;\n    \n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n}"
-         },
-         "Boolean imgResponsive" : false,
-         "String cls" : "qr-code",
-         "xtype" : "Img",
-         "String src" : "about:blank",
-         "$ xns" : "Roo.bootstrap"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "xtype" : "Row",
-     "$ xns" : "Roo.bootstrap",
-     "items" : [
-      {
-       "xtype" : "Column",
-       "Number xs" : 12,
-       "$ xns" : "Roo.bootstrap",
-       "items" : [
+         "xtype" : "Row",
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "String cls" : "text-center",
+           "xtype" : "Column",
+           "Number xs" : 12,
+           "$ xns" : "Roo.bootstrap",
+           "items" : [
+            {
+             "listeners" : {
+              "render" : "function (_self)\n{\n    _this.qrcode_image = this;\n    \n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n}"
+             },
+             "Boolean imgResponsive" : false,
+             "String cls" : "qr-code",
+             "xtype" : "Img",
+             "String src" : "about:blank",
+             "$ xns" : "Roo.bootstrap"
+            }
+           ]
+          }
+         ]
+        },
         {
-         "xtype" : "Container",
+         "xtype" : "Row",
          "$ xns" : "Roo.bootstrap",
-         "String well" : "sm",
-         "String html" : "<ol class='qr-list' start=\"2\">\n    <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>\n</ol>"
+         "items" : [
+          {
+           "xtype" : "Column",
+           "Number xs" : 12,
+           "$ xns" : "Roo.bootstrap",
+           "items" : [
+            {
+             "xtype" : "Container",
+             "$ xns" : "Roo.bootstrap",
+             "String well" : "sm",
+             "String html" : "<ol class='qr-list' start=\"2\">\n    <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>\n</ol>"
+            }
+           ]
+          }
+         ]
         }
        ]
       }
index 22c84e3..5e3e445 100644 (file)
@@ -161,19 +161,6 @@ Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype, {
      }
     ],
     items  : [
-     {
-      xtype : 'Row',
-      xns : Roo.bootstrap,
-      '|xns' : 'Roo.bootstrap',
-      items  : [
-       {
-        xtype : 'Column',
-        xs : 12,
-        xns : Roo.bootstrap,
-        '|xns' : 'Roo.bootstrap'
-       }
-      ]
-     },
      {
       xtype : 'Row',
       xns : Roo.bootstrap,
@@ -186,74 +173,89 @@ Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype, {
         '|xns' : 'Roo.bootstrap',
         items  : [
          {
-          xtype : 'Container',
-          html : _this._strings['dc7b0c7f9d3941532bda06cd58eec7bd'] /* 
-          <ol class='qr-list' start="1">          
-    <li>Open Google Authenticator in your phone, and scan this QR code.</li>          
-</ol>
-          */ ,
-          well : 'sm',
+          xtype : 'Row',
           xns : Roo.bootstrap,
-          '|xns' : 'Roo.bootstrap'
-         }
-        ]
-       }
-      ]
-     },
-     {
-      xtype : 'Row',
-      xns : Roo.bootstrap,
-      '|xns' : 'Roo.bootstrap',
-      items  : [
-       {
-        xtype : 'Column',
-        cls : 'text-center',
-        xs : 12,
-        xns : Roo.bootstrap,
-        '|xns' : 'Roo.bootstrap',
-        items  : [
+          '|xns' : 'Roo.bootstrap',
+          items  : [
+           {
+            xtype : 'Column',
+            xs : 12,
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap',
+            items  : [
+             {
+              xtype : 'Container',
+              html : _this._strings['dc7b0c7f9d3941532bda06cd58eec7bd'] /* 
+              <ol class='qr-list' start="1">              
+    <li>Open Google Authenticator in your phone, and scan this QR code.</li>              
+</ol>
+              */ ,
+              well : 'sm',
+              xns : Roo.bootstrap,
+              '|xns' : 'Roo.bootstrap'
+             }
+            ]
+           }
+          ]
+         },
          {
-          xtype : 'Img',
-          cls : 'qr-code',
-          imgResponsive : false,
-          src : 'about:blank',
-          listeners : {
-           render : function (_self)
-            {
-                _this.qrcode_image = this;
-                
-                this.el.setVisibilityMode(Roo.Element.DISPLAY);
-                
-            }
-          },
+          xtype : 'Row',
           xns : Roo.bootstrap,
-          '|xns' : 'Roo.bootstrap'
-         }
-        ]
-       }
-      ]
-     },
-     {
-      xtype : 'Row',
-      xns : Roo.bootstrap,
-      '|xns' : 'Roo.bootstrap',
-      items  : [
-       {
-        xtype : 'Column',
-        xs : 12,
-        xns : Roo.bootstrap,
-        '|xns' : 'Roo.bootstrap',
-        items  : [
+          '|xns' : 'Roo.bootstrap',
+          items  : [
+           {
+            xtype : 'Column',
+            cls : 'text-center',
+            xs : 12,
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap',
+            items  : [
+             {
+              xtype : 'Img',
+              cls : 'qr-code',
+              imgResponsive : false,
+              src : 'about:blank',
+              listeners : {
+               render : function (_self)
+                {
+                    _this.qrcode_image = this;
+                    
+                    this.el.setVisibilityMode(Roo.Element.DISPLAY);
+                    
+                }
+              },
+              xns : Roo.bootstrap,
+              '|xns' : 'Roo.bootstrap'
+             }
+            ]
+           }
+          ]
+         },
          {
-          xtype : 'Container',
-          html : _this._strings['5d412a3d8de0189df31c8f331e2e6630'] /* 
-          <ol class='qr-list' start="2">          
-    <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>          
-</ol>
-          */ ,
-          well : 'sm',
+          xtype : 'Row',
           xns : Roo.bootstrap,
-          '|xns' : 'Roo.bootstrap'
+          '|xns' : 'Roo.bootstrap',
+          items  : [
+           {
+            xtype : 'Column',
+            xs : 12,
+            xns : Roo.bootstrap,
+            '|xns' : 'Roo.bootstrap',
+            items  : [
+             {
+              xtype : 'Container',
+              html : _this._strings['5d412a3d8de0189df31c8f331e2e6630'] /* 
+              <ol class='qr-list' start="2">              
+    <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>              
+</ol>
+              */ ,
+              well : 'sm',
+              xns : Roo.bootstrap,
+              '|xns' : 'Roo.bootstrap'
+             }
+            ]
+           }
+          ]
          }
         ]
        }