From 8e13baac58e7a90344956d2d3be02fa31630a13c Mon Sep 17 00:00:00 2001 From: gh-actions Date: Tue, 2 Jul 2024 18:13:33 +0000 Subject: [PATCH] Deploy website - based on 762dedb4006ff1605572544d9be8be00bc458d68 --- 404.html | 2 +- __docusaurus/debug.html | 2 +- __docusaurus/debug/config.html | 2 +- __docusaurus/debug/content.html | 2 +- __docusaurus/debug/globalData.html | 2 +- __docusaurus/debug/metadata.html | 2 +- __docusaurus/debug/registry.html | 2 +- __docusaurus/debug/routes.html | 2 +- acars/configmaps.html | 2 +- acars/customization.html | 2 +- acars/eula.html | 2 +- acars/flight.html | 2 +- acars/install-server.html | 2 +- acars/overview.html | 2 +- acars/packaging.html | 2 +- acars/rules.html | 2 +- acars/user-guide.html | 2 +- acars/vse.html | 2 +- api/apis.html | 2 +- api/auth.html | 2 +- api/overview.html | 2 +- assets/js/0a4b5b56.ea1a6710.js | 1 - assets/js/0a4b5b56.f8dc0d8a.js | 1 + assets/js/d321ea2e.85fc76bf.js | 1 - assets/js/d321ea2e.93245173.js | 1 + ...ntime~main.53a23807.js => runtime~main.aed4c6e0.js} | 2 +- config/backups.html | 2 +- config/debug.html | 2 +- config/email.html | 2 +- config/files.html | 2 +- config/language.html | 2 +- config/notifications.html | 2 +- config/optimizing.html | 2 +- customize/layouts.html | 2 +- customize/maps.html | 2 +- customize/theming.html | 2 +- developers/addons.html | 2 +- developers/awards.html | 2 +- developers/building-assets.html | 2 +- developers/environment.html | 2 +- download.html | 2 +- guides/basics.html | 2 +- guides/finances.html | 2 +- help.html | 2 +- index.html | 2 +- installation.html | 2 +- installation/cron.html | 2 +- installation/importing.html | 2 +- installation/issues.html | 2 +- installation/updating.html | 2 +- installation/uploading.html | 2 +- installation/vhost.html | 2 +- oauth/discord.html | 8 ++++++-- oauth/vatsim.html | 10 +++++++--- requirements.html | 2 +- search.html | 2 +- 56 files changed, 65 insertions(+), 57 deletions(-) delete mode 100644 assets/js/0a4b5b56.ea1a6710.js create mode 100644 assets/js/0a4b5b56.f8dc0d8a.js delete mode 100644 assets/js/d321ea2e.85fc76bf.js create mode 100644 assets/js/d321ea2e.93245173.js rename assets/js/{runtime~main.53a23807.js => runtime~main.aed4c6e0.js} (97%) diff --git a/404.html b/404.html index 9a04c687..284b9672 100644 --- a/404.html +++ b/404.html @@ -10,7 +10,7 @@ - + diff --git a/__docusaurus/debug.html b/__docusaurus/debug.html index 85194fab..8cb28cca 100644 --- a/__docusaurus/debug.html +++ b/__docusaurus/debug.html @@ -10,7 +10,7 @@ - + diff --git a/__docusaurus/debug/config.html b/__docusaurus/debug/config.html index ba73abc0..5bd17191 100644 --- a/__docusaurus/debug/config.html +++ b/__docusaurus/debug/config.html @@ -10,7 +10,7 @@ - + diff --git a/__docusaurus/debug/content.html b/__docusaurus/debug/content.html index 3ce25e1e..8a999c9f 100644 --- a/__docusaurus/debug/content.html +++ b/__docusaurus/debug/content.html @@ -10,7 +10,7 @@ - + diff --git a/__docusaurus/debug/globalData.html b/__docusaurus/debug/globalData.html index fae47d62..b9321830 100644 --- a/__docusaurus/debug/globalData.html +++ b/__docusaurus/debug/globalData.html @@ -10,7 +10,7 @@ - + diff --git a/__docusaurus/debug/metadata.html b/__docusaurus/debug/metadata.html index f21cc9bc..1bb1cc9b 100644 --- a/__docusaurus/debug/metadata.html +++ b/__docusaurus/debug/metadata.html @@ -10,7 +10,7 @@ - + diff --git a/__docusaurus/debug/registry.html b/__docusaurus/debug/registry.html index 7cf2751c..0309813e 100644 --- a/__docusaurus/debug/registry.html +++ b/__docusaurus/debug/registry.html @@ -10,7 +10,7 @@ - + diff --git a/__docusaurus/debug/routes.html b/__docusaurus/debug/routes.html index 7501538b..cf8ce86a 100644 --- a/__docusaurus/debug/routes.html +++ b/__docusaurus/debug/routes.html @@ -10,7 +10,7 @@ - + diff --git a/acars/configmaps.html b/acars/configmaps.html index e92e702c..b8cd2e60 100644 --- a/acars/configmaps.html +++ b/acars/configmaps.html @@ -10,7 +10,7 @@ - + diff --git a/acars/customization.html b/acars/customization.html index d8e6f9f9..2b5f119c 100644 --- a/acars/customization.html +++ b/acars/customization.html @@ -10,7 +10,7 @@ - + diff --git a/acars/eula.html b/acars/eula.html index 8c455819..d1bbbd22 100644 --- a/acars/eula.html +++ b/acars/eula.html @@ -10,7 +10,7 @@ - + diff --git a/acars/flight.html b/acars/flight.html index ebf38d87..c893b990 100644 --- a/acars/flight.html +++ b/acars/flight.html @@ -10,7 +10,7 @@ - + diff --git a/acars/install-server.html b/acars/install-server.html index 68bd15cc..12b68c69 100644 --- a/acars/install-server.html +++ b/acars/install-server.html @@ -10,7 +10,7 @@ - + diff --git a/acars/overview.html b/acars/overview.html index 8b770348..094fbad9 100644 --- a/acars/overview.html +++ b/acars/overview.html @@ -10,7 +10,7 @@ - + diff --git a/acars/packaging.html b/acars/packaging.html index beb81c74..212cc41b 100644 --- a/acars/packaging.html +++ b/acars/packaging.html @@ -10,7 +10,7 @@ - + diff --git a/acars/rules.html b/acars/rules.html index 43caea3f..93dc1a63 100644 --- a/acars/rules.html +++ b/acars/rules.html @@ -10,7 +10,7 @@ - + diff --git a/acars/user-guide.html b/acars/user-guide.html index d0d718ad..0f3d8bae 100644 --- a/acars/user-guide.html +++ b/acars/user-guide.html @@ -10,7 +10,7 @@ - + diff --git a/acars/vse.html b/acars/vse.html index 0976bdfa..4174909d 100644 --- a/acars/vse.html +++ b/acars/vse.html @@ -10,7 +10,7 @@ - + diff --git a/api/apis.html b/api/apis.html index 91faea45..963edae4 100644 --- a/api/apis.html +++ b/api/apis.html @@ -10,7 +10,7 @@ - + diff --git a/api/auth.html b/api/auth.html index bf2b8256..807e1dd9 100644 --- a/api/auth.html +++ b/api/auth.html @@ -10,7 +10,7 @@ - + diff --git a/api/overview.html b/api/overview.html index 57196988..616f4b30 100644 --- a/api/overview.html +++ b/api/overview.html @@ -10,7 +10,7 @@ - + diff --git a/assets/js/0a4b5b56.ea1a6710.js b/assets/js/0a4b5b56.ea1a6710.js deleted file mode 100644 index 9e7e1e7c..00000000 --- a/assets/js/0a4b5b56.ea1a6710.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkphpvms_docs=self.webpackChunkphpvms_docs||[]).push([[2872],{8335:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>l,frontMatter:()=>o,metadata:()=>r,toc:()=>d});var i=n(4848),a=n(8453);const o={id:"vatsim",title:"VATSIM",sidebar_title:"VATSIM"},s=void 0,r={id:"oauth/vatsim",title:"VATSIM",description:"First, you need to create a vatsim organization on the VATSIM website.",source:"@site/docs/oauth/vatsim.md",sourceDirName:"oauth",slug:"/oauth/vatsim",permalink:"/oauth/vatsim",draft:!1,unlisted:!1,editUrl:"https://github.com/phpvms/docs/tree/master/docs/oauth/vatsim.md",tags:[],version:"current",frontMatter:{id:"vatsim",title:"VATSIM",sidebar_title:"VATSIM"},sidebar:"docs",previous:{title:"Discord",permalink:"/oauth/discord"},next:{title:"Layouts and Template Basics",permalink:"/customize/layouts"}},c={},d=[];function h(e){const t={a:"a",code:"code",img:"img",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(t.p,{children:["First, you need to ",(0,i.jsx)(t.a,{href:"https://auth.vatsim.net/organization/requirements",children:"create a vatsim organization"})," on the VATSIM website."]}),"\n",(0,i.jsxs)(t.p,{children:["After your organization has been approved by VATSIM, you can create a new OAuth client.\nGo to the ",(0,i.jsx)(t.a,{href:"https://auth.vatsim.net/organization",children:"Organizations"})," tab and into the organization you created. Navigate to the 'OAuth clients' tab and add a new client.\nIn the redirect URL, enter: ",(0,i.jsx)(t.code,{children:"https://yourdomain.com/oauth/vatsim/callback"})]}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.img,{src:n(1189).A+"",width:"1661",height:"482"})}),"\n",(0,i.jsxs)(t.p,{children:["In the ",(0,i.jsx)(t.code,{children:".env"})," file, add the following:"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:'title=".env"',children:"VATSIM_OAUTH_ENABLED=true\nVATSIM_CLIENT_ID={your_client_id}\nVATSIM_CLIENT_SECRET={your_client_secret}\n"})}),"\n",(0,i.jsx)(t.p,{children:"You can retrieve your client ID and your client secret from the OAuth clients page after creating the client as explained above."}),"\n",(0,i.jsx)(t.p,{children:'Now, your users can link their VATSIM account to their phpVMS account and use their VATSIM account to log in. The link between the two accounts is automatically established when clicking the "Login with VATSIM" button on the login page. However, if the email address of the VATSIM account is different from the email address of the phpVMS account, it must be done manually on the profile page.'})]})}function l(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},1189:(e,t,n)=>{n.d(t,{A:()=>i});const i=n.p+"assets/images/create-vatsim-43171e28d7899bf84b60bd726be39a17.png"},8453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>r});var i=n(6540);const a={},o=i.createContext(a);function s(e){const t=i.useContext(o);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),i.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0a4b5b56.f8dc0d8a.js b/assets/js/0a4b5b56.f8dc0d8a.js new file mode 100644 index 00000000..35f13f1f --- /dev/null +++ b/assets/js/0a4b5b56.f8dc0d8a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkphpvms_docs=self.webpackChunkphpvms_docs||[]).push([[2872],{8335:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>r,contentTitle:()=>a,default:()=>l,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var i=n(4848),s=n(8453);const o={id:"vatsim",title:"VATSIM",sidebar_title:"VATSIM"},a=void 0,c={id:"oauth/vatsim",title:"VATSIM",description:"First, you need to create a vatsim organization on the VATSIM website.",source:"@site/docs/oauth/vatsim.md",sourceDirName:"oauth",slug:"/oauth/vatsim",permalink:"/oauth/vatsim",draft:!1,unlisted:!1,editUrl:"https://github.com/phpvms/docs/tree/master/docs/oauth/vatsim.md",tags:[],version:"current",frontMatter:{id:"vatsim",title:"VATSIM",sidebar_title:"VATSIM"},sidebar:"docs",previous:{title:"Discord",permalink:"/oauth/discord"},next:{title:"Layouts and Template Basics",permalink:"/customize/layouts"}},r={},d=[{value:"Customizing scopes",id:"customizing-scopes",level:2}];function h(e){const t={a:"a",code:"code",h2:"h2",img:"img",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(t.p,{children:["First, you need to ",(0,i.jsx)(t.a,{href:"https://auth.vatsim.net/organization/requirements",children:"create a vatsim organization"})," on the VATSIM website."]}),"\n",(0,i.jsxs)(t.p,{children:["After your organization has been approved by VATSIM, you can create a new OAuth client.\nGo to the ",(0,i.jsx)(t.a,{href:"https://auth.vatsim.net/organization",children:"Organizations"})," tab and into the organization you created. Navigate to the 'OAuth clients' tab and add a new client.\nIn the redirect URL, enter: ",(0,i.jsx)(t.code,{children:"https://yourdomain.com/oauth/vatsim/callback"})]}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.img,{src:n(1189).A+"",width:"1661",height:"482"})}),"\n",(0,i.jsxs)(t.p,{children:["In the ",(0,i.jsx)(t.code,{children:".env"})," file, add the following:"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:'title=".env"',children:"VATSIM_OAUTH_ENABLED=true\nVATSIM_CLIENT_ID={your_client_id}\nVATSIM_CLIENT_SECRET={your_client_secret}\n"})}),"\n",(0,i.jsx)(t.p,{children:"You can retrieve your client ID and your client secret from the OAuth clients page after creating the client as explained above."}),"\n",(0,i.jsx)(t.p,{children:'Now, your users can link their VATSIM account to their phpVMS account and use their VATSIM account to log in. The link between the two accounts is automatically established when clicking the "Login with VATSIM" button on the login page. However, if the email address of the VATSIM account is different from the email address of the phpVMS account, it must be done manually on the profile page.'}),"\n",(0,i.jsx)(t.h2,{id:"customizing-scopes",children:"Customizing scopes"}),"\n",(0,i.jsxs)(t.p,{children:["You can add scopes to the OAuth request in addition to the default scopes by adding your scopes to the ",(0,i.jsx)(t.code,{children:".env"})," file, separated by commas.\nSee ",(0,i.jsx)(t.a,{href:"https://vatsim.dev/api/connect-api/redirect",children:"VATSIM Scopes List"})]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:'title=".env"',children:"VATSIM_SCOPES=scope1,scope2\n"})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},1189:(e,t,n)=>{n.d(t,{A:()=>i});const i=n.p+"assets/images/create-vatsim-43171e28d7899bf84b60bd726be39a17.png"},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>c});var i=n(6540);const s={},o=i.createContext(s);function a(e){const t=i.useContext(o);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),i.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d321ea2e.85fc76bf.js b/assets/js/d321ea2e.85fc76bf.js deleted file mode 100644 index 4cdb5f9d..00000000 --- a/assets/js/d321ea2e.85fc76bf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkphpvms_docs=self.webpackChunkphpvms_docs||[]).push([[1526],{3964:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>n,metadata:()=>r,toc:()=>a});var i=o(4848),s=o(8453);const n={id:"discord",title:"Discord",sidebar_title:"Discord"},c=void 0,r={id:"oauth/discord",title:"Discord",description:"First, you need to create a developer application on the Discord website. If you have already created this application to use the rich presence of vmsACARS, you can use the same one.",source:"@site/docs/oauth/discord.md",sourceDirName:"oauth",slug:"/oauth/discord",permalink:"/oauth/discord",draft:!1,unlisted:!1,editUrl:"https://github.com/phpvms/docs/tree/master/docs/oauth/discord.md",tags:[],version:"current",frontMatter:{id:"discord",title:"Discord",sidebar_title:"Discord"},sidebar:"docs",previous:{title:"Backups",permalink:"/config/backups"},next:{title:"VATSIM",permalink:"/oauth/vatsim"}},d={},a=[{value:"Sending Private Messages",id:"sending-private-messages",level:2}];function l(e){const t={a:"a",code:"code",h2:"h2",img:"img",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(t.p,{children:["First, you need to ",(0,i.jsx)(t.a,{href:"https://discord.com/developers/applications",children:"create a developer application"})," on the Discord website. If you have already created this application to use the rich presence of vmsACARS, you can use the same one."]}),"\n",(0,i.jsxs)(t.p,{children:["Next, go to OAuth2 > General. Copy the client ID and client secret to be used in the configuration later. Additionally, you need to add a redirect; the URL to add is ",(0,i.jsx)(t.code,{children:"https://yourdomain.com/oauth/discord/callback"}),"."]}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.img,{src:o(7655).A+"",width:"1279",height:"548"})}),"\n",(0,i.jsxs)(t.p,{children:["In the ",(0,i.jsx)(t.code,{children:".env"})," file, add the following:"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:'title=".env"',children:"DISCORD_OAUTH_ENABLED=true\nDISCORD_CLIENT_ID={your_client_id_copied_before}\nDISCORD_CLIENT_SECRET={your_client_secret_copied_before}\n"})}),"\n",(0,i.jsx)(t.p,{children:'Now, your users can link their Discord account to their phpVMS account and use their Discord account to log in. The link between the two accounts is automatically established when clicking the "Login with Discord" button on the login page. However, if the email address of the Discord account is different from the email address of the phpVMS account, it must be done manually on the profile page.'}),"\n",(0,i.jsx)(t.h2,{id:"sending-private-messages",children:"Sending Private Messages"}),"\n",(0,i.jsxs)(t.p,{children:["If you want to send private message notifications to your users (development still in progress), you need to create a Discord bot in the bot section of your Discord application and copy the token. ",(0,i.jsx)("br",{}),"\nIf this option is not enabled, the ",(0,i.jsx)(t.code,{children:"discord_private_channel_id"})," field will not be filled. This field contains a unique discussion ID between the bot and the user, so it is imperative to have a bot to fill it."]}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.img,{src:o(803).A+"",width:"1387",height:"599"})}),"\n",(0,i.jsxs)(t.p,{children:["Place the token in the ",(0,i.jsx)(t.code,{children:".env"}),":"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:'title=".env"',children:"DISCORD_BOT_TOKEN={your_bot_token_copied_before}\n"})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},803:(e,t,o)=>{o.d(t,{A:()=>i});const i=o.p+"assets/images/create-discord-bot-ca86bdcff6df0c8ea17ad4614983431c.png"},7655:(e,t,o)=>{o.d(t,{A:()=>i});const i=o.p+"assets/images/create-discord-3e4ff6daa49cdb7fe3bcdcfa9910a996.png"},8453:(e,t,o)=>{o.d(t,{R:()=>c,x:()=>r});var i=o(6540);const s={},n=i.createContext(s);function c(e){const t=i.useContext(n);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),i.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d321ea2e.93245173.js b/assets/js/d321ea2e.93245173.js new file mode 100644 index 00000000..d4efd486 --- /dev/null +++ b/assets/js/d321ea2e.93245173.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkphpvms_docs=self.webpackChunkphpvms_docs||[]).push([[1526],{3964:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>r,contentTitle:()=>c,default:()=>h,frontMatter:()=>n,metadata:()=>d,toc:()=>a});var o=s(4848),i=s(8453);const n={id:"discord",title:"Discord",sidebar_title:"Discord"},c=void 0,d={id:"oauth/discord",title:"Discord",description:"First, you need to create a developer application on the Discord website. If you have already created this application to use the rich presence of vmsACARS, you can use the same one.",source:"@site/docs/oauth/discord.md",sourceDirName:"oauth",slug:"/oauth/discord",permalink:"/oauth/discord",draft:!1,unlisted:!1,editUrl:"https://github.com/phpvms/docs/tree/master/docs/oauth/discord.md",tags:[],version:"current",frontMatter:{id:"discord",title:"Discord",sidebar_title:"Discord"},sidebar:"docs",previous:{title:"Backups",permalink:"/config/backups"},next:{title:"VATSIM",permalink:"/oauth/vatsim"}},r={},a=[{value:"Sending Private Messages",id:"sending-private-messages",level:2},{value:"Customizing scopes",id:"customizing-scopes",level:2}];function l(e){const t={a:"a",code:"code",h2:"h2",img:"img",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t.p,{children:["First, you need to ",(0,o.jsx)(t.a,{href:"https://discord.com/developers/applications",children:"create a developer application"})," on the Discord website. If you have already created this application to use the rich presence of vmsACARS, you can use the same one."]}),"\n",(0,o.jsxs)(t.p,{children:["Next, go to OAuth2 > General. Copy the client ID and client secret to be used in the configuration later. Additionally, you need to add a redirect; the URL to add is ",(0,o.jsx)(t.code,{children:"https://yourdomain.com/oauth/discord/callback"}),"."]}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.img,{src:s(7655).A+"",width:"1279",height:"548"})}),"\n",(0,o.jsxs)(t.p,{children:["In the ",(0,o.jsx)(t.code,{children:".env"})," file, add the following:"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-shell",metastring:'title=".env"',children:"DISCORD_OAUTH_ENABLED=true\nDISCORD_CLIENT_ID={your_client_id_copied_before}\nDISCORD_CLIENT_SECRET={your_client_secret_copied_before}\n"})}),"\n",(0,o.jsx)(t.p,{children:'Now, your users can link their Discord account to their phpVMS account and use their Discord account to log in. The link between the two accounts is automatically established when clicking the "Login with Discord" button on the login page. However, if the email address of the Discord account is different from the email address of the phpVMS account, it must be done manually on the profile page.'}),"\n",(0,o.jsx)(t.h2,{id:"sending-private-messages",children:"Sending Private Messages"}),"\n",(0,o.jsxs)(t.p,{children:["If you want to send private message notifications to your users (development still in progress), you need to create a Discord bot in the bot section of your Discord application and copy the token. ",(0,o.jsx)("br",{}),"\nIf this option is not enabled, the ",(0,o.jsx)(t.code,{children:"discord_private_channel_id"})," field will not be filled. This field contains a unique discussion ID between the bot and the user, so it is imperative to have a bot to fill it."]}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.img,{src:s(803).A+"",width:"1387",height:"599"})}),"\n",(0,o.jsxs)(t.p,{children:["Place the token in the ",(0,o.jsx)(t.code,{children:".env"}),":"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-shell",metastring:'title=".env"',children:"DISCORD_BOT_TOKEN={your_bot_token_copied_before}\n"})}),"\n",(0,o.jsx)(t.h2,{id:"customizing-scopes",children:"Customizing scopes"}),"\n",(0,o.jsxs)(t.p,{children:["You can add scopes to the OAuth request in addition to the default scopes by adding your scopes to the ",(0,o.jsx)(t.code,{children:".env"})," file, separated by commas.\nSee ",(0,o.jsx)(t.a,{href:"https://discord.com/developers/docs/topics/oauth2",children:"Discord Scopes List"})]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-shell",metastring:'title=".env"',children:"DISCORD_SCOPES=scope1,scope2\n"})})]})}function h(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},803:(e,t,s)=>{s.d(t,{A:()=>o});const o=s.p+"assets/images/create-discord-bot-ca86bdcff6df0c8ea17ad4614983431c.png"},7655:(e,t,s)=>{s.d(t,{A:()=>o});const o=s.p+"assets/images/create-discord-3e4ff6daa49cdb7fe3bcdcfa9910a996.png"},8453:(e,t,s)=>{s.d(t,{R:()=>c,x:()=>d});var o=s(6540);const i={},n=o.createContext(i);function c(e){const t=o.useContext(n);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),o.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.53a23807.js b/assets/js/runtime~main.aed4c6e0.js similarity index 97% rename from assets/js/runtime~main.53a23807.js rename to assets/js/runtime~main.aed4c6e0.js index afbbf238..0bf35aea 100644 --- a/assets/js/runtime~main.53a23807.js +++ b/assets/js/runtime~main.aed4c6e0.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,d,c,t,r={},f={};function o(e){var a=f[e];if(void 0!==a)return a.exports;var d=f[e]={exports:{}};return r[e].call(d.exports,d,d.exports,o),d.exports}o.m=r,e=[],o.O=(a,d,c,t)=>{if(!d){var r=1/0;for(i=0;i=t)&&Object.keys(o.O).every((e=>o.O[e](d[b])))?d.splice(b--,1):(f=!1,t0&&e[i-1][2]>t;i--)e[i]=e[i-1];e[i]=[d,c,t]},o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a:a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);o.r(t);var r={};a=a||[null,d({}),d([]),d(d)];for(var f=2&c&&e;"object"==typeof f&&!~a.indexOf(f);f=d(f))Object.getOwnPropertyNames(f).forEach((a=>r[a]=()=>e[a]));return r.default=()=>e,o.d(t,r),t},o.d=(e,a)=>{for(var d in a)o.o(a,d)&&!o.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((a,d)=>(o.f[d](e,a),a)),[])),o.u=e=>"assets/js/"+({108:"1564510a",247:"d8476038",303:"e5088ceb",670:"33c130ea",911:"23abe487",1422:"b084b19c",1526:"d321ea2e",1721:"2dc93d78",2138:"1a4e3797",2148:"8d75afaa",2223:"87c61421",2356:"49491008",2680:"6794d4cd",2840:"f9e23376",2872:"0a4b5b56",3075:"8ac604c3",3305:"ee988c53",3320:"439ed213",3452:"246f2c6f",3600:"d91f99a6",3693:"5b44df2c",3906:"928c3d33",3976:"0e384e19",4254:"68e633d4",4287:"c3df0048",4500:"7cbeacc7",4685:"4f3cf9a6",4755:"4e36f707",4919:"3c7192fe",5492:"01ccdc8c",5495:"fd379919",6068:"b1ea96d3",6281:"77bc27dd",6446:"3adbd8a0",6802:"5ed3387d",7098:"a7bd4aaa",7230:"ff47a05f",7247:"0f4b8530",7610:"946bd85a",7628:"840498dd",7746:"3f4ef427",7815:"ba8b3534",8206:"4d47a3a9",8332:"c637e7f0",8401:"17896441",8458:"7968b62e",8504:"ede3a018",8559:"65df3d35",8840:"8afd234a",8907:"0e2110e2",8968:"59b068d1",8991:"687dc341",9048:"a94703ab",9232:"1e924268",9329:"ef3d37e7",9333:"d9ad5537",9647:"5e95c892",9845:"ea0936d6"}[e]||e)+"."+{108:"d16d3ae8",135:"c3e313d1",247:"7b3c609b",303:"44b5b7cb",670:"08e751c2",911:"c2256916",1422:"f9b90095",1526:"85fc76bf",1721:"fb10b236",2138:"e3a41efd",2148:"6a99f73d",2223:"4fb45a0d",2356:"955e2a84",2560:"6e4cac7a",2680:"80c181e4",2840:"d808686c",2872:"ea1a6710",3075:"605880a9",3305:"aeca2339",3320:"753026eb",3452:"b12fbb02",3600:"b44f7015",3693:"fd9ae90d",3906:"9f171a82",3976:"0e0efc4d",4254:"a7a48c7a",4287:"788ca4a8",4500:"57e1f5c5",4685:"60e3ceb7",4755:"f8b748a6",4919:"dd73e421",5492:"c0f9f007",5495:"f041d5de",6068:"3fd24fc3",6281:"dbd11910",6446:"e421b3fe",6802:"bdd6e12f",7098:"7dd7c247",7230:"b02d0d51",7247:"c20cc6ab",7610:"7d72fa45",7628:"a2efb2a5",7746:"7385647a",7815:"5d0504e7",8206:"b37d6343",8332:"f91409ad",8401:"0a9448e1",8458:"b1d50342",8504:"dcd1b2a9",8559:"86010faf",8840:"4663e2fa",8907:"265dd9be",8913:"1e40a87c",8968:"c80ee600",8991:"e3adaf53",9048:"3a790efc",9232:"bf379ded",9329:"421974f9",9333:"cea18206",9462:"16b9e8da",9647:"5ca871fb",9845:"b9664028"}[e]+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},t="phpvms-docs:",o.l=(e,a,d,r)=>{if(c[e])c[e].push(a);else{var f,b;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],f.parentNode&&f.parentNode.removeChild(f),t&&t.forEach((e=>e(d))),a)return a(d)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",o.gca=function(e){return e={17896441:"8401",49491008:"2356","1564510a":"108",d8476038:"247",e5088ceb:"303","33c130ea":"670","23abe487":"911",b084b19c:"1422",d321ea2e:"1526","2dc93d78":"1721","1a4e3797":"2138","8d75afaa":"2148","87c61421":"2223","6794d4cd":"2680",f9e23376:"2840","0a4b5b56":"2872","8ac604c3":"3075",ee988c53:"3305","439ed213":"3320","246f2c6f":"3452",d91f99a6:"3600","5b44df2c":"3693","928c3d33":"3906","0e384e19":"3976","68e633d4":"4254",c3df0048:"4287","7cbeacc7":"4500","4f3cf9a6":"4685","4e36f707":"4755","3c7192fe":"4919","01ccdc8c":"5492",fd379919:"5495",b1ea96d3:"6068","77bc27dd":"6281","3adbd8a0":"6446","5ed3387d":"6802",a7bd4aaa:"7098",ff47a05f:"7230","0f4b8530":"7247","946bd85a":"7610","840498dd":"7628","3f4ef427":"7746",ba8b3534:"7815","4d47a3a9":"8206",c637e7f0:"8332","7968b62e":"8458",ede3a018:"8504","65df3d35":"8559","8afd234a":"8840","0e2110e2":"8907","59b068d1":"8968","687dc341":"8991",a94703ab:"9048","1e924268":"9232",ef3d37e7:"9329",d9ad5537:"9333","5e95c892":"9647",ea0936d6:"9845"}[e]||e,o.p+o.u(e)},(()=>{var e={5354:0,1869:0};o.f.j=(a,d)=>{var c=o.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var t=new Promise(((d,t)=>c=e[a]=[d,t]));d.push(c[2]=t);var r=o.p+o.u(a),f=new Error;o.l(r,(d=>{if(o.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var t=d&&("load"===d.type?"missing":d.type),r=d&&d.target&&d.target.src;f.message="Loading chunk "+a+" failed.\n("+t+": "+r+")",f.name="ChunkLoadError",f.type=t,f.request=r,c[1](f)}}),"chunk-"+a,a)}},o.O.j=a=>0===e[a];var a=(a,d)=>{var c,t,[r,f,b]=d,n=0;if(r.some((a=>0!==e[a]))){for(c in f)o.o(f,c)&&(o.m[c]=f[c]);if(b)var i=b(o)}for(a&&a(d);n{"use strict";var e,a,d,c,t,r={},f={};function o(e){var a=f[e];if(void 0!==a)return a.exports;var d=f[e]={exports:{}};return r[e].call(d.exports,d,d.exports,o),d.exports}o.m=r,e=[],o.O=(a,d,c,t)=>{if(!d){var r=1/0;for(i=0;i=t)&&Object.keys(o.O).every((e=>o.O[e](d[b])))?d.splice(b--,1):(f=!1,t0&&e[i-1][2]>t;i--)e[i]=e[i-1];e[i]=[d,c,t]},o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a:a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);o.r(t);var r={};a=a||[null,d({}),d([]),d(d)];for(var f=2&c&&e;"object"==typeof f&&!~a.indexOf(f);f=d(f))Object.getOwnPropertyNames(f).forEach((a=>r[a]=()=>e[a]));return r.default=()=>e,o.d(t,r),t},o.d=(e,a)=>{for(var d in a)o.o(a,d)&&!o.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((a,d)=>(o.f[d](e,a),a)),[])),o.u=e=>"assets/js/"+({108:"1564510a",247:"d8476038",303:"e5088ceb",670:"33c130ea",911:"23abe487",1422:"b084b19c",1526:"d321ea2e",1721:"2dc93d78",2138:"1a4e3797",2148:"8d75afaa",2223:"87c61421",2356:"49491008",2680:"6794d4cd",2840:"f9e23376",2872:"0a4b5b56",3075:"8ac604c3",3305:"ee988c53",3320:"439ed213",3452:"246f2c6f",3600:"d91f99a6",3693:"5b44df2c",3906:"928c3d33",3976:"0e384e19",4254:"68e633d4",4287:"c3df0048",4500:"7cbeacc7",4685:"4f3cf9a6",4755:"4e36f707",4919:"3c7192fe",5492:"01ccdc8c",5495:"fd379919",6068:"b1ea96d3",6281:"77bc27dd",6446:"3adbd8a0",6802:"5ed3387d",7098:"a7bd4aaa",7230:"ff47a05f",7247:"0f4b8530",7610:"946bd85a",7628:"840498dd",7746:"3f4ef427",7815:"ba8b3534",8206:"4d47a3a9",8332:"c637e7f0",8401:"17896441",8458:"7968b62e",8504:"ede3a018",8559:"65df3d35",8840:"8afd234a",8907:"0e2110e2",8968:"59b068d1",8991:"687dc341",9048:"a94703ab",9232:"1e924268",9329:"ef3d37e7",9333:"d9ad5537",9647:"5e95c892",9845:"ea0936d6"}[e]||e)+"."+{108:"d16d3ae8",135:"c3e313d1",247:"7b3c609b",303:"44b5b7cb",670:"08e751c2",911:"c2256916",1422:"f9b90095",1526:"93245173",1721:"fb10b236",2138:"e3a41efd",2148:"6a99f73d",2223:"4fb45a0d",2356:"955e2a84",2560:"6e4cac7a",2680:"80c181e4",2840:"d808686c",2872:"f8dc0d8a",3075:"605880a9",3305:"aeca2339",3320:"753026eb",3452:"b12fbb02",3600:"b44f7015",3693:"fd9ae90d",3906:"9f171a82",3976:"0e0efc4d",4254:"a7a48c7a",4287:"788ca4a8",4500:"57e1f5c5",4685:"60e3ceb7",4755:"f8b748a6",4919:"dd73e421",5492:"c0f9f007",5495:"f041d5de",6068:"3fd24fc3",6281:"dbd11910",6446:"e421b3fe",6802:"bdd6e12f",7098:"7dd7c247",7230:"b02d0d51",7247:"c20cc6ab",7610:"7d72fa45",7628:"a2efb2a5",7746:"7385647a",7815:"5d0504e7",8206:"b37d6343",8332:"f91409ad",8401:"0a9448e1",8458:"b1d50342",8504:"dcd1b2a9",8559:"86010faf",8840:"4663e2fa",8907:"265dd9be",8913:"1e40a87c",8968:"c80ee600",8991:"e3adaf53",9048:"3a790efc",9232:"bf379ded",9329:"421974f9",9333:"cea18206",9462:"16b9e8da",9647:"5ca871fb",9845:"b9664028"}[e]+".js",o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},t="phpvms-docs:",o.l=(e,a,d,r)=>{if(c[e])c[e].push(a);else{var f,b;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],f.parentNode&&f.parentNode.removeChild(f),t&&t.forEach((e=>e(d))),a)return a(d)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",o.gca=function(e){return e={17896441:"8401",49491008:"2356","1564510a":"108",d8476038:"247",e5088ceb:"303","33c130ea":"670","23abe487":"911",b084b19c:"1422",d321ea2e:"1526","2dc93d78":"1721","1a4e3797":"2138","8d75afaa":"2148","87c61421":"2223","6794d4cd":"2680",f9e23376:"2840","0a4b5b56":"2872","8ac604c3":"3075",ee988c53:"3305","439ed213":"3320","246f2c6f":"3452",d91f99a6:"3600","5b44df2c":"3693","928c3d33":"3906","0e384e19":"3976","68e633d4":"4254",c3df0048:"4287","7cbeacc7":"4500","4f3cf9a6":"4685","4e36f707":"4755","3c7192fe":"4919","01ccdc8c":"5492",fd379919:"5495",b1ea96d3:"6068","77bc27dd":"6281","3adbd8a0":"6446","5ed3387d":"6802",a7bd4aaa:"7098",ff47a05f:"7230","0f4b8530":"7247","946bd85a":"7610","840498dd":"7628","3f4ef427":"7746",ba8b3534:"7815","4d47a3a9":"8206",c637e7f0:"8332","7968b62e":"8458",ede3a018:"8504","65df3d35":"8559","8afd234a":"8840","0e2110e2":"8907","59b068d1":"8968","687dc341":"8991",a94703ab:"9048","1e924268":"9232",ef3d37e7:"9329",d9ad5537:"9333","5e95c892":"9647",ea0936d6:"9845"}[e]||e,o.p+o.u(e)},(()=>{var e={5354:0,1869:0};o.f.j=(a,d)=>{var c=o.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var t=new Promise(((d,t)=>c=e[a]=[d,t]));d.push(c[2]=t);var r=o.p+o.u(a),f=new Error;o.l(r,(d=>{if(o.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var t=d&&("load"===d.type?"missing":d.type),r=d&&d.target&&d.target.src;f.message="Loading chunk "+a+" failed.\n("+t+": "+r+")",f.name="ChunkLoadError",f.type=t,f.request=r,c[1](f)}}),"chunk-"+a,a)}},o.O.j=a=>0===e[a];var a=(a,d)=>{var c,t,[r,f,b]=d,n=0;if(r.some((a=>0!==e[a]))){for(c in f)o.o(f,c)&&(o.m[c]=f[c]);if(b)var i=b(o)}for(a&&a(d);n