~vono22/cookiekeeper/1.9.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0"?>
<!--
   - CookieKeeper - a Mozilla add-on
   - (c) 2013-2016 Yvon TANGUY
   -
   - ==================================================================
   - This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/.
   - ==================================================================
   - Dom storage viewer.
 -->


<?xml-stylesheet href="chrome://global/skin/"                                   type="text/css"?>
<?xml-stylesheet href="chrome://cookiekeeper_os/skin/ck.editor.dom_storage.css" type="text/css"?>

<!DOCTYPE dialog [
  <!ENTITY % brandDTD SYSTEM        "chrome://branding/locale/brand.dtd">
  <!ENTITY % cookieKeeperDTD SYSTEM "chrome://cookiekeeper/locale/ck.editor.dtd" >
  %brandDTD;
  %cookieKeeperDTD;
]>

<window id="cookieKeeperEditorDomStorage"
        windowtype="CookieKeeper:DomStorageEditor"
        class="windowDialog" title="DOM Storage"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="gDomStorageEditor.init();"
        onunload="gDomStorageEditor.uninit();"
        sizemode="normal"
        width="640" height="480"
        persist="screenX screenY width height"
        onkeypress="gDomStorageEditor.onWindowKeyPress(event);">

  <stringbundle id="bundleCookieKeeper" src="chrome://cookiekeeper/locale/cookiekeeper.properties" />

  <script type="application/x-javascript">
    Components.utils.import("resource://gre/modules/Services.jsm");
    Components.utils.import("resource://gre/modules/Task.jsm");
    Components.utils.import("resource://gre/modules/Sqlite.jsm");
    Components.utils.import("resource://gre/modules/devtools/Console.jsm");
    Components.utils.import("resource://cookiekeeper/cookiekeeper.jsm");
  </script>
  <script src="chrome://cookiekeeper/content/common.js"                type="application/x-javascript" />
  <script src="chrome://cookiekeeper/content/ck.dom_storage.js"        type="application/x-javascript" />
  <script src="chrome://cookiekeeper/content/ck.editor.dom_storage.js" type="application/x-javascript" />

  <vbox flex="1" class="contentPane">

    <grid flex="1">
      <columns>
        <column/>
        <column flex="1" />
      </columns>
      <rows>
        <row align="center">
          <hbox pack="end"><label id="labelHost" value="&props.domain.label;" /></hbox>
          <deck id="deckHost">
            <hbox id="hbHostView" flex="1">
              <textbox id="tbHostView" readonly="true" accessibleType="101B" flex="1" />
            </hbox>
            <hbox id="hbHostEdit" align="baseline">
              <textbox id="tbHostEdit" accessibleType="101B" flex="1" />
              <label value="&props.protocol.label;" />
              <menulist id="mlProtocol" editable="true">
                <menupopup>
                  <menuitem label="http"  value="http"  description="&menuitem.http.description;" />
                  <menuitem label="https" value="https" description="&menuitem.https.description;"   />
                </menupopup>
              </menulist>
              <label value="&props.port.label;" />
              <menulist id="mlPort" editable="true">
                <menupopup>
                  <menuitem label="80"  value="80"  description="http"  />
                  <menuitem label="443" value="443" description="https" />
                </menupopup>
              </menulist>
            </hbox>
          </deck>
        </row>
        <row align="center">
          <hbox pack="end"><label id="labelName" value="&props.name.label;" /></hbox>
          <textbox id="tbKey" readonly="true" accessibleType="101B" />
        </row>
        <row flex="1" pack="center">
          <hbox flex="1" pack="end"><label id="labelContent" value="&props.value.label;" /></hbox>
          <textbox id="tbContent" flex="1" multiline="true" readonly="true" />
        </row>
        <row align="center">
          <hbox pack="end"><label value="&props.size.label;" /></hbox>
          <hbox align="baseline">
            <label id="labelSize" />
            <separator class="groove" orient="vertical" />
            <textbox id="tbJsonError" readonly="true" class="plain" accessibleType="101B"
                     style="color: red; text-align:right;" flex="1" />
            <separator class="groove" orient="vertical" />
          </hbox>
        </row>
      </rows>
    </grid>

    <hbox align="baseline">
      <deck>
        <button id="btnFormatJson" accessibleType="1002"
                label="&button.format_json.label;" accesskey="&button.format_json.accesskey;"
                oncommand="gDomStorageEditor.onFormatJson();" />
        <button id="btnPackJson" accessibleType="1002"
                label="&button.pack_json.label;" accesskey="&button.pack_json.accesskey;"
                oncommand="gDomStorageEditor.onPackJson();" />
      </deck>
      <button id="btnEdit" accessibleType="1002"
              label="&button.edit.label;" accesskey="&button.edit.accesskey;"
              oncommand="gDomStorageEditor.onEdit();" />
      <button id="btnSave" accessibleType="1002" icon="save"
              label="&button.save.label;" accesskey="&button.save.accesskey;"
              oncommand="gDomStorageEditor.onSave();" />
      <spacer flex="1" />
      <button id="buttonClose" accessibleType="1002"
              oncommand="window.close();" icon="close"
              label="&button.close.label;" accesskey="&button.close.accesskey;" />
      <resizer type="window" dir="bottomend" />
    </hbox>
  </vbox>
</window>