mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
Add @types/nprogress to dev deps, since it's causing build error
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
"@types/jsonwebtoken": "^9.0.1",
|
||||
"@types/mime-types": "^2.1.1",
|
||||
"@types/node": "^20",
|
||||
"@types/nprogress": "^0.2.3",
|
||||
"@types/react": "^18",
|
||||
"@types/react-dom": "^18",
|
||||
"@types/three": "^0.150.2",
|
||||
|
||||
@@ -86,7 +86,9 @@ export default async function RestPage({ params: { rest } }: Props) {
|
||||
|
||||
if (!unlocked.success) {
|
||||
if (!unlocked.path)
|
||||
throw new Error("No path returned from password checking");
|
||||
throw new Error(
|
||||
`No path returned from password checking, ${unlocked.message}`,
|
||||
);
|
||||
return (
|
||||
<Password
|
||||
path={unlocked.path}
|
||||
|
||||
+18
-11
@@ -216,17 +216,24 @@ export async function CheckPassword(
|
||||
`trashed = false`,
|
||||
`(${ids.map((id) => `'${id}' in parents`).join(" or ")})`, // Filter by paths id
|
||||
];
|
||||
const { data: password } = await gdrive.files.list({
|
||||
q: query.join(" and "),
|
||||
fields: "files(id, name, mimeType, parents)",
|
||||
pageSize: 1000,
|
||||
...(decryptedSharedDrive && {
|
||||
supportsAllDrives: true,
|
||||
includeItemsFromAllDrives: true,
|
||||
driveId: decryptedSharedDrive,
|
||||
corpora: "drive",
|
||||
}),
|
||||
});
|
||||
const { data: password } = await gdrive.files
|
||||
.list({
|
||||
q: query.join(" and "),
|
||||
fields: "files(id, name, mimeType, parents)",
|
||||
pageSize: 1000,
|
||||
...(decryptedSharedDrive && {
|
||||
supportsAllDrives: true,
|
||||
includeItemsFromAllDrives: true,
|
||||
driveId: decryptedSharedDrive,
|
||||
corpora: "drive",
|
||||
}),
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
throw new Error("Failed to get password file");
|
||||
});
|
||||
|
||||
console.log(password);
|
||||
|
||||
// To save processing time, skip if password file not found
|
||||
if (!password.files?.length) return { success: true };
|
||||
|
||||
@@ -1924,7 +1924,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/nprogress@npm:^0.2.2":
|
||||
"@types/nprogress@npm:^0.2.2, @types/nprogress@npm:^0.2.3":
|
||||
version: 0.2.3
|
||||
resolution: "@types/nprogress@npm:0.2.3"
|
||||
checksum: 10c0/cac0fe73aca79bc1472a1556f56303df72026f2fcd8dbe311fe84b1f46e454b9040c1e69223d94e3bf156a5986382170c52ebda19aa70f555f1b6855d8f744a6
|
||||
@@ -6160,6 +6160,7 @@ __metadata:
|
||||
"@types/jsonwebtoken": "npm:^9.0.1"
|
||||
"@types/mime-types": "npm:^2.1.1"
|
||||
"@types/node": "npm:^20"
|
||||
"@types/nprogress": "npm:^0.2.3"
|
||||
"@types/react": "npm:^18"
|
||||
"@types/react-dom": "npm:^18"
|
||||
"@types/three": "npm:^0.150.2"
|
||||
|
||||
Reference in New Issue
Block a user