@ponderdev/justfits 1.2.0 → 1.4.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.
- package/README.md +133 -15
- package/THIRD-PARTY-NOTICES.md +21 -10
- package/agents/skills/justfits/SKILL.md +104 -0
- package/package.json +19 -10
- package/scripts/link-skill.cjs +99 -0
- package/src/binaries.cjs +26 -10
- package/src/cli.cjs +245 -19
- package/src/engine.cjs +181 -26
- package/src/heif.cjs +156 -0
- package/src/kit/desktop.cjs +136 -0
- package/src/kit/family.cjs +29 -0
- package/src/kit/lang.cjs +166 -0
- package/src/kit/scan.cjs +105 -0
- package/src/kit/window.cjs +113 -0
- package/src/main.cjs +131 -20
- package/src/plan.js +136 -26
- package/src/preload.cjs +25 -1
- package/src/renderer/app.js +728 -104
- package/src/renderer/index.html +39 -56
- package/src/renderer/kit/kit.css +780 -0
- package/src/renderer/kit/kit.js +1057 -0
- package/src/renderer/licenses.html +44 -111
- package/src/renderer/strings.js +1562 -0
- package/src/renderer/styles.css +6 -256
- package/src/scan.cjs +80 -0
package/src/renderer/index.html
CHANGED
|
@@ -4,78 +4,61 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:;">
|
|
6
6
|
<title>Just Fits</title>
|
|
7
|
+
<link rel="stylesheet" href="kit/kit.css">
|
|
7
8
|
<link rel="stylesheet" href="styles.css">
|
|
8
9
|
</head>
|
|
9
10
|
<body>
|
|
10
11
|
<div class="titlebar"></div>
|
|
11
12
|
|
|
12
13
|
<div id="app">
|
|
13
|
-
<
|
|
14
|
+
<main class="k-utility">
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
<!-- The start screen and the file row come from the kit (Kit.start in app.js).
|
|
17
|
+
What follows it shows only once a file is in. -->
|
|
18
|
+
<div id="start"></div>
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<rect x="6" y="11" width="36" height="26" rx="4"/>
|
|
21
|
-
<path d="M20 20l9 4-9 4z"/>
|
|
22
|
-
</svg>
|
|
23
|
-
<p class="dz-title">Drop a file in</p>
|
|
24
|
-
<p class="dz-sub">or <button type="button" id="browse" class="linky">choose a file</button></p>
|
|
25
|
-
</section>
|
|
20
|
+
<!-- A sibling tool for what Just Fits does not do, when there is one (Kit.hint). -->
|
|
21
|
+
<p id="family-hint"></p>
|
|
26
22
|
|
|
27
|
-
<
|
|
28
|
-
<
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<section class="settings">
|
|
35
|
-
<div class="field">
|
|
36
|
-
<label for="target">Where is it going</label>
|
|
37
|
-
<select id="target"></select>
|
|
38
|
-
<p class="hint" id="why"></p>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="field">
|
|
41
|
-
<label for="custom">Or aim for a size yourself</label>
|
|
42
|
-
<div class="row">
|
|
43
|
-
<input type="number" id="custom" min="1" max="20000" step="1" placeholder="25">
|
|
44
|
-
<span class="muted">MB</span>
|
|
45
|
-
<span class="pill" id="aim"></span>
|
|
23
|
+
<div id="after" class="after-file">
|
|
24
|
+
<section class="k-section">
|
|
25
|
+
<div class="k-field">
|
|
26
|
+
<label for="target" data-t>Where is it going</label>
|
|
27
|
+
<select id="target"></select>
|
|
28
|
+
<p class="hint" id="why"></p>
|
|
46
29
|
</div>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
30
|
+
<div class="k-field">
|
|
31
|
+
<label for="custom" data-t>Or aim for a size yourself</label>
|
|
32
|
+
<div class="row">
|
|
33
|
+
<input type="number" id="custom" class="k-input k-number" min="1" max="20000" step="1" placeholder="25">
|
|
34
|
+
<span class="k-unit">MB</span>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<!-- Only with a folder in: its results go into a new folder beside it
|
|
38
|
+
unless this is ticked (kept through Kit.store). -->
|
|
39
|
+
<div class="k-field" id="where-field" hidden>
|
|
40
|
+
<label class="k-check"><input type="checkbox" id="beside"> <span data-t>Save next to the originals instead</span></label>
|
|
41
|
+
<p class="hint" id="where-hint"></p>
|
|
42
|
+
</div>
|
|
43
|
+
</section>
|
|
58
44
|
|
|
59
|
-
|
|
60
|
-
<
|
|
61
|
-
<p class="hint mono" id="detail"></p>
|
|
62
|
-
<p class="hint where" id="where"></p>
|
|
63
|
-
<button type="button" id="reveal" class="linky spaced">Show me the file</button>
|
|
64
|
-
</section>
|
|
45
|
+
<p class="k-note" id="aim"></p>
|
|
46
|
+
<button type="button" id="go" class="btn btn-primary btn-wide k-action" data-t>Compress</button>
|
|
65
47
|
|
|
66
|
-
|
|
48
|
+
<!-- Working, done and failed, from the kit (Kit.run in app.js). -->
|
|
49
|
+
<div id="run"></div>
|
|
50
|
+
</div>
|
|
67
51
|
|
|
68
|
-
</
|
|
52
|
+
</main>
|
|
69
53
|
</div>
|
|
70
54
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<span class="foot-links">
|
|
74
|
-
<button type="button" id="site" class="mark-link">Powered by <span class="mark">Ponder<b>Dev</b></span></button>
|
|
75
|
-
<button type="button" id="licences" class="mark-link">Licences and credits</button>
|
|
76
|
-
</span>
|
|
77
|
-
</footer>
|
|
55
|
+
<!-- Filled by Kit.footer(): the licences and the language, the family promise, the credit. -->
|
|
56
|
+
<footer id="footer"></footer>
|
|
78
57
|
|
|
58
|
+
<!-- strings.js first: every language's words, which kit.js reads as it
|
|
59
|
+
starts (generated by bin/strings, never edited by hand). -->
|
|
60
|
+
<script src="strings.js"></script>
|
|
61
|
+
<script src="kit/kit.js"></script>
|
|
79
62
|
<script src="app.js"></script>
|
|
80
63
|
</body>
|
|
81
64
|
</html>
|