Files
next-gdrive-index/src/config/site.config.js
T
2023-04-21 21:07:19 +07:00

76 lines
2.3 KiB
JavaScript

import { BsGithub, BsDiscord, BsPaypal } from "react-icons/bs";
const config = {
/* Site MetaData */
// The name of the site
siteName: "My Drive Linker",
// Fav icon of the site
// Also used as the logo of the site on the navbar
siteIcon: "/favicon.ico",
// Navbar menu links
navbarLinks: [
{
icon: BsDiscord,
name: "Discord",
href: "https://discord.gg/xxxxxx",
newTab: true,
},
{
icon: BsGithub,
name: "GitHub",
href: "https://www.github.com/mbaharip",
newTab: true,
},
{
icon: BsPaypal,
name: "Donate",
href: "https://www.paypal.me/mbaharip",
newTab: true,
},
{
name: "Main Website",
href: "https://www.mbaharip.com",
newTab: true,
},
],
// Footer text
// It will be rendered as
// {year} {footerText} - Powered by guDora-index {version} ❤️
footerText: "gDrive Linker",
/* Config for files render */
files: {
// How many files to show per page
itemsPerPage: 100,
// Max number of files to show in search result
searchResult: 10,
// Starting point of the drive
// Use 'root' to use My Drive as starting point
// Or use folder id to use a specific folder as starting point
rootFolder: "1KgPV6QB1GYT8fmn2uTfbtr9rDXqcRR0j",
// If this set to true, any user can download or view protected files.
// If this set to false, only authorized users can download or view protected files.
// The authorized users URL will have a token in it that valid for 1 hour.
allowDownloadProtectedFiles: true, // If this set to true, any user can download protected files, but can't see the details of the file or folder.
},
/* Config for readme file render */
readme: {
// If this set to true, it will render the readme file on the page.
render: true,
// Position of the readme file on the page.
// It can be "start" or "end".
position: "end",
// Render image description based on the image alt text.
renderImageAlt: true,
},
/* Config for file preview */
preview: {
// Timeout duration for preview request
// If the request takes longer than this, it will be canceled.
// And the thumbnail or the file icon will be shown instead.
// The value is in milliseconds.
timeout: 30000,
},
};
export default config;