PageSourceSearch

https://www.gamer.ru/public/microservices/pro/pro-viewroute.js

js gamer.ru collected 2026-10-02 03:43:39 UTC 890 bytes, 34 lines download raw bytes

1let { addViewRoute, ajax, checkUser, t } = typeof window !== 'undefined' 
2  ? await import("../../shared/frontend.js") 
3  : await import("../../shared/backend-server.js")
4  
5addViewRoute("/pro", async (param)=>{
6  checkUser(["pro","admin"])
7  return {
8    content:`
9      <div class='paper'>
10        <h1><t-r>pro functions</t-r></h1>
11        <t-r>pro description</t-r>
12        <br>
13        <a href=/pro/adv><t-r>pro adv list</t-r></a>
14      </div>
15    `, 
16    title:t("pro functions list")
17  }
18})
19
20addViewRoute("/pro/adv", async (param)=>{
21  checkUser(["pro","admin"])
22  return {
23    content:`<s-pro-advflow title="<t-r>pro adv list</t-r>"></s-pro-advflow>`, 
24    title:t("pro adv list")
25  }
26})
27
28addViewRoute("/pro/adv/:id", async (param)=>{
29  checkUser(["pro","admin"])
30  return {
31    content:`<s-pro-adv adv=${param.id}></s-pro-adv>`, 
32    title:`${t("pro adv item")} ${param.id}`
33  }
34})

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.