Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.7 #3

Open
wants to merge 61 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
1cc1f60
Update index.js
donwa Sep 5, 2019
53b7e73
Update index.js
donwa Sep 5, 2019
f575b80
Update index.js
donwa Sep 5, 2019
a0f2685
Update README.md
donwa Sep 6, 2019
c54df52
add material style
donwa Sep 8, 2019
88724f3
修复移动端显示
donwa Sep 8, 2019
58bef9b
fix 密码验证bug
donwa Sep 8, 2019
1c314c1
前后端分离
donwa Sep 8, 2019
d470807
根目录密码判断
donwa Sep 8, 2019
f0d6b00
风格文件引用地址
donwa Sep 8, 2019
6d2c77e
密码文件支持
donwa Sep 8, 2019
0e9682d
fix特殊编码显示
donwa Sep 8, 2019
7df5c98
fix 特殊编码显示
donwa Sep 8, 2019
22db952
Merge pull request #20 from donwa/1.0.0
donwa Sep 8, 2019
06d06ea
监听回退事件
donwa Sep 8, 2019
e3e3695
监听回退事件
donwa Sep 8, 2019
8313d94
README.md HEAD.md 支持
donwa Sep 8, 2019
46a4cf2
Merge branch 'master' into 1.0.0
donwa Sep 8, 2019
90ba44a
Merge pull request #22 from donwa/1.0.0
donwa Sep 8, 2019
7b20270
version to 1.0.1
donwa Sep 8, 2019
0bf6c90
防止.password 文件被下载
donwa Sep 8, 2019
d64d776
防止.password 文件被下载
donwa Sep 8, 2019
607a068
添加文件预览
myluoluo Sep 8, 2019
0621db6
添加图片、txt 类型载入反馈
myluoluo Sep 8, 2019
3e5b386
添加视频格式
myluoluo Sep 9, 2019
342905f
添加文件预览
donwa Sep 9, 2019
0bd689a
fix nav偏离,密码错误返回,md缓存
donwa Sep 9, 2019
bf7ddb3
version to 1.0.2
donwa Sep 9, 2019
9de6b7b
更新日志
donwa Sep 9, 2019
26a7bb1
fix .password download bypass
donwa Sep 11, 2019
2fb41b0
fix .password download bypass
donwa Sep 11, 2019
a4e85d1
version to 1.0.3
donwa Sep 11, 2019
de352a1
version to 1.0.3
donwa Sep 11, 2019
da86d31
1.0.3
donwa Sep 11, 2019
a212d6d
logo
donwa Sep 11, 2019
48eb326
README
Sep 11, 2019
30f5541
Update README.md
donwa Sep 11, 2019
acad69a
Add files via upload
donwa Sep 11, 2019
28e879e
Add files via upload
donwa Sep 11, 2019
6b015e2
Update README.md
donwa Sep 11, 2019
3c86bb4
Update README.md
donwa Sep 11, 2019
2fb8825
Update README.md
donwa Sep 11, 2019
e1081b6
Update README_zh.md
donwa Sep 11, 2019
5f612c0
delete
Sep 11, 2019
53b14ec
Update README.md
donwa Sep 11, 2019
0c3b338
Update README.md
donwa Sep 11, 2019
fec3dfb
过滤 '
donwa Sep 12, 2019
90b2ba7
过滤 '
donwa Sep 12, 2019
6b85165
添加文件展示页
donwa Sep 12, 2019
c0971ee
Update README_zh.md
donwa Sep 12, 2019
c4e238d
version to 1.0.5
donwa Sep 12, 2019
c3682de
文件跳转
donwa Sep 12, 2019
1c92113
添加classic模板
donwa Sep 12, 2019
4fb64e0
Update README_zh.md
donwa Sep 12, 2019
4d59dd7
theme select
donwa Sep 12, 2019
64c0736
新增风格
donwa Sep 12, 2019
9dd838f
themes demo
donwa Sep 12, 2019
5bb4d48
fix class name
donwa Sep 12, 2019
f4f2495
add folder class
donwa Sep 13, 2019
f1e81c9
Update app.js
loveqianool Oct 9, 2019
f0971a5
Merge pull request #56 from loveqianool/1.0.6
donwa Oct 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 30 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
# goindex
Google Drive Directory Index

## 功能:
部署在 CloudFlare Workers的小程序。
可以将 Google Drive 文件以目录形式列出,并直连下载。
流量走 CloudFlare ,网速由 CloudFlare 决定。

## Demo
[https://index.gd.workers.dev/](https://index.gd.workers.dev/)

## 安装运行

1、访问[https://install.gd.workers.dev/](https://install.gd.workers.dev/)
2、授权认证后,生成部署代码。
3、复制代码 到 CloudFlare 部署。
![GoIndex](https://raw.githubusercontent.com/donwa/goindex/master/themes/logo.png)

GoIndex
====
Google Drive Directory Index
Combining the power of [Cloudflare Workers](https://workers.cloudflare.com/) and [Google Drive](https://www.google.com/drive/) will allow you to index you files on the browser on Cloudflare Workers.

`index.js` is the content of the Workers script.

## Demo
material: [https://index.gd.workers.dev/](https://index.gd.workers.dev/)
classic: [https://indexc.gd.workers.dev/](https://indexc.gd.workers.dev/)

## Deployment
1.Install `rclone` software locally
2.Follow [https://rclone.org/drive/]( https://rclone.org/drive/) bind a drive
3.Execute the command`rclone config file` to find the file `rclone.conf` path
4.Open `rclone.conf`,find the configuration `root_folder_id` and `refresh_token`
5.Download index.js in https://github.com/donwa/goindex and fill in root and refresh_token
6.Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)

## Quick Deployment
1.Open https://installen.gd.workers.dev/
2.Auth and get the code
3.Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)



## About
Cloudflare Workers allow you to write JavaScript which runs on all of Cloudflare's 150+ global data centers.
60 changes: 60 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
![GoIndex](https://raw.githubusercontent.com/donwa/goindex/master/themes/logo.png)

GoIndex
====
基于 [Cloudflare Workers](https://workers.cloudflare.com/) 和 [Google Drive](https://www.google.com/drive/) 的功能,你可以部署你的代码在Cloudflare Workers,实现以目录形式展示google drive中的文件。

`index.js` 包含 Workers 所需的代码.

## Demo
material:
[https://index.gd.workers.dev/](https://index.gd.workers.dev/)
classic:
[https://indexc.gd.workers.dev/](https://indexc.gd.workers.dev/)

## 安装部署方案1
1、在本地安装 rclone
2、按照 https://rclone.org/drive/ 流程进行授权。
3、执行 rclone config file 查看 rclone.conf 路径。找到root_folder_id和refresh_token记录下来。
4、下载 https://github.com/donwa/goindex 中的 index.js 并填入 root 和 refresh_token
5、复制代码 到 CloudFlare 部署。

## 安装部署方案2
作者不会记录refresh_token,但为避免纠纷,建议有条件的同学使用方案1进行部署
1、访问[https://install.gd.workers.dev/](https://install.gd.workers.dev/)
2、授权认证后,生成部署代码。
3、复制代码 到 CloudFlare 部署。

## 文件夹密码:
在google drive 文件中放置 `.password` 文件来设置密码。
密码文件只能保护该文件不被列举,不能保护该文件夹的子文件夹不被列举。
也不保护文件夹下文件不被下载。

程序文件中 `root_pass` 只为根目录密码,优先于 `.password` 文件


## 更新日志

1.0.6
添加 classic 模板

1.0.5
添加文件展示页

1.0.4
修复 注入问题。

1.0.3
修复 `.password` 绕过下载问题。

1.0.2
优化前端逻辑
添加文件预览功能(临时)
添加前端文件缓存功能

1.0.1
添加 README.md 、 HEAD.md 支持

1.0.0
前后端分离,确定基本架构
添加.password 支持
Loading