File: password_manager_app.html

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,811; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (159 lines) | stat: -rw-r--r-- 4,835 bytes parent folder | download | duplicates (5)
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<style include="cr-page-host-style cr-shared-style shared-style">
  :host {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  #container {
    align-items: flex-start;
    display: flex;
    flex: 1;
    overflow: overlay;
    position: relative;
  }

  #sidebar,
  #content,
  #space-holder {
    flex: 1 1 0;
  }

  #space-holder {
    min-width: 56px;
  }

  #sidebar {
    height: 100%;
    position: sticky;
    top: 0;
    /* Ensure #sidebar stacking order is above page sections. */
    /* This is necessary for password manager tutorial. */
    z-index: 1;
  }

  #content {
    flex-basis: var(--password-manager-main-basis);
    height: 100%;
  }

  #checkupDetails,
  #passwordChange {
    height: 100%;
  }

  checkup-details-section {
    height: auto !important;
    min-height: 100%;
  }

  passwords-section,
  settings-section,
  password-details-section {
    padding-bottom: 28px;
  }

  /* The breakpoint of 1036px was decided on by the sum of sidebar width (300px),
   * search bar width (680px) and help button (56px) width with very large font. 
   * Smaller value will force overlapping of search bar and page tittle.
   */
  @media (max-width: 1036px) {
    #content {
      min-width: auto;
      /* Add some padding to make room for borders and to prevent focus
       * indicators from being cropped. */
      padding: 0 3px;
    }
  }

  @media not (max-width: 1036px) {
    #content * {
      min-width: 680px;
    }
  }

  #cr-container-shadow-top {
    /* Needs to be higher than #container's z-index to appear above
      * scrollbars. */
    z-index: 2;
  }

  #toast-message {
    display: flex;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  password-manager-side-bar {
    min-width: var(--side-bar-width);
  }
</style>
<settings-prefs id="prefs" prefs="{{prefs_}}"></settings-prefs>
<password-manager-toolbar id="toolbar" narrow="[[narrow_]]" page-name="[[pageTitle_]]"
    on-search-enter-click="onSearchEnterClick_">
</password-manager-toolbar>
<div id="container" role="group">
  <password-manager-side-bar id="sidebar" hidden$="[[narrow_]]">
  </password-manager-side-bar>
  <cr-page-selector id="content" attr-for-selected="path"
      selected="[[selectedPage_]]"
      on-iron-select="onIronSelect_">
    <passwords-section id="passwords" path="passwords" prefs="{{prefs_}}"
        focus-config="[[focusConfig_]]" class="cr-centered-card-container"
        on-passwords-moved="onPasswordsMoved_">
    </passwords-section>
    <checkup-section id="checkup" path="checkup" focus-config="[[focusConfig_]]"
        class="cr-centered-card-container">
    </checkup-section>
    <settings-section id="settings" path="settings" prefs="{{prefs_}}"
        class="cr-centered-card-container"
        on-passwords-moved="onPasswordsMoved_">
    </settings-section>
    <div id="passwordDetails" path="password-details">
      <template is="dom-if" restamp
          if="[[showPage(selectedPage_, pagesValueEnum_.PASSWORD_DETAILS)]]">
        <password-details-section class="cr-centered-card-container"
            on-password-removed="onPasswordRemoved_" prefs="{{prefs_}}"
            on-passkey-removed="onPasskeyRemoved_"
            on-passwords-moved="onPasswordsMoved_"
            on-value-copied="onValueCopied_">
        </password-details-section>
      </template>
    </div>
    <div id="checkupDetails" path="checkup-details">
      <template is="dom-if" restamp
          if="[[showPage(selectedPage_, pagesValueEnum_.CHECKUP_DETAILS)]]">
        <checkup-details-section class="cr-centered-card-container"
            on-password-removed="onPasswordRemoved_" prefs="{{prefs_}}">
        </checkup-details-section>
      </template>
    </div>
    <div id="passwordChange" path="password-change">
      <template is="dom-if" restamp
          if="[[showPage(selectedPage_, pagesValueEnum_.PASSWORD_CHANGE)]]">
        <password-change-details class="cr-centered-card-container">
        </password-change-details>
      </template>
    </div>
  </cr-page-selector>
  <!-- An additional child of the flex #container to take up space,
      aligned with the right-hand child of the flex toolbar. -->
  <div id="space-holder" hidden$="[[narrow_]]"></div>
<div>
<cr-drawer id="drawer" heading="$i18n{passwordManagerString}"
    align="$i18n{textdirection}">
  <div slot="body">
    <template is="dom-if" id="drawerTemplate">
      <password-manager-side-bar id="drawerSidebar"></password-manager-side-bar>
    </template>
  </div>
</cr-drawer>
<cr-toast id="toast" duration="5000">
  <span id="toast-message">[[toastMessage_]]</span>
  <cr-button id="undo" aria-label="$i18n{undoDescription}"
          on-click="onUndoButtonClick_" hidden$="[[!showUndo_]]">
    $i18n{undoRemovePassword}
  </cr-button>
</cr-toast>