-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathAfterCreateSteps-tl5rvQls.js
More file actions
7 lines (7 loc) · 2.99 KB
/
Copy pathAfterCreateSteps-tl5rvQls.js
File metadata and controls
7 lines (7 loc) · 2.99 KB
1
2
3
4
5
6
7
import{Q as e,S as t,T as n,U as r,Wt as i,b as a,vt as o,w as s,y as c,z as l}from"./vue.runtime.esm-bundler-BdVAZHbZ.js";import{i as u}from"./dist-B6FUfOuV.js";import{t as d}from"./useTranslations-BGi-iJ5u.js";import{t as f}from"./AdminLayout-DqDQ7E1m.js";import{t as p}from"./AppBreadcrumb-DKf-jzdI.js";import{t as m}from"./button-Dubrkjpz.js";function h(e,n){return l(),t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`},[c(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z`})])}var g={class:`px-10 py-8 mx-auto max-w-4xl text-foreground`},_={class:`flex justify-between mb-4`},v={class:`bg-card shadow rounded-lg p-6 mt-6`},y={class:`flex flex-col items-center justify-center`},b={class:`text-2xl font-bold text-success`},x={class:`uppercase font-bold mt-3 text-foreground`},S={class:`flex flex-col space-y-4 mt-6 prose-lg prose dark:prose-invert max-w-none`},C={target:`_blank`,class:`text-primary hover:text-primary whitespace-nowrap`,href:`https://github.com/MineTrax/plugin/releases/latest`},w={class:`bg-muted rounded-lg p-4 text-sm overflow-x-auto`},T={class:`flex justify-end mt-6`},E={__name:`AfterCreateSteps`,props:{server:{type:Object,required:!0},apiKey:{type:String,required:!0},apiSecret:{type:String,required:!0},apiHost:{type:String,required:!0}},setup(t){let{__:E}=d(),D=[{text:E(`Admin`),current:!1},{text:E(`Servers`),url:route(`admin.server.index`),current:!1},{text:E(`Server Created`),current:!0}];return(d,O)=>{let k=r(`app-head`);return l(),a(f,null,{default:e(()=>[n(k,{title:o(E)(`Server Created Successfully!`)},null,8,[`title`]),c(`div`,g,[c(`div`,_,[n(p,{class:`mt-0`,"breadcrumb-class":`max-w-none px-0 md:px-0`,items:D})]),c(`div`,v,[c(`div`,y,[n(o(h),{class:`h-32 text-success`,"aria-hidden":`true`}),c(`h1`,b,i(o(E)(`Server Added Successfully!`)),1),c(`h2`,x,i(o(E)(`Follow below steps to add the Plugin!`)),1)]),c(`div`,S,[c(`p`,null,[s(i(o(E)(`Download latest version of the MineTrax.jar Plugin and upload it into'plugins'folder of your server.`))+` `,1),c(`a`,C,i(o(E)(`Click here to Download`)),1)]),c(`p`,null,[s(i(o(E)(`Restart your server once so that the plugin can generate the config file inside`))+` `,1),O[0]||=c(`kbd`,{class:`bg-muted px-1.5 py-0.5 rounded text-sm`},`plugins/Minetrax/config.yml`,-1),O[1]||=s(`. `,-1)]),c(`div`,null,[s(i(o(E)(`Open the config file and update the following details in it as provided below`))+`: `,1),c(`pre`,w,`enabled: true
api-host: `+i(t.apiHost)+`
api-key: `+i(t.apiKey)+`
api-secret: `+i(t.apiSecret)+`
server-id: `+i(t.server.id)+`
webquery-host: 0.0.0.0
webquery-port: `+i(t.server.webquery_port),1)]),c(`p`,null,i(o(E)(`Restart your server again and you are all set!`)),1)]),c(`div`,T,[n(o(m),{"as-child":``},{default:e(()=>[n(o(u),{href:d.route(`admin.server.index`)},{default:e(()=>[s(i(o(E)(`Go back to Server List`)),1)]),_:1},8,[`href`])]),_:1})])])])]),_:1})}}};export{E as default};