-
Notifications
You must be signed in to change notification settings - Fork 5
/
_index.html
516 lines (485 loc) · 26 KB
/
_index.html
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title data-translate-id="page-title">Rosplata</title>
<meta data-translate-id="description" data-translate-prop="content" name="description"
content="Rosplata is an opensource self hosted collaborative finance manager. Create budgets, share them with friends and easily split the bills" />
<meta data-translate-id="keywords" data-translate-prop="content" name="keywords"
content="opensource, collaborative, finance, budget, split, bill" />
<link rel="canonical" href="https://ros-plata.ru" />
<link rel="icon" href="/images/favicons/icon.svg" type="image/svg+xml">
<link rel="stylesheet" async href="/styles/paper.min.css" />
<link rel="stylesheet" href="/styles/generated/sizes.css" />
<script src="/src/App.mjs" type="module"></script>
<style type="text/css">
@media all and (prefers-color-scheme: dark) {
html:not(.theme-selected) {
background-color: #41403e;
color: beige;
}
}
#telegram-post-rosplata-3 {
transform: scale(80%);
}
</style>
<template id="layout-main-template">
<div id="layout-main">
<aside id="budgets-list"></aside>
<aside id="create-form"></aside>
<section id="budget-details" class="exit hidden"></section>
</div>
</template>
<template id="layout-settings-template">
<div id="layout-settings" class="exit-disappear">
<aside id="layout-settings__menu" class="exit-disappear"></aside>
<section id="layout-settings__settings"></section>
</div>
</template>
<template id="settings-section-template">
<div class="settings-item">
<label class="settings-item__name" data-translate-id="settings-item-app-version">App version</label>
<span class="settings-item__value" id="app-version"></span>
</div>
<div class="settings-item">
<label class="settings-item__name" for="autologin"
data-translate-id="settings-item-autologin">Autologin</label>
<input class="settings-item__value" type="checkbox" id="autologin-setting" />
</div>
<div class="settings-item">
<label class="settings-item__name" for="theme-setting" data-translate-id="settings-item-theme">Theme</label>
<select class="settings-item__value" id="theme-setting">
<option value="system" data-translate-id="settings-item-theme-system">System</option>
<option value="light" data-translate-id="settings-item-theme-light">Light</option>
<option value="dark" data-translate-id="settings-item-theme-dark">Dark</option>
</select>
</div>
<div class="settings-item">
<label class="settings-item__name" for="language-setting"
data-translate-id="settings-item-language">Language</label>
<select class="settings-item__value" id="language-setting">
<option value="system" data-translate-id="settings-item-language-system">Let browser decide</option>
<option value="ru" data-translate-id="settings-item-language-ru">Русский</option>
<option value="en" data-translate-id="settings-item-language-en">English</option>
<option value="hi" data-translate-id="settings-item-language-hi">Hindi</option>
<option value="bn" data-translate-id="settings-item-language-bn">Bengali</option>
<option value="zh" data-translate-id="settings-item-language-zn">Chinese</option>
<option value="ar" data-translate-id="settings-item-language-ar">Arabic</option>
<option value="ko" data-translate-id="settings-item-language-ko">Korean</option>
<option value="he" data-translate-id="settings-item-language-he">Hebrew</option>
</select>
</div>
</template>
<template id="budgets-list-template">
<div class="budgets-list__actions">
<button id="budgets-list__create-button" class="button" data-translate-id="budgets-list-new">Create
new</button>
<button id="budgets-list__menu-button"></button>
</div>
<div id="budgets-list__items">
<div
class="budgets-list__items-container budgets-list__items-container--status1 budgets-list__items-container--empty child-borders">
</div>
<div
class="budgets-list__items-container budgets-list__items-container--status4 budgets-list__items-container--empty child-borders">
</div>
<div
class="budgets-list__items-container budgets-list__items-container--status5 budgets-list__items-container--empty child-borders">
</div>
<div
class="budgets-list__items-container budgets-list__items-container--status0 budgets-list__items-container--empty child-borders">
</div>
<div
class="budgets-list__items-container budgets-list__items-container--status2 budgets-list__items-container--empty child-borders">
</div>
<div
class="budgets-list__items-container budgets-list__items-container--status3 budgets-list__items-container--empty child-borders">
</div>
</div>
</template>
<template id="budgets-list-item-template">
<li class="budgets-list-item">
<div class="budgets-list-item__info">
<span class="budgets-list-item__title"></span>
<span class="budgets-list-item__participants text-muted"></span>
</div>
<span class="budgets-list-item__my-balance budgets-list-item__counter"></span>
</li>
</template>
<template id="budget-details-template">
<div class="budget-details__main">
<div class="budget-details__header">
<div class="visible-on-mobile">
<a href="/" data-translate-id="back">Back</a>
</div>
<div class="visible-on-mobile">
<a id="settings-btn" data-translate-id="settings-button">Settings</a>
</div>
</div>
<h4 class="budget-details__title"></h4>
<div class="budget-details__counters">
<div class="budget-details__counter-wrapper">
<span class="budget-details__counter budget-details__counter--my"></span>
<span data-translate-id="budget-details-my-balance">My balance</span>
</div>
<div class="budget-details__counter-wrapper">
<span
class="budget-details__counter budget-details__counter--total budget-details__counter--zero"></span>
<span data-translate-id="budget-details-total-sum">Total sum</span>
</div>
</div>
<div class="budget-details__transactions"></div>
<div class="budget-details__actions budget-details__actions--invite">
<span data-translate-id="budget-details-actions-invite">You are invited to participate</span>
<button class="budget-details__action btn-success" id="accept-invite"
data-translate-id="budget-details-actions-accept">Accept</button>
<button class="budget-details__action btn-warning" id="decline-invite"
data-translate-id="budget-details-actions-decline">Decline</button>
</div>
<p class="text-muted budget-details__actions--isopen"
data-translate-id="budget-details-actions-open-notification">
This budget is open. Your request will be automatically approved.
</p>
<div class="budget-details__actions budget-details__actions--ask">
<span data-translate-id="budget-details-actions-ask">You can ask for invite</span>
<button class="budget-details__action btn-secondary" id="ask-invite"
data-translate-id="budget-details-actions-send-request">Send request</button>
</div>
<div class="budget-details__actions budget-details__actions--wait"
data-translate-id="budget-details-actions-wait">
Budget owner have to approve your request
</div>
</div>
<aside class="budget-details__aside">
<div class="visible-on-mobile">
<a id="settings-close-btn" data-translate-id="close">Close</a>
</div>
<div class="row flex-spaces tabs">
<input id="tab1" type="radio" name="tabs" checked>
<label for="tab1" data-translate-id="participants-list-button">Participants</label>
<input id="tab2" type="radio" name="tabs">
<label for="tab2" data-translate-id="settings-btn">Settings</label>
<div class="content" id="content1">
<div class="budget-details__tab-content-wrapper">
<div class="budget-details__participants"></div>
<div class="budget-details__actions budget-details__actions--send-invite">
<button id="send-invite" class="budget-details__action button"
data-translate-id="budget-details-add-people">Add people</button>
</div>
</div>
</div>
<div class="content budget-details__settings" id="content2">
</div>
</div>
</aside>
</template>
<template id="budget-settings-template">
<div id="budget-settings" class="budget-settings">
</div>
</template>
<template id="transactions-list-template">
<div id="transactions-list">
<form class="transactions-list__new">
<div class="transactions-list__amount-wrapper">
<input type="number" required autocomplete="off" placeholder="100,00" step="0.1" min="0"
title="Only numbers and a dot" name="amount" id="amount" class="transactions-list__amount" />
<button type="submit" class="transactions-list__ok-btn"
data-translate-id="transactions-list-ok">mkay</button>
</div>
<input type="text" name="comment" class="transactions-list__comment" placeholder="Add optional comment"
data-translate-id="transactions-list-comment" data-translate-prop="placeholder" />
</form>
<div class="transactions-list__items"></div>
</div>
</template>
<template id="transactions-list-item-template">
<div class="transactions-list-item">
<img src="" alt="" class="transactions-list-item__image" />
<div class="transactions-list-item__name-and-comment">
<span class="transactions-list-item__name"></span>
<span class="transactions-list-item__comment text-muted"></span>
</div>
<span class="transactions-list-item__amount"></span>
<button class="transactions-list-item__delete btn-small shadow-none">
<svg width="1.1rem" height="1.1rem" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.99997 8H6.5M6.5 8V18C6.5 19.1046 7.39543 20 8.5 20H15.5C16.6046 20 17.5 19.1046 17.5 18V8M6.5 8H17.5M17.5 8H19M9 5H15M9.99997 11.5V16.5M14 11.5V16.5" stroke="#464455" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<button class="transactions-list-item__revert btn-small shadow-none">
<svg width="1.1rem" height="1.1rem" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M19.6873 14.2222C19.8909 13.5167 20 12.7711 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C14.3413 20 16.4476 18.9943 17.9106 17.3912M19.6873 14.2222L19 13M19.6873 14.2222L20.75 13.25M9 12L11 14L15 10" stroke="#464455" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</div>
</template>
<template id="feature-detector__template">
<div class="exit-disappear" id="feature-detector">
<header data-translate-id="feature-detector-title">Features</header>
<p data-translate-id="feature-detector-description">That need to be supported for this app to work</p>
</div>
</template>
<template id="feature-detector__feature-template">
<div class="feature-detector__feature-wrapper">
<strong class="feature-detector__feature-name"></strong>
<span class="feature-detector__feature-value"></span>
</div>
</template>
<template id="menu-template">
<nav id="menu" class="paper border-1 background-primary">
<a data-translate-id="menu-budgets" href="/" class="menu-item">Budgets</a>
<a data-translate-id="menu-settings" href="/settings" class="menu-item">Settings</a>
<a data-translate-id="menu-logout" href="#" class="menu-item menu__logout">Log out</a>
</nav>
</template>
<template id="menu-item-template">
</template>
<template id="layout-login-template">
<div id="layout-login">
<h1 class="layout-login__prompt" data-translate-id="layout-login-title">Enter Rosplata</h1>
<h2 class="layout-login__prompt-detail" data-translate-id="layout-login-description">Sign in with your
google account to start using shared budgets</h2>
<div class="layout-login__variants">
<button class="layout-login__variant--google" id="login__google"
data-translate-id="layout-login-enter">Enter</button>
<a class="layout-login__variant--demo" href="/demo" data-translate-id="demo-login">Demo login</a>
</div>
<div class="layout-login__languages">
<a href="/lang/ru" target="_blank" data-translate-id="settings-item-language-ru">Русский</a>
<a href="/lang/en" target="_blank" data-translate-id="settings-item-language-en">English</a>
<a href="/lang/hi" target="_blank" data-translate-id="settings-item-language-hi">Hindi</a>
<a href="/lang/bn" target="_blank" data-translate-id="settings-item-language-bn">Bengali</a>
<a href="/lang/zh" target="_blank" data-translate-id="settings-item-language-zn">Chinese</a>
<a href="/lang/ar" target="_blank" data-translate-id="settings-item-language-ar">Arabic</a>
<a href="/lang/ko" target="_blank" data-translate-id="settings-item-language-ko">Korean</a>
<a href="/lang/he" target="_blank" data-translate-id="settings-item-language-he">Hebrew</a>
</div>
<div class="layout-login__aside">
<span class="layout-login__version"></span>
<a href="/about" target="_blank" rel="noopener"
data-translate-id="landing-page">What is Rosplata?</a>
</div>
</div>
</template>
<template id="new-budget-template">
<div class="new-budget"></div>
</template>
<template id="budget-form-template">
<form id="budget-form" class="budget-form__form">
<div class="budget-form__fields">
<input type="text" name="name" autocomplete="off" autofocus required minlength="3" maxlength="20"
title="Only letters, digits and a space" placeholder="Budget's name"
data-translate-id="budget-form-title" data-translate-prop="placeholder" />
<h4 data-translate-id="budget-form-currency">Currency</h4>
<select name="currency" id="currency">
<option value="RUB" data-translate-id="currency-rub">Russian Rouble</option>
<option value="INR" data-translate-id="currency-inr">Indian Rupee</option>
<option value="USD" data-translate-id="currency-usd">US Dollar</option>
<option value="EUR" data-translate-id="currency-eur">Euro</option>
<option value="CNY" data-translate-id="currency-cny">Chinese Yuan</option>
<option value="JRD" data-translate-id="currency-jrd">Jordanian Dinar</option>
</select>
<div class="budget-form__participants">
<h4 data-translate-id="budget-form-suggested-participants">Suggested participants</h4>
<div class="budget-form__suggested-participants">
<div class="budget-form__suggested-participants-item budget-form__field--checkbox">
<input type="checkbox" name="" id="" />
<label for=""></label>
</div>
</div>
</div>
<h4 data-translate-id="budget-form-type">Budget type</h4>
<h6 class="text-muted" data-translate-id="budget-form-is-open-notice">
If you turn this setting on, any participation requests will be automatically approved.
</h6>
<div class="budget-form__field--checkbox">
<input type="checkbox" name="isOpen" id="isOpen" />
<label for="isOpen" data-translate-id="budget-form-is-open">This budget is open</label>
</div>
<h4 data-translate-id="budget-form-banned-user-transactions-action">
What to do with transactions of banned user?
</h4>
<select name="bannedUserTransactionsAction" id="bannedUserTransactionsAction">
<option value="keep" data-translate-id="banned-user-transactions-keep">Keep</option>
<option value="ignore" data-translate-id="banned-user-transactions-ignore">Ignore</option>
</select>
</div>
<div class="budget-form__buttons">
<button type="submit" data-translate-id="budget-form-go">Go</button>
<button type="reset" data-translate-id="budget-form-reset">Reset</button>
</div>
</form>
</template>
<template id="alert-template">
<div class="app-alert">
<input class="alert-state" id="alert" type="checkbox">
<div class="alert dismissible">
<span class="app-alert__text"></span>
<label class="btn-close" for="alert">X</label>
</div>
</div>
</template>
<template id="participants-list-template">
<div id="participants-list" class="participants-list">
<div class="participants-list__items"></div>
</div>
</template>
<template id="participants-list-item-template">
<div class="participants-list-item">
<div class="participants-list-item__info">
<span class="participants-list-item__name"></span>
<span class="participants-list-item__status"></span>
</div>
<div class="participants-list-item__actions participants-list-item__actions--status1">
<button
class="button btn-small participants-list-item__action participants-list-item__action--ban btn-danger"
data-translate-id="participants-list-ban">Ban</button>
</div>
<div class="participants-list-item__actions participants-list-item__actions--status2">
<button
class="button btn-small participants-list-item__action participants-list-item__action--approve btn-success"
data-translate-id="participants-list-revert">Revert</button>
</div>
<div class="participants-list-item__actions participants-list-item__actions--status5">
<button
class="button btn-small participants-list-item__action participants-list-item__action--approve btn-success"
data-translate-id="participants-list-approve">Approve</button>
<button
class="button btn-small participants-list-item__action participants-list-item__action--ban btn-danger"
data-translate-id="participants-list-ban">Ban</button>
</div>
</div>
</template>
<template id="invite-dialog-template">
<div class="invite-dialog paper border-2">
<img src="" alt="QR Code" class="invite-dialog__qr-code" />
<p data-translate-id="invite-dialog-description">
Scan this QR code to open this budget on your device.
</p>
<button id="send-invite-link" class="button btn-secondary"
data-translate-id="invite-dialog-share-link">Share link instead</button>
</div>
</template>
</head>
<body>
<div id="alerts"></div>
<dialog id="modal-window"></dialog>
<div id="layout"></div>
<div id="features-support-checkup">
<style>
#features-support-checkup {
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
max-width: 400px;
margin: 2rem auto;
}
.feature-checkup {
margin: 0.5rem 0;
display: flex;
justify-content: space-between;
}
</style>
<strong data-translate-id="feature-checkup-title">Your browser must support these features</strong>
<div class="feature-checkup feature-checkup--dialog">
<span class="feature-checkup__name">Dialog element</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--url-pattern">
<span class="feature-checkup__name">URL pattern API</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--import-assertion">
<span class="feature-checkup__name">Import assertions</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--html-templates">
<span class="feature-checkup__name">HTML templates</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--import">
<span class="feature-checkup__name">ES6 imports</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--battery">
<span class="feature-checkup__name">Battery API</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--matchmedia">
<span class="feature-checkup__name">Match media</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--wasm">
<span class="feature-checkup__name">WebAssembly</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--inert">
<span class="feature-checkup__name">Inert attribute</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--connection">
<span class="feature-checkup__name">Connection speed estimation</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<div class="feature-checkup feature-checkup--intl">
<span class="feature-checkup__name">Built-in internationalization</span>
<span class="feature-checkup__value">Not supported</span>
</div>
<strong data-translate-id="feature-checkup-description">
Sorry for inconvenience. Try opening this app in Chrome or Edge.
</strong>
<script type="text/javascript">
const checks = [
{
modifier: 'dialog',
check: () => 'HTMLDialogElement' in window,
},
{
modifier: 'url-pattern',
check: () => 'URLPattern' in window,
},
{
modifier: 'html-templates',
check: () => 'HTMLTemplateElement' in window,
},
{
modifier: 'import',
check: () => 'noModule' in HTMLScriptElement.prototype,
},
{
modifier: 'battery',
check: () => 'getBattery' in navigator,
},
{
modifier: 'matchmedia',
check: () => 'matchMedia' in window,
},
{
modifier: 'wasm',
check: () => 'WebAssembly' in window,
},
{
modifier: 'inert',
check: () => 'inert' in document.querySelector('div'),
},
{
modifier: 'connection',
check: () => 'connection' in navigator,
},
{
modifier: 'intl',
check: () => 'ListFormat' in Intl && 'NumberFormat' in Intl,
}
]
const clientId = crypto.randomUUID()
checks.forEach(({ check, modifier }) => {
if (check()) {
document.querySelector('#features-support-checkup .feature-checkup--' + modifier + ' .feature-checkup__value').textContent = 'Supported'
}
})
</script>
</div>
</body>
</html>