fiverunner 0.9.0 → 1.2.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 +62 -17
- package/THIRD_PARTY_NOTICES.md +62 -1
- package/dist/assets/chunk-V2S4ZYJR-nHgQdGnA.js +1289 -0
- package/dist/assets/emscripten-module-qHZ8G7Bk.js +532 -0
- package/dist/assets/ffi-QWR4rT7G.js +147 -0
- package/dist/assets/module-ES6BEMUI-DSOdFjk-.js +2 -0
- package/dist/cfxlua.wasm +0 -0
- package/dist/dev/assets/emscripten-module-uFzwHH0Y.wasm +0 -0
- package/dist/dev/assets/emscripten-module.browser-D3rNV3oc.js +1 -0
- package/dist/dev/assets/ffi-4V2b7xu3.js +1 -0
- package/dist/dev/assets/index-BIEQGv2-.js +1 -0
- package/dist/dev/assets/index-BrojKg9W.css +1 -0
- package/dist/dev/assets/module-ES6BEMUI-CruD6PV8.js +1 -0
- package/dist/dev/assets/worker-BfZwl0oS.js +5003 -0
- package/dist/dev/badge.svg +1 -0
- package/dist/dev/index.html +35 -2
- package/dist/dev/sw.js +4 -4
- package/dist/fiverunner.js +8114 -5223
- package/dist/quickjs.wasm +0 -0
- package/package.json +8 -2
- package/dist/dev/assets/index-BK53Uleo.css +0 -1
- package/dist/dev/assets/index-Czn6ztS5.js +0 -1
- package/dist/dev/assets/worker-BVHTktyY.js +0 -2245
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="131" height="20" role="img" aria-label="run in: FiveRunner"><title>run in: FiveRunner</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="131" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="59" height="20" fill="#555"/><rect x="59" width="72" height="20" fill="#f0781e"/><rect width="131" height="20" fill="url(#s)"/></g><svg x="5" y="3" width="14" height="14" viewBox="0 0 100 100"><defs><linearGradient id="face" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#ffc15c"/><stop offset="1" stop-color="#f0781e"/></linearGradient></defs><rect width="100" height="100" rx="24" fill="url(#face)"/><path d="M22 22 51 50 22 78 33 50z" fill="#fff" fill-opacity=".6"/><path d="M50 22 79 50 50 78 61 50z" fill="#fff"/></svg><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="380" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="320">run in</text><text x="380" y="140" transform="scale(.1)" fill="#fff" textLength="320">run in</text><text aria-hidden="true" x="950" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="620">FiveRunner</text><text x="950" y="140" transform="scale(.1)" fill="#fff" textLength="620">FiveRunner</text></g></svg>
|
package/dist/dev/index.html
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>FiveRunner</title>
|
|
7
7
|
<link rel="icon" type="image/svg+xml" href="/__fiverunner/logo.svg" />
|
|
8
|
-
<script type="module" crossorigin src="/__fiverunner/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/__fiverunner/assets/index-BIEQGv2-.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/__fiverunner/assets/routes-DFIWFSAi.js">
|
|
10
|
-
<link rel="stylesheet" crossorigin href="/__fiverunner/assets/index-
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/__fiverunner/assets/index-BrojKg9W.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<header class="top">
|
|
@@ -61,6 +61,39 @@
|
|
|
61
61
|
<div id="bags"></div>
|
|
62
62
|
</aside>
|
|
63
63
|
<section id="map" class="map"></section>
|
|
64
|
+
<section class="inspector">
|
|
65
|
+
<div class="toolbar">
|
|
66
|
+
<h2>Inspector</h2>
|
|
67
|
+
<select id="inspected" aria-label="The process to inspect"></select>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="columns">
|
|
70
|
+
<div
|
|
71
|
+
id="inspected-resources"
|
|
72
|
+
aria-label="Resources, with the time they take each tick"
|
|
73
|
+
></div>
|
|
74
|
+
<div id="inspected-details">Pick a resource</div>
|
|
75
|
+
<div class="convars">
|
|
76
|
+
<input
|
|
77
|
+
id="convar-filter"
|
|
78
|
+
autocomplete="off"
|
|
79
|
+
spellcheck="false"
|
|
80
|
+
placeholder="Filter the convars"
|
|
81
|
+
aria-label="Filter the convars"
|
|
82
|
+
/>
|
|
83
|
+
<dl id="convars"></dl>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<form id="evaluate">
|
|
87
|
+
<input
|
|
88
|
+
id="code"
|
|
89
|
+
autocomplete="off"
|
|
90
|
+
spellcheck="false"
|
|
91
|
+
disabled
|
|
92
|
+
placeholder="Pick a resource to run code in it"
|
|
93
|
+
aria-label="Code to run in the resource"
|
|
94
|
+
/>
|
|
95
|
+
</form>
|
|
96
|
+
</section>
|
|
64
97
|
<section class="players">
|
|
65
98
|
<div class="toolbar">
|
|
66
99
|
<h2>Players</h2>
|
package/dist/dev/sw.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){var e
|
|
1
|
+
(function(){var e=`/__fiverunner/`;function t(e,t){return e.origin===t?e.pathname.startsWith(`/__fiverunner/`)?{kind:`network`}:{kind:`file`,path:e.pathname}:e.protocol===`http:`||e.protocol===`https:`?{kind:`ask`,url:e}:{kind:`network`}}var n=3258;function r(t){return t.replaceAll(`nui://game/`,`${e}game/`).replaceAll(`nui://`,`https://cfx-nui-`)}var i=`(() => {
|
|
2
2
|
const define = (name, value) =>
|
|
3
3
|
Object.defineProperty(window, name, { value, writable: false, enumerable: true, configurable: true })
|
|
4
4
|
define('nuiTargetGame', 'gta5')
|
|
5
|
-
define('nuiTargetGameBuild', ${
|
|
5
|
+
define('nuiTargetGameBuild', ${n})
|
|
6
6
|
define('nuiTargetGamePureLevel', 0)
|
|
7
7
|
define('nuiSystemLanguages', [...navigator.languages])
|
|
8
8
|
define('invokeNative', (native, arg) => {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
})
|
|
11
11
|
window.registerEpoxyHandler = () => {}
|
|
12
12
|
define('sendEpoxyMessage', () => {})
|
|
13
|
-
const nui = (value) => value.replaceAll('nui://game/', '${
|
|
13
|
+
const nui = (value) => value.replaceAll('nui://game/', '${e}game/').replaceAll('nui://', 'https://cfx-nui-')
|
|
14
14
|
const fetch = window.fetch
|
|
15
15
|
if (typeof fetch === 'function') {
|
|
16
16
|
window.fetch = (input, init) => {
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
{ capture: true, passive: true },
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
|
-
})()`,a=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});function o(e){let t;try{t=a.decode(e)}catch{return e}return t.includes(`nui://`)?new TextEncoder().encode(r(t)):e}var s=/^(?:\xef\xbb\xbf)?(?:[\t\n\f\r ]|<!--[^]*?-->)*<!doctype[^>]*>/i;function c(e,t){if(e[0]===255&&e[1]===254||e[0]===254&&e[1]===255)return e;let n=String.fromCharCode(...e.subarray(0,Math.min(e.length,4096))),r=s.exec(n)?.[0].length??(n.startsWith(``)?3:0),i=new TextEncoder().encode(`<script>${t}<\/script>`),a=new Uint8Array(e.length+i.length);return a.set(e.subarray(0,r)),a.set(i,r),a.set(e.subarray(r),r+i.length),a}var l=5e3,u=self,d=new BroadcastChannel(`fiverunner`),f=new Map,p=0;d.addEventListener(`message`,e=>{let t=e.data,n=f.get(t.id);n!==void 0&&(t.type===`ack`?n.taken=!0:t.type===`answer`&&(f.delete(t.id),n.resolve(t.answer)))});function m(e){let
|
|
64
|
+
})()`,a=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});function o(e){let t;try{t=a.decode(e)}catch{return e}return t.includes(`nui://`)?new TextEncoder().encode(r(t)):e}var s=/^(?:\xef\xbb\xbf)?(?:[\t\n\f\r ]|<!--[^]*?-->)*<!doctype[^>]*>/i;function c(e,t){if(e[0]===255&&e[1]===254||e[0]===254&&e[1]===255)return e;let n=String.fromCharCode(...e.subarray(0,Math.min(e.length,4096))),r=s.exec(n)?.[0].length??(n.startsWith(``)?3:0),i=new TextEncoder().encode(`<script>${t}<\/script>`),a=new Uint8Array(e.length+i.length);return a.set(e.subarray(0,r)),a.set(i,r),a.set(e.subarray(r),r+i.length),a}var l=5e3,u=self,d=new BroadcastChannel(`fiverunner`),f=new Map,p=0;d.addEventListener(`message`,e=>{let t=e.data,n=f.get(t.id);n!==void 0&&(t.type===`ack`?n.taken=!0:t.type===`answer`&&(f.delete(t.id),n.resolve(t.answer)))});function m(e,t){let n=p++;return new Promise(r=>{let i={taken:!1,resolve:r};f.set(n,i),d.postMessage({type:`ask`,id:n,ask:e,...t===void 0?{}:{frame:t}}),setTimeout(()=>{!i.taken&&f.delete(n)&&r(void 0)},l)})}function h(e,t){if(`network`in t)return fetch(e);let{status:n,headers:r,body:a}=t.response;if(n<200||n>599)return Response.error();let s=r.some(([e,t])=>e.toLowerCase()===`content-type`&&t.startsWith(`text/html`)),l=e.mode===`navigate`&&s?c(o(a),i):a;try{return new Response(n===204||n===205||n===304?null:new Uint8Array(l),{status:n,headers:r.map(([e,t])=>[e,t])})}catch{return Response.error()}}async function g(e,t,n,r){let i=await m(n??{kind:`url`,url:t.url,method:t.method,headers:[...t.headers],body:new Uint8Array(await t.arrayBuffer())},r);return i===void 0?new Response(`No page of FiveRunner shows these frames.`,{status:504}):h(e,i)}u.addEventListener(`install`,e=>e.waitUntil(u.skipWaiting())),u.addEventListener(`activate`,e=>e.waitUntil(u.clients.claim())),u.addEventListener(`fetch`,e=>{let{request:n}=e,r=t(new URL(n.url),u.location.origin);if(r.kind===`network`)return;let i=r.kind===`file`?{kind:`file`,path:r.path}:void 0;e.respondWith(g(n,n.clone(),i))})})();
|