From 3d59ff586bd189ebf6f95e1cf2f2e181d2af041d Mon Sep 17 00:00:00 2001 From: DarkSky Date: Sat, 4 Jan 2020 21:54:58 +0800 Subject: [PATCH 1/5] subdir support for worker --- worker/bili.config.js | 1 + worker/dist/worker.js | 7 ++++++- worker/index.js | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/worker/bili.config.js b/worker/bili.config.js index 47873254..78a80322 100644 --- a/worker/bili.config.js +++ b/worker/bili.config.js @@ -10,6 +10,7 @@ module.exports = { banner: ` self.props = { title: 'GDIndex', + subdir: '', default_root_id: 'root', client_id: '202264815644.apps.googleusercontent.com', client_secret: 'X4Z3ca8xfWDb1Voo-F9a7ZxJ', diff --git a/worker/dist/worker.js b/worker/dist/worker.js index d2f3e422..ddb9dd18 100644 --- a/worker/dist/worker.js +++ b/worker/dist/worker.js @@ -1,5 +1,6 @@ self.props = { title: 'GDIndex', + subdir: '', default_root_id: 'root', client_id: '202264815644.apps.googleusercontent.com', client_secret: 'X4Z3ca8xfWDb1Voo-F9a7ZxJ', @@ -441,7 +442,7 @@ self.props = { } const gd = new GoogleDrive(self.props); - const HTML = `${self.props.title}