sequelize-game-bank 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,90 +1,148 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="ru">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>City-Bank | Кредитование</title>
6
- <link rel="stylesheet" href="/api/bank/css/style.css">
7
- <link rel="stylesheet" href="https://unpkg.com/tippy.js@6/animations/scale.css"/>
8
- </head>
9
- <body>
10
- <div class="main-container">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>City-Bank | Кредитование</title>
6
+ <link rel="stylesheet" href="/api/bank/css/style.css" />
7
+ <link
8
+ rel="stylesheet"
9
+ href="https://unpkg.com/tippy.js@6/animations/scale.css"
10
+ />
11
+ </head>
12
+ <body>
13
+ <div class="main-container">
11
14
  <div class="sidebar">
12
- <div style="text-align: center; margin-bottom: 15px;">
13
- <img id="user-avatar" src="/api/bank/uploads/avatars/default.png" style="width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #1abc9c;">
15
+ <div style="text-align: center; margin-bottom: 15px">
16
+ <img
17
+ id="user-avatar"
18
+ src="/api/bank/uploads/avatars/default.png"
19
+ style="
20
+ width: 80px;
21
+ height: 80px;
22
+ border-radius: 50%;
23
+ object-fit: cover;
24
+ border: 3px solid #1abc9c;
25
+ "
26
+ />
27
+ </div>
28
+ <h2 id="user-display">Загрузка...</h2>
29
+ <p style="text-align: center; color: #bbb">
30
+ Всего средств:
31
+ <span id="total-manny" style="font-weight: bold; color: #1abc9c"
32
+ >0.00</span
33
+ >
34
+ руб.
35
+ </p>
36
+ <hr style="border-color: #34495e" />
37
+ <a href="/bank/general.html" class="nav-item"
38
+ ><button class="menu-btn" id="general">Главная</button></a
39
+ >
40
+ <a href="/bank/accounts.html" class="nav-item"
41
+ ><button class="menu-btn" id="acccount">Мои Счета</button></a
42
+ >
43
+ <a href="/bank/transfer.html" class="nav-item"
44
+ ><button class="menu-btn" id="transfer">Перевод средств</button></a
45
+ >
46
+ <a href="/bank/history.html" class="nav-item"
47
+ ><button class="menu-btn" id="history">История транзакций</button></a
48
+ >
49
+ <a class="nav-item"
50
+ ><button class="menu-btn active" id="credit">
51
+ Оформить Кредит
52
+ </button></a
53
+ >
54
+ <a href="/bank/profile.html" class="nav-item"
55
+ ><button class="menu-btn" id="profile">Управление профилем</button></a
56
+ >
57
+ <button
58
+ class="menu-btn"
59
+ onclick="location.href = '/bank/admin.html'"
60
+ id="admin-nav"
61
+ style="display: none; color: #ffc107"
62
+ >
63
+ Админ-панель
64
+ </button>
65
+ <br /><br />
66
+ <button
67
+ class="menu-btn btn-danger"
68
+ id="logoutBtn"
69
+ style="text-align: center"
70
+ >
71
+ Выйти из системы
72
+ </button>
14
73
  </div>
15
- <h2 id="user-display">Загрузка...</h2>
16
- <p style="text-align: center; color: #bbb;">Всего средств: <span id="total-manny" style="font-weight: bold; color: #1abc9c;">0.00</span> руб.</p>
17
- <hr style="border-color: #34495e;">
18
- <a href="/bank/general.html" class="nav-item"><button class="menu-btn" id="general">Главная</button></a>
19
- <a href="/bank/accounts.html" class="nav-item"><button class="menu-btn" id="acccount">Мои Счета</button></a>
20
- <a href="/bank/transfer.html" class="nav-item"><button class="menu-btn" id="transfer">Перевод средств</button></a>
21
- <a href="/bank/history.html" class="nav-item"><button class="menu-btn" id="history">История транзакций</button></a>
22
- <a class="nav-item"><button class="menu-btn active" id="credit">Оформить Кредит</button></a>
23
- <a href="/bank/profile.html" class="nav-item"><button class="menu-btn" id="profile">Управление профилем</button></a>
24
- <button class="menu-btn" onclick="location.href='/bank/admin.html'" id="admin-nav" style="display: none; color: #ffc107;">Админ-панель</button>
25
- <br><br>
26
- <button class="menu-btn btn-danger" id="logoutBtn" style="text-align: center;">Выйти из системы</button>
27
- </div>
28
74
 
29
- <div class="container">
30
- <div class="container-center">
75
+ <div class="card">
31
76
  <h3>Заявка на автономный кредит City-bank</h3>
32
- <div class="card">
33
- <div class="form-group">
34
- <label>Счет для зачисления кредита</label>
35
- <select id="credit-target"></select>
36
- </div>
37
- <div class="form-group">
38
- <label>Сумма кредитования</label>
39
- <input type="number" id="credit-amount" placeholder="0.00">
40
- </div>
41
- <div class="form-group">
42
- <label>Срок погашения (Кол-во платежей)</label>
43
- <input type="number" id="credit-payments" placeholder="Например: 12">
44
- </div>
45
- <div class="checkbox-group" style="margin-bottom: 15px;">
46
- <input type="checkbox" id="credit-auto" checked style="width: auto;">
47
- <label style="display: inline;" for="credit-auto">Разрешить автоматическое списание взносов со счета</label>
48
- </div>
49
- <div class="form-group">
50
- <label>Пин-код счета</label>
51
- <input type="password" id="credit-pin" placeholder="Введите пин-код счета">
52
- </div>
53
- <button class="btn" onclick="applyForCredit()">Оформить заем</button>
54
- </div>
55
- <div class="card">
56
- <div class="form-group">
57
- <label>Счет для зачисления</label>
58
- <select id="credit-accountId"></select> <!-- Должен быть select или input -->
59
- </div>
60
- <div class="form-group">
61
- <label>Сумма кредита (руб.)</label>
62
- <input type="number" id="credit-amount" placeholder="0.00">
63
- </div>
64
- <div class="form-group">
65
- <label>Срок кредитования (месяцев)</label>
66
- <input type="number" id="credit-termMonths" value="12">
67
- </div>
68
- <div class="form-group">
69
- <label>Процентная ставка (доля)</label>
70
- <input type="number" id="credit-rate" value="0.1" step="0.01">
71
- </div>
72
- <div class="form-group">
73
- <label>
74
- <input type="checkbox" id="credit-autoRepay"> Автоматическое погашение
75
- </label>
76
- </div>
77
- <!-- Кнопка вызывает функцию оформления кредита -->
78
- <button class="btn" onclick="executeCreateCredit()">Оформить Кредит</button>
79
- </div>
80
77
 
78
+ <div class="form-group">
79
+ <label for="credit-target">Счет для зачисления кредита</label>
80
+ <select id="credit-target" class="form-control" required>
81
+ <option value="">Загрузка счетов...</option>
82
+ </select>
83
+ </div>
84
+
85
+ <div class="form-group">
86
+ <label for="credit-amount">Сумма кредитования (руб.)</label>
87
+ <input
88
+ type="number"
89
+ id="credit-amount"
90
+ class="form-control"
91
+ placeholder="Например, 50000"
92
+ min="1"
93
+ step="any"
94
+ required
95
+ />
96
+ </div>
97
+
98
+ <div class="form-group">
99
+ <label for="credit-payments"
100
+ >Срок погашения (Кол-во платежей / месяцев)</label
101
+ >
102
+ <input
103
+ type="number"
104
+ id="credit-payments"
105
+ class="form-control"
106
+ value="12"
107
+ min="1"
108
+ required
109
+ />
110
+ </div>
111
+
112
+ <div class="form-group checkbox-group">
113
+ <input type="checkbox" id="credit-auto" />
114
+ <label for="credit-auto"
115
+ >Разрешить автоматическое списание взносов со счета</label
116
+ >
117
+ </div>
118
+
119
+ <div class="form-group">
120
+ <label for="credit-pin">Пин-код счета</label>
121
+ <input
122
+ type="password"
123
+ id="credit-pin"
124
+ class="form-control"
125
+ placeholder="••••"
126
+ maxlength="4"
127
+ autocomplete="current-password"
128
+ required
129
+ />
130
+ </div>
131
+
132
+ <button
133
+ type="button"
134
+ class="btn btn-primary"
135
+ onclick="executeCreateCredit()"
136
+ >
137
+ Оформить Кредит
138
+ </button>
139
+ <div id="active-credit-actions"></div>
81
140
  </div>
82
141
  </div>
83
- </div>
84
- <script src="https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js"></script>
85
- <script src="/api/bank/js/sweetalert2.js"></script>
86
- <script src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js"></script>
87
- <script src="https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js"></script>
88
- <script src="/api/bank/js/js.js"></script>
89
- </body>
142
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js"></script>
143
+ <script src="/api/bank/js/sweetalert2.js"></script>
144
+ <script src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js"></script>
145
+ <script src="https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js"></script>
146
+ <script src="/api/bank/js/js.js"></script>
147
+ </body>
90
148
  </html>