mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
formatting tailwind classes with prettier
This commit is contained in:
@@ -10,22 +10,22 @@
|
||||
module.exports = {
|
||||
// The clientId and clientSecret are used to authenticate the user with Microsoft Graph API using OAuth. You would
|
||||
// not need to change anything here if you can authenticate with your personal Microsoft account with OneDrive International.
|
||||
clientId: "d87bcc39-1750-4ca0-ad54-f8d0efbb2735",
|
||||
obfuscatedClientSecret: "U2FsdGVkX1830zo3/pFDqaBCVBb37iLw3WnBDWGF9GIB2f4apzv0roemp8Y+iIxI3Ih5ecyukqELQEGzZlYiWg==",
|
||||
clientId: 'd87bcc39-1750-4ca0-ad54-f8d0efbb2735',
|
||||
obfuscatedClientSecret: 'U2FsdGVkX1830zo3/pFDqaBCVBb37iLw3WnBDWGF9GIB2f4apzv0roemp8Y+iIxI3Ih5ecyukqELQEGzZlYiWg==',
|
||||
|
||||
// The redirectUri is the URL that the user will be redirected to after they have authenticated with Microsoft Graph API.
|
||||
// Likewise, you would not need to change redirectUri if you are using your personal Microsoft account with OneDrive International.
|
||||
redirectUri: "http://localhost",
|
||||
redirectUri: 'http://localhost',
|
||||
|
||||
// These are the URLs of the OneDrive API endpoints. You would not need to change anything here if you are using OneDrive International
|
||||
// or E5 Subscription OneDrive for Business. You may need to change these if you are using OneDrive 世纪互联.
|
||||
authApi: "https://login.microsoftonline.com/common/oauth2/v2.0/token",
|
||||
driveApi: "https://graph.microsoft.com/v1.0/me/drive",
|
||||
authApi: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
|
||||
driveApi: 'https://graph.microsoft.com/v1.0/me/drive',
|
||||
|
||||
// The scope we require are listed here, in most cases you would not need to change this as well.
|
||||
scope: "user.read files.read.all offline_access",
|
||||
scope: 'user.read files.read.all offline_access',
|
||||
|
||||
// The directLinkRegex is used to match the direct link of the file from the response of the API. We originally use this to prevent
|
||||
// unauthorised use of the proxied download feature - but that is disabled for now. So you can safely ignore this settings.
|
||||
directLinkRegex: "public[.].*[.]files[.]1drv[.]com"
|
||||
directLinkRegex: 'public[.].*[.]files[.]1drv[.]com',
|
||||
}
|
||||
|
||||
+16
-20
@@ -7,17 +7,17 @@ module.exports = {
|
||||
// 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.
|
||||
userPrincipalName: process.env.NEXT_PUBLIC_USER_PRINCIPLE_NAME || "spencer@spwoo.onmicrosoft.com",
|
||||
userPrincipalName: process.env.NEXT_PUBLIC_USER_PRINCIPLE_NAME || 'spencer@spwoo.onmicrosoft.com',
|
||||
|
||||
// [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.
|
||||
icon: "/icons/128.png",
|
||||
icon: '/icons/128.png',
|
||||
|
||||
// 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.
|
||||
baseDirectory: "/",
|
||||
baseDirectory: '/',
|
||||
|
||||
// [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.
|
||||
@@ -26,39 +26,35 @@ module.exports = {
|
||||
// [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.
|
||||
googleFontSans: "Inter",
|
||||
googleFontSans: 'Inter',
|
||||
// googleFontMono - the monospace font used in onedrive-vercel-index.
|
||||
googleFontMono: "Fira Mono",
|
||||
googleFontMono: 'Fira Mono',
|
||||
// googleFontLinks - an array of links for referencing the google font assets.
|
||||
googleFontLinks: [
|
||||
"https://fonts.googleapis.com/css2?family=Fira+Mono&family=Inter:wght@400;500;700&display=swap"
|
||||
],
|
||||
googleFontLinks: ['https://fonts.googleapis.com/css2?family=Fira+Mono&family=Inter:wght@400;500;700&display=swap'],
|
||||
|
||||
// [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
|
||||
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.",
|
||||
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.',
|
||||
|
||||
// [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.
|
||||
protectedRoutes: [
|
||||
"/🌞 Private folder/u-need-a-password",
|
||||
"/🥟 Some test files/Protected route"
|
||||
],
|
||||
protectedRoutes: ['/🌞 Private folder/u-need-a-password', '/🥟 Some test files/Protected route'],
|
||||
|
||||
// [OPTIONAL] Use "" here if you want to remove this email address from the nav bar.
|
||||
email: "mailto:spencer.wushangbo@gmail.com",
|
||||
email: 'mailto:spencer.wushangbo@gmail.com',
|
||||
|
||||
// [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: [
|
||||
{
|
||||
"name": "GitHub",
|
||||
"link": "https://github.com/spencerwooo/onedrive-vercel-index"
|
||||
name: 'GitHub',
|
||||
link: 'https://github.com/spencerwooo/onedrive-vercel-index',
|
||||
},
|
||||
{
|
||||
"name": "Telegram",
|
||||
"link": "https://t.me/realSpencerWoo"
|
||||
}
|
||||
]
|
||||
name: 'Telegram',
|
||||
link: 'https://t.me/realSpencerWoo',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user