2022-01-29 07:40:50 +00:00
/ * *
* This file contains the configuration used for customising the website , such as the folder to share ,
* the title , used Google fonts , site icons , contact info , etc .
* /
module . exports = {
// This is what we use to identify who you are when you are initialising the website for the first time.
// Make sure this is exactly the same as the email address you use to sign into your Microsoft account.
// You can also put this in your Vercel's environment variable 'NEXT_PUBLIC_USER_PRINCIPLE_NAME' if you worry about
// your email being exposed in public.
2022-02-04 08:05:28 +00:00
userPrincipalName : process . env . NEXT _PUBLIC _USER _PRINCIPLE _NAME || 'spencer@spwoo.onmicrosoft.com' ,
2022-01-29 07:40:50 +00:00
// [OPTIONAL] This is the website icon to the left of the title inside the navigation bar. It should be placed under the
// /public directory of your GitHub project (not your OneDrive folder!), and referenced here by its relative path to /public.
2022-02-04 08:05:28 +00:00
icon : '/icons/128.png' ,
2022-01-29 07:40:50 +00:00
2022-03-26 11:50:09 +00:00
// Prefix for KV Storage
2022-07-19 16:33:43 +00:00
kvPrefix : process . env . KV _PREFIX || '' ,
2022-03-26 11:50:09 +00:00
2022-01-29 07:40:50 +00:00
// The name of your website. Present alongside your icon.
title : "Spencer's OneDrive" ,
// The folder that you are to share publicly with onedrive-vercel-index. Use '/' if you want to share your root folder.
2022-02-04 08:05:28 +00:00
baseDirectory : '/' ,
2022-01-29 07:40:50 +00:00
// [OPTIONAL] This represents the maximum number of items that one directory lists, pagination supported.
// Do note that this is limited up to 200 items by the upstream OneDrive API.
maxItems : 100 ,
// [OPTIONAL] We use Google Fonts natively for font customisations.
// You can check and generate the required links and names at https://fonts.google.com.
// googleFontSans - the sans serif font used in onedrive-vercel-index.
2022-02-04 08:05:28 +00:00
googleFontSans : 'Inter' ,
2022-01-29 07:40:50 +00:00
// googleFontMono - the monospace font used in onedrive-vercel-index.
2022-02-04 08:05:28 +00:00
googleFontMono : 'Fira Mono' ,
2022-01-29 07:40:50 +00:00
// googleFontLinks - an array of links for referencing the google font assets.
2022-02-04 08:05:28 +00:00
googleFontLinks : [ 'https://fonts.googleapis.com/css2?family=Fira+Mono&family=Inter:wght@400;500;700&display=swap' ] ,
2022-01-29 07:40:50 +00:00
// [OPTIONAL] The footer component of your website. You can write HTML here, but you need to escape double
// quotes - changing " to \". You can write anything here, and if you like badges, generate some with https://shields.io
2022-02-04 08:05:28 +00:00
footer :
'Powered by <a href="https://github.com/spencerwooo/onedrive-vercel-index" target="_blank" rel="noopener noreferrer">onedrive-vercel-index</a>. Made with ❤ by SpencerWoo.' ,
2022-01-29 07:40:50 +00:00
// [OPTIONAL] This is where you specify the folders that are password protected. It is an array of paths pointing to all
// the directories in which you have .password set. Check the documentation for details.
2022-02-04 08:05:28 +00:00
protectedRoutes : [ '/🌞 Private folder/u-need-a-password' , '/🥟 Some test files/Protected route' ] ,
2022-01-29 07:40:50 +00:00
// [OPTIONAL] Use "" here if you want to remove this email address from the nav bar.
2022-02-04 08:05:28 +00:00
email : 'mailto:spencer.wushangbo@gmail.com' ,
2022-01-29 07:40:50 +00:00
// [OPTIONAL] This is an array of names and links for setting your social information and links.
// In the latest update, all brand icons inside font awesome is supported and the icon to render is based on the name
// you provide. See the documentation for details.
links : [
{
2022-02-04 08:05:28 +00:00
name : 'GitHub' ,
link : 'https://github.com/spencerwooo/onedrive-vercel-index' ,
2022-01-29 07:40:50 +00:00
} ,
{
2022-02-04 08:05:28 +00:00
name : 'Telegram' ,
link : 'https://t.me/realSpencerWoo' ,
} ,
] ,
2022-02-08 12:06:02 +00:00
// This is a day.js-style datetime format string to format datetimes in the app. Ref to
// https://day.js.org/docs/en/display/format for detailed specification. The default value is ISO 8601 full datetime
// without timezone and replacing T with space.
datetimeFormat : 'YYYY-MM-DD HH:mm:ss' ,
2022-01-29 07:40:50 +00:00
}