PageSourceSearch

https://www.portalrevolution.com/_nuxt/cmd.b5ebca7e.js

js portalrevolution.com collected 2026-10-02 07:02:44 UTC 3,027 bytes, 1 lines download raw bytes

1import{f as v,l as g,m as p,n as k,o as C,c as y,a as o,b as w,h as i,d as S,t as b,q as x,v as E,F as $,p as D,e as I,_ as N}from"./entry.cd4e0c76.js";import{u as B}from"./vue.f36acd1f.d82ae759.js";import{C as F}from"./CmdPrefix.4284bec8.js";const u=[{name:"subject_list",content:""}];function H(){return u.map(e=>e.name)}function L(e){const n=u.find(t=>t.name===e);return n==null?null:n.content}let a,m,d;function M(e){const n=e.split(" ");if(n.length<=0)return;const t=n[0];n.shift();const c=f.find(r=>r.name===t);if(c==null){a(`Unknown command ${t}`);return}c.action(n)}function P(e){a=e}function R(e){m=e}function O(e){d=e}const f=[{name:"clear",help:"Clears the command history",action:e=>{m()}},{name:"exit",help:"Return to home menu",action:e=>{d("/")}},{name:"gui",help:"Opens graphical user interface",action:e=>{d("/old/gui")}},{name:"help",help:"Show this help",action:e=>{a("================================================="),a("  [Command]           [Description]"),f.forEach(n=>{a(`- ${n.name.padEnd(20," ")}${n.help}`)}),a("=================================================")}},{name:"ls",help:"Shows list of files",action:e=>{H().forEach(n=>{a(n)})}},{name:"cat",help:"Shows file content",action:e=>{if(e.length<1){a("Please specify the file to open");return}const n=e[0],t=L(n);t==null?a(`Error: File ${n} not found`):(a(t),a("(End of file)"))}},{name:"date",help:"Shows current date",action:e=>{a("1997-05-29")}},{name:"ping",help:"Sends ICMP ping requests",action:e=>{if(e.length<1){a("Please specify the address to ping");return}e[0],a("Cannot reach network")}}],l=e=>(D("data-v-08c9d8ac"),e=e(),I(),e),T=l(()=>o("div",{class:"scanlines"},null,-1)),V={class:"screen screen-fullscreen theme-light palette-default",id:"screen"},q=l(()=>o("br",null,null,-1)),A=l(()=>o("p",{class:"ca"},"Shell version 1.02",-1)),j=["innerHTML"],z={class:"ca"},K={class:"prompt"},U=["data-blink"],Z={class:"prompt-input"},G=["data-blink"],J=l(()=>o("div",{class:"screen-grower"},null,-1)),Q="[a-zA-Z0-9 _\\-()#.,]",W=v({__name:"cmd",setup(e){B({title:"Aperture Science Command Line Interface"});const n=g(),t=p(""),c=p("");function r(s){if(s.key==="Enter"){h(),s.preventDefault();return}if(s.key.length===1&&s.key.match(Q)){t.value+=s.key,s.preventDefault();return}s.key==="Backspace"&&(t.value=t.value.slice(0,-1),s.preventDefault())}function h(){const s=t.value;t.value="",console.log("Command",s),c.value+=`<pre>&gt;${s}</pre>`,M(s.toLowerCase())}function _(s){c.value+=`<pre>${s}</pre>`}return k(()=>{P(_),R(()=>c.value=""),O(s=>n.push(s))}),(s,X)=>(C(),y($,null,[o("div",{onKeydown:r,contenteditable:"true",class:"fakeinput",spellcheck:"false"},null,32),T,o("div",V,[w(F,{class:"ca"}),q,A,o("div",{class:"ca",innerHTML:i(c)},null,8,j),o("div",z,[o("p",K,[o("span",{class:"prompt-blinker","data-blink":i(t)===""},">",8,U),o("span",Z,[S(b(i(t)),1),x(o("span",{class:"prompt-blinker","data-blink":i(t)!==""},"_",8,G),[[E,i(t)!==""]])])])]),J])],64))}});const te=N(W,[["__scopeId","data-v-08c9d8ac"]]);export{te as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.