@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.
@@ -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
- <div class="view">
14
+ <main class="k-utility">
14
15
 
15
- <h1>Just Fits</h1>
16
- <p class="sub">Makes a file small enough to send. Nothing leaves this machine.</p>
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
- <section id="drop" class="dropzone">
19
- <svg class="dz-icon" viewBox="0 0 48 48" aria-hidden="true">
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
- <section id="file" class="settings" hidden>
28
- <div class="field">
29
- <p class="name" id="name"></p>
30
- <p class="hint mono" id="facts"></p>
31
- </div>
32
- </section>
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
- </div>
48
- </section>
49
-
50
- <button type="button" id="go" class="btn btn-primary btn-wide" disabled>Compress</button>
51
-
52
- <section id="working" class="working" hidden>
53
- <div class="bar-track"><span id="fill"></span></div>
54
- <p class="stage"><span id="stage">Working</span><span id="pct"></span></p>
55
- <p class="hint" id="attempt"></p>
56
- <button type="button" id="cancel" class="btn btn-ghost spaced">Cancel</button>
57
- </section>
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
- <section id="done" class="result-card" hidden>
60
- <p class="result" id="result"></p>
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
- <p class="error" id="error" hidden></p>
48
+ <!-- Working, done and failed, from the kit (Kit.run in app.js). -->
49
+ <div id="run"></div>
50
+ </div>
67
51
 
68
- </div>
52
+ </main>
69
53
  </div>
70
54
 
71
- <footer class="app-footer">
72
- <span>Nothing is uploaded. It all happens here.</span>
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>