diff --git a/docs/ox_inventory/External/Client/placeholder.md b/docs/ox_inventory/Functions/External/Client/placeholder.md similarity index 100% rename from docs/ox_inventory/External/Client/placeholder.md rename to docs/ox_inventory/Functions/External/Client/placeholder.md diff --git a/docs/ox_inventory/External/Server/placeholder.md b/docs/ox_inventory/Functions/External/Server/placeholder.md similarity index 100% rename from docs/ox_inventory/External/Server/placeholder.md rename to docs/ox_inventory/Functions/External/Server/placeholder.md diff --git a/docs/ox_inventory/Internal/Client/placeholder.md b/docs/ox_inventory/Functions/Internal/Client/placeholder.md similarity index 100% rename from docs/ox_inventory/Internal/Client/placeholder.md rename to docs/ox_inventory/Functions/Internal/Client/placeholder.md diff --git a/docs/ox_inventory/Internal/Server/placeholder.md b/docs/ox_inventory/Functions/Internal/Server/placeholder.md similarity index 100% rename from docs/ox_inventory/Internal/Server/placeholder.md rename to docs/ox_inventory/Functions/Internal/Server/placeholder.md diff --git a/docs/ox_inventory/installation.md b/docs/ox_inventory/installation.md deleted file mode 100644 index 5bc82334..00000000 --- a/docs/ox_inventory/installation.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Installation ---- \ No newline at end of file diff --git a/docs/ox_inventory/installation.mdx b/docs/ox_inventory/installation.mdx new file mode 100644 index 00000000..2f9cabfe --- /dev/null +++ b/docs/ox_inventory/installation.mdx @@ -0,0 +1,30 @@ +--- +title: Getting Started +--- + +import IconButton from '@site/src/components/IconButton' +import { BsGithub, BsBookHalf } from 'react-icons/bs' + +:::caution + +This resource is being designed with the intention of providing advanced functionality while remaining easy to use, +however it is not recommended for beginners. You must possess a basic understanding of coding and the ability to read; +otherwise you **should not** install this resource. +::: + +## Dependecies + +### OxMySQL + +We utilise our own resource to communicate with MySQL databases via the node-mysql2 package. +The backend is actively maintained and updated unlike the package used by mysql-async, providing improved performance, security, and features. +We provide full backwards compatibility with mysql-async and build for the current Cfx architecture. + +
+ + } style={{marginRight: '0.8rem'}}>GitHub + + + }>Documentation + +
diff --git a/package.json b/package.json index e40db57d..5171d297 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "clsx": "^1.1.1", "prism-react-renderer": "^1.2.1", "react": "^17.0.1", - "react-dom": "^17.0.1" + "react-dom": "^17.0.1", + "react-icons": "^4.3.1" }, "devDependencies": { "@docusaurus/module-type-aliases": "2.0.0-beta.16", diff --git a/src/components/IconButton.tsx b/src/components/IconButton.tsx new file mode 100644 index 00000000..766e6a94 --- /dev/null +++ b/src/components/IconButton.tsx @@ -0,0 +1,41 @@ +import React from 'react'; + +interface Props { + icon: Element; + side: 'left' | 'right'; + style?: React.CSSProperties; +} + +const IconButton: React.FC = (props) => { + const iconStyles: React.CSSProperties = { + fontSize: '1.7rem', + paddingRight: props.side === 'left' && '0.6rem', + paddingLeft: props.side === 'right' && '0.6rem', + verticalAlign: 'center', + display: 'flex', + }; + + return ( +
+ {props.side === 'left' &&
{props.icon}
} +
{props.children}
+ {props.side === 'right' &&
{props.icon}
} +
+ ); +}; + +export default IconButton; diff --git a/src/css/custom.css b/src/css/custom.css index 8b3ad7a6..de80ff15 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -55,3 +55,22 @@ .navbar { background-color: #1d252e; } + +.icon-button { + /* background-color: var(--ifm-color-primary-darkest); */ + transition: 300ms; + border: 0.12rem solid var(--ifm-color-primary-darkest); +} + +.icon-button:hover { + background-color: var(--ifm-color-primary-darkest); + cursor: pointer; +} + +a, +a:hover, +a:focus, +a:active { + text-decoration: none; + color: inherit; +} diff --git a/yarn.lock b/yarn.lock index 5a349464..5ba082b6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6156,6 +6156,11 @@ react-helmet-async@*, react-helmet-async@^1.2.3: react-fast-compare "^3.2.0" shallowequal "^1.1.0" +react-icons@^4.3.1: + version "4.3.1" + resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.3.1.tgz#2fa92aebbbc71f43d2db2ed1aed07361124e91ca" + integrity sha512-cB10MXLTs3gVuXimblAdI71jrJx8njrJZmNMEMC+sQu5B/BIOmlsAjskdqpn81y8UBVEGuHODd7/ci5DvoSzTQ== + react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"