kingkont 0.7.11 → 0.7.13
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.
- package/index.html +47 -5
- package/package.json +4 -1
package/index.html
CHANGED
|
@@ -150,6 +150,23 @@
|
|
|
150
150
|
width: 240px; flex-shrink: 0;
|
|
151
151
|
scroll-snap-align: start;
|
|
152
152
|
}
|
|
153
|
+
/* Карточка «Открыть проект» — стилизована под обычную recent-карточку,
|
|
154
|
+
но контент не превью, а большая иконка + надпись. */
|
|
155
|
+
.welcome-card.open-card {
|
|
156
|
+
background: linear-gradient(135deg, #2a3e5c, #344a6e);
|
|
157
|
+
border-color: #4a6a9a;
|
|
158
|
+
}
|
|
159
|
+
.welcome-card.open-card:hover {
|
|
160
|
+
border-color: #6a8aba;
|
|
161
|
+
background: linear-gradient(135deg, #344a6e, #4a6a9a);
|
|
162
|
+
}
|
|
163
|
+
.welcome-card.open-card .welcome-card-thumb {
|
|
164
|
+
background: transparent; color: #c4d4ec; font-size: 56px; line-height: 1;
|
|
165
|
+
}
|
|
166
|
+
.welcome-card.open-card .welcome-card-name {
|
|
167
|
+
color: #e0e8f4; font-weight: 600;
|
|
168
|
+
}
|
|
169
|
+
.welcome-card.open-card .welcome-card-ts { color: #aac0d8; }
|
|
153
170
|
.welcome-card:hover { border-color: #4a6a9a; transform: translateY(-2px); }
|
|
154
171
|
.welcome-card-thumb {
|
|
155
172
|
width: 100%; aspect-ratio: 16 / 9; background: #1a1a1a;
|
|
@@ -1017,12 +1034,13 @@
|
|
|
1017
1034
|
<img class="welcome-logo" src="assets/logo-square.svg" alt="" draggable="false" id="welcomeLogo" title="Дабл-клик — настройки" style="cursor:pointer;">
|
|
1018
1035
|
<h1 class="welcome-title">KingKont</h1>
|
|
1019
1036
|
<div class="welcome-sub">Видео-редактор</div>
|
|
1020
|
-
<button id="welcomeOpen" class="welcome-open primary">Открыть проект</button>
|
|
1021
1037
|
</div>
|
|
1022
|
-
<div class="welcome-recent" id="welcomeRecent"
|
|
1023
|
-
<div class="welcome-recent-title"
|
|
1038
|
+
<div class="welcome-recent" id="welcomeRecent">
|
|
1039
|
+
<div class="welcome-recent-title" id="welcomeRecentTitle">Открыть проект</div>
|
|
1024
1040
|
<div class="welcome-recent-grid" id="welcomeRecentGrid"></div>
|
|
1025
1041
|
</div>
|
|
1042
|
+
<!-- Скрытая кнопка-shim — на неё дёргают .click() из app menu и dropzone'ов. -->
|
|
1043
|
+
<button id="welcomeOpen" style="display:none;"></button>
|
|
1026
1044
|
</div>
|
|
1027
1045
|
</div>
|
|
1028
1046
|
|
|
@@ -2286,11 +2304,35 @@ function fmtRelativeTime(ts) {
|
|
|
2286
2304
|
async function renderWelcomeRecents() {
|
|
2287
2305
|
const grid = $('welcomeRecentGrid');
|
|
2288
2306
|
const wrap = $('welcomeRecent');
|
|
2307
|
+
const titleEl = $('welcomeRecentTitle');
|
|
2289
2308
|
if (!grid || !wrap) return;
|
|
2290
2309
|
grid.innerHTML = '';
|
|
2310
|
+
wrap.style.display = '';
|
|
2291
2311
|
const list = await getRecents();
|
|
2292
|
-
|
|
2293
|
-
|
|
2312
|
+
|
|
2313
|
+
// Первой картой — «Открыть проект». Кликается → дёргает скрытый
|
|
2314
|
+
// #pickRoot button (тот же, что использует app menu).
|
|
2315
|
+
const openCard = document.createElement('div');
|
|
2316
|
+
openCard.className = 'welcome-card open-card';
|
|
2317
|
+
const openThumb = document.createElement('div');
|
|
2318
|
+
openThumb.className = 'welcome-card-thumb';
|
|
2319
|
+
openThumb.textContent = '+';
|
|
2320
|
+
const openMeta = document.createElement('div');
|
|
2321
|
+
openMeta.className = 'welcome-card-meta';
|
|
2322
|
+
const openName = document.createElement('div');
|
|
2323
|
+
openName.className = 'welcome-card-name';
|
|
2324
|
+
openName.textContent = 'Открыть проект';
|
|
2325
|
+
const openSub = document.createElement('div');
|
|
2326
|
+
openSub.className = 'welcome-card-ts';
|
|
2327
|
+
openSub.textContent = 'выбрать папку…';
|
|
2328
|
+
openMeta.append(openName, openSub);
|
|
2329
|
+
openCard.append(openThumb, openMeta);
|
|
2330
|
+
openCard.addEventListener('click', () => $('pickRoot').click());
|
|
2331
|
+
grid.appendChild(openCard);
|
|
2332
|
+
|
|
2333
|
+
// Title меняем в зависимости от наличия recents.
|
|
2334
|
+
if (titleEl) titleEl.textContent = list.length ? 'Открыть проект · недавние' : 'Открыть проект';
|
|
2335
|
+
|
|
2294
2336
|
for (const r of list) {
|
|
2295
2337
|
const card = document.createElement('div');
|
|
2296
2338
|
card.className = 'welcome-card';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kingkont",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"description": "KingKont \u00b7 Chatium \u2014 \u043d\u043e\u0434-\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441\u0446\u0435\u043d \u0441 AI-\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 (\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438/\u0432\u0438\u0434\u0435\u043e/\u0433\u043e\u043b\u043e\u0441/SFX/\u043c\u0443\u0437\u044b\u043a\u0430/\u0442\u0435\u043a\u0441\u0442)",
|
|
5
5
|
"main": "main.js",
|
|
6
6
|
"bin": {
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"electron-builder": "^25.1.8"
|
|
48
48
|
},
|
|
49
|
+
"overrides": {
|
|
50
|
+
"global-agent": "npm:lodash.noop@3.0.1"
|
|
51
|
+
},
|
|
49
52
|
"build": {
|
|
50
53
|
"appId": "com.kingkont.editor",
|
|
51
54
|
"productName": "KingKont",
|