pinokiod 8.3.1 → 8.3.2
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/kernel/bin/tailscaled.js
CHANGED
|
@@ -4,7 +4,7 @@ const { execFile } = require('child_process')
|
|
|
4
4
|
const { promisify } = require('util')
|
|
5
5
|
const run = promisify(execFile)
|
|
6
6
|
|
|
7
|
-
const VERSION = '1.104.
|
|
7
|
+
const VERSION = '1.104.5'
|
|
8
8
|
|
|
9
9
|
class Tailscaled {
|
|
10
10
|
description = "Installs the Tailscale daemon for Remote: reach this Pinokio and its apps from your phone or another computer over a private network."
|
package/package.json
CHANGED
|
@@ -159,6 +159,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
159
159
|
<div class='anywhere-card'>
|
|
160
160
|
<h2>Remote access is off</h2>
|
|
161
161
|
<p>Turn it on to access this Pinokio from another device. Nothing is exposed to the public internet: only devices signed in to your own Tailscale account can connect.</p>
|
|
162
|
+
<p>Tailscale is bundled with Pinokio. It's <a href='https://tailscale.com/pricing' target='_blank' rel='noopener'>free for personal use</a> and its core is open source. You sign in with a personal account you already have, such as Google, Apple, GitHub or Microsoft. <a href='https://tailscale.com/kb/1151/what-is-tailscale' target='_blank' rel='noopener'>What is Tailscale?</a></p>
|
|
162
163
|
<p><button class='anywhere-btn' data-action='start'><i class="fa-solid fa-power-off"></i> Turn on</button></p>
|
|
163
164
|
</div>
|
|
164
165
|
</div>
|
|
@@ -32,6 +32,15 @@ function render(t, status, agent = 'electron') {
|
|
|
32
32
|
return { state, document, poll: () => state.timers.shift().callback(), text: (id) => document.getElementById(id).textContent }
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
test('the off card answers a Tailscale newcomer before Turn on', (t) => {
|
|
36
|
+
const h = render(t, { phase: 'off' })
|
|
37
|
+
const card = h.document.querySelector('[data-state=off] .anywhere-card')
|
|
38
|
+
assert.match(card.textContent, /free for personal use.*personal account.*Google, Apple, GitHub or Microsoft.*What is Tailscale\?/s)
|
|
39
|
+
assert.deepEqual([...card.querySelectorAll('a')].map(a => a.getAttribute('href')),
|
|
40
|
+
['https://tailscale.com/pricing', 'https://tailscale.com/kb/1151/what-is-tailscale'])
|
|
41
|
+
assert.ok(card.querySelector('[data-action=start]'), 'Turn on follows the explanation')
|
|
42
|
+
})
|
|
43
|
+
|
|
35
44
|
test('before any device joins, the ready state is the connect card alone, with sign out', (t) => {
|
|
36
45
|
const h = render(t, { phase: 'ready', peers: [] })
|
|
37
46
|
const card = h.document.querySelector('[data-state=ready] .anywhere-card')
|
package/test/anywhere.test.js
CHANGED
|
@@ -113,16 +113,16 @@ test('tailscaled checks both package versions, binary versions and missing execu
|
|
|
113
113
|
for (const platform of ['darwin', 'win32', 'linux']) {
|
|
114
114
|
const mod = new context.module.exports()
|
|
115
115
|
mod.kernel = { platform, bin: { path: (...parts) => path.join('/managed', ...parts),
|
|
116
|
-
installed: { conda: new Set(['tailscaled', 'tailscale']), conda_versions: { tailscaled: '1.104.
|
|
117
|
-
assert.equal(mod.cmd(), 'tailscaled=1.104.
|
|
116
|
+
installed: { conda: new Set(['tailscaled', 'tailscale']), conda_versions: { tailscaled: '1.104.5', tailscale: '1.104.5' } } } }
|
|
117
|
+
assert.equal(mod.cmd(), 'tailscaled=1.104.5 tailscale=1.104.5')
|
|
118
118
|
files.clear()
|
|
119
|
-
files.set(mod.binPath(), '1.104.
|
|
119
|
+
files.set(mod.binPath(), '1.104.5\n')
|
|
120
120
|
assert.equal(await mod.installed(), false, 'missing CLI fails setup')
|
|
121
|
-
files.set(mod.cliPath(), '1.104.
|
|
121
|
+
files.set(mod.cliPath(), '1.104.5\n')
|
|
122
122
|
assert.equal(await mod.installed(), true)
|
|
123
123
|
mod.kernel.bin.installed.conda_versions.tailscale = '1.102.2'
|
|
124
124
|
assert.equal(await mod.installed(), false, 'mismatched CLI package fails setup')
|
|
125
|
-
mod.kernel.bin.installed.conda_versions.tailscale = '1.104.
|
|
125
|
+
mod.kernel.bin.installed.conda_versions.tailscale = '1.104.5'
|
|
126
126
|
mod.verified.clear()
|
|
127
127
|
files.set(mod.cliPath(), '1.102.2\n')
|
|
128
128
|
assert.equal(await mod.installed(), false, 'binary version is verified independently')
|
|
@@ -219,7 +219,7 @@ test('native daemon: setup, simultaneous start, adoption, stop and saved Off', {
|
|
|
219
219
|
const kernel = {
|
|
220
220
|
platform: process.platform, homedir: tmp, path: (...parts) => path.join(tmp, ...parts),
|
|
221
221
|
bin: { mod: { tailscaled: mod }, installed: { conda: new Set(['tailscaled', 'tailscale']),
|
|
222
|
-
conda_versions: { tailscaled: '1.104.
|
|
222
|
+
conda_versions: { tailscaled: '1.104.5', tailscale: '1.104.5' } } },
|
|
223
223
|
}
|
|
224
224
|
mod.kernel = kernel
|
|
225
225
|
mod.binPath = () => daemonBin
|