Welcome to mirror list, hosted at ThFree Co, Russian Federation.

settings.html - github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ad895c95db826947f40ecc1ab778be9363bdab73 (plain)
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<!DOCTYPE html>
<html>

<head>

    <script>
        window.jQuery = window.$ = require('jquery');
    </script>
    <link rel="stylesheet" href="browsers/design.css">
    <script src="libs/polyfill.js"></script>
    <script src="libs/dialog-polyfill.js"></script>
    <script src="libs/material.js"></script>
    <script src="utils/utils.js"></script>
    <script src="compatibility/nextcloud/store.js"></script>
    <script src="compatibility/electron/store.js"></script>
    <script src="libs/jquery.min.js"></script>
    <script src="requests/request_builder.js"></script>
    <script src="compatibility/electron/request_builder.js"></script>

    <script src="compatibility/compatibility.js"></script>
    <script src="compatibility/compatibitlity-settings.js"></script>

    <script src="reader/assets/scripts/jquery-ui.min.js"></script>
    <link rel="stylesheet" href="libs/material.indigo-pink.min.css">
    <link rel="stylesheet" href="libs/polyfill.css">
    <script src="settings/ui_settings_helper.js"></script>

    <!-- Material Design icon font -->
    <link rel="stylesheet" href="libs/material-icons.css">
    <script src="recent/recent_db_manager.js"></script>
    <link rel="stylesheet" href="css/design-common.css">

</head>

<body>
    <style>
        .settings-button {
            cursor: pointer;
        }

        .frame {
            width: 100%;
            height: 100%;
            max-width: 400px;
            margin: auto;
        }

        iframe {
            height: 100%;
        }

        #frame-container {
            width: 100%;
            height: 100%;
            position: fixed;
            background: rgba(146, 146, 146, 0.37);
            z-index: 100;
            /* margin auto not working..*/
            text-align: center;
            display: none;
        }

        .settings-box {
            margin-top: 15px;
            margin-left: calc(50% - 200px);
            width: 400px;
        }

        .theme-selector {
            width: 100%;
            padding-top: 15px;
            padding-bottom: 15px;
            border-bottom: 1px rgba(128, 128, 128, 0.2) solid;

        }

        .theme-selector .mdl-radio {
            width: 100%;
        }

        .theme-selector img {
            max-width: 100%;
            margin-top: 20px;

        }

        #theme-dialog {
            margin-top: 20px;
            overflow-y: auto;
            margin-bottom: 20px;
            max-height: 100%;

        }

        .mdl-checkbox.is-upgraded {
            padding-left: 0;
        }

        .mdl-checkbox__label {
            font-size: unset;
            left: 0;
        }

        .mdl-checkbox__ripple-container {
            left: unset;
            right: -10;
        }

        .mdl-checkbox__box-outline {
            left: unset;
            right: 0;
        }

        .mdl-checkbox__focus-helper {
            left: unset;
            right: 0;
        }
    </style>

    <!-- The drawer is always open in large screens. The header is always shown,
      even in small screens. -->
    <div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer
                mdl-layout--fixed-header">
        <header class="mdl-layout__header">
            <div class="mdl-layout__header-row">

                <span class="mdl-layout-title">Settings</span>
                <div class="mdl-layout-spacer"></div>
                <div style="position:absolute; right:0px;" id="right-bar">
                </div>

        </header>
        <div class="mdl-layout__drawer">
            <nav class="mdl-navigation">
                <a class="mdl-navigation__link" href="./" id="recent-button">Recent</a>
                <a class="mdl-navigation__link" href="./" id="browser-button">Browser</a>
                <a class="mdl-navigation__link">Settings</a>
            </nav>
        </div>
        <main class="mdl-layout__content" id="page-container" style="text-align:center;">
            <dialog class="mdl-dialog" id="theme-dialog">
                <div class="content" id="theme-list">
                </div>


            </dialog>
            <table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp settings-box"
                style="">
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="account">
                        My account
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="select_note_path_button">
                        Select note path
                        <br />
                        <span id="current_root_path"></span>
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="cloudsync">
                        Get mobile, desktop or online app
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button">
                        <label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect carnet-settings-button"
                            for="browser_default_view">
                            <input type="checkbox" id="browser_default_view" class="mdl-checkbox__input">
                            <span class="mdl-checkbox__label" data-i18n="start_with_browser_view">Start with browser
                                view</span>
                        </label>
                    </td>
                </tr>

                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button">
                        <label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect carnet-settings-button"
                            for="use_note_folders">
                            <input type="checkbox" id="use_note_folders" class="mdl-checkbox__input">
                            <span class="mdl-checkbox__label" data-i18n="use_note_folders">Use note folders
                                (Alpha)</span>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button">
                        <label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect carnet-settings-button"
                            for="preload_editor">
                            <input type="checkbox" id="preload_editor" class="mdl-checkbox__input">
                            <span class="mdl-checkbox__label" data-i18n="preload_editor">Preload editor</span>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="theme">
                        Theme
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="connect">
                        Cloud sync (webdav)
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="disconnect">
                        Disconnect online account
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="import">
                        Import from Google Keep (Beta)
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="export">
                        Export all notes
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="window-frame">
                        <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="window-frame-switch">
                            <span class="mdl-switch__label" style="font-size:unset">Display window frame</span>
                            <input type="checkbox" id="window-frame-switch" class="mdl-switch__input">
                        </label>

                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="liberapay">
                        Donation - LiberaPay
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="paypal">
                        Donation - PayPal
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="sources">
                        Sources
                    </td>
                </tr>
                <tr>
                    <td class="mdl-data-table__cell--non-numeric carnet-settings-button" id="logout">
                        Logout
                    </td>
                </tr>
            </table>


        </main>

    </div>
    <div id="restarting"
        style="display:none;position: absolute; z-index:3;width:100%; height:100%; background: rgba(92, 120, 165,.9); ">
        <div style="position: relative;top:50%;text-align:center;font-size:30px; color:white;">QuickDoc will now
            restart</div>
    </div>
    <div id="frame-container">
        <webview class="frame" id="webview" nodeintegration webpreferences="contextIsolation=false"> </webview>
        <iframe class="frame" id="iframe" allowfullscreen></iframe>
    </div>
    <script src="settings/settings.js"></script>
</body>

</html>