{"id":15027335,"url":"https://github.com/achrou/goindex-theme-acrou","last_synced_at":"2025-05-15T08:09:55.560Z","repository":{"id":39152569,"uuid":"256266916","full_name":"Achrou/goindex-theme-acrou","owner":"Achrou","description":"This is a goindex theme.一个goindex的扩展主题。","archived":false,"fork":false,"pushed_at":"2024-08-03T03:06:26.000Z","size":4462,"stargazers_count":1609,"open_issues_count":94,"forks_count":855,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-04-03T20:08:27.416Z","etag":null,"topics":["cloudflare","cloudflare-workers","drive","goindex","goindex-theme","google-drive"],"latest_commit_sha":null,"homepage":"https://ossdev.node6.workers.dev/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Achrou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-16T16:15:24.000Z","updated_at":"2025-03-25T15:08:19.000Z","dependencies_parsed_at":"2024-11-19T09:36:40.417Z","dependency_job_id":null,"html_url":"https://github.com/Achrou/goindex-theme-acrou","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achrou%2Fgoindex-theme-acrou","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achrou%2Fgoindex-theme-acrou/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achrou%2Fgoindex-theme-acrou/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achrou%2Fgoindex-theme-acrou/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Achrou","download_url":"https://codeload.github.com/Achrou/goindex-theme-acrou/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248439872,"owners_count":21103699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflare-workers","drive","goindex","goindex-theme","google-drive"],"created_at":"2024-09-24T20:06:14.549Z","updated_at":"2025-04-11T16:27:03.673Z","avatar_url":"https://github.com/Achrou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# GoIndex-theme-acrou \nCombining 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.    \n\n[go2index/index.js](https://github.com/Aicirou/goindex-theme-acrou/go2index) is the content of the Workers script.  \n\nThis theme's goindex is currently based on [yanzai/goindex](https://github.com/yanzai/goindex/)\n\n[README](README.md) | [中文文档](README_zh.md)\n\n## Demo  \n\nAcrou: [https://oss.achirou.workers.dev/](https://oss.achirou.workers.dev/) \n\n## Features\n\n- [x] 👑 Page-level caching,browser forward and backward without reloading (MAC users have a better experience with the trackpad)\n- [x] 🗂 Multi drive switching\n- [x] 🔐 Http Basic Auth\n- [x] 🎨 Grid view mode(File Preview)\n- [x] 🎯 Paging load\n- [x] 🌐 I18n(multi-language)\n- [x] 🛠 Markdown/Html render (Maybe it can be your blog)\n- [x] 🖥 Video Online(.vtt subtitle)\n- [x] 🕹 Support for custom video player (API)\n- [x] 🎧 Audio Online\n- [x] 🚀 Faster speed\n\n## TODO\n\n- [ ] More file format preview\n- [ ] Let goindex be more than just a directory index\n\n## Quick Deployment\n\n1. Open any of the following links\n\n   - https://install.achirou.workers.dev\n   - https://goindex-quick-install.glitch.me\n   - https://goindex-install.herokuapp.com\n\n2. Auth and get the code  \n\n3. Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)\n\n## Deployment  \n\n1. Open [Google Drive API](https://console.developers.google.com/apis/api/drive.googleapis.com/overview)\n2. Create a [OAuth client ID](https://console.developers.google.com/apis/credentials/oauthclient)\n3. Install [rclone](https://rclone.org/downloads/) software locally\n4. Get `refresh_token ` with `rclone`\n5. Download `index.js` in https://github.com/Aicirou/goindex-theme-acrou/tree/master/go2index and replace `client_id`,`client_secret`,`refresh_token` for what you just got.\n6. Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)\n\n\u003e If you write a good article and want to share it with others, please submit Issues and I will post the link here.\n\n## Options\n\n### Video\n\n| Option       | Type                       | Default                                                      | Description                                                  |\n| ------------ | -------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |\n| `api`        | String                     | `''`                                                         | External video player api. When this value is not null, all of the following options do not work |\n| `autoplay`   | Boolean                    | `true`                                                       | When set to true, the video plays automatically, depending on whether the browser supports the |\n| `invertTime` | Boolean                    | `false`                                                      | Display the current time as a countdown rather than an incremental counter. |\n| `controls`   | Array, Function or Element | `['play-large', 'restart', 'play', 'progress', 'current-time', 'duration', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'download', 'fullscreen']` | Which buttons are displayed in the control bar. See more [CONTROLS.md](https://github.com/sampotts/plyr/blob/master/CONTROLS.md#using-default-controls) |\n| `settings`   | Array                      | `['quality', 'speed', 'loop']`                               | You can specify which settings to show in the menu           |\n\nFor more option, see plyr [options](https://github.com/sampotts/plyr#options)\n\n### Audio\n\n| Option      | Type    | Default    | Description                                                  |\n| ----------- | ------- | ---------- | ------------------------------------------------------------ |\n| `container` | String  | `.aplayer` | No support for changes                                       |\n| `fixed`     | Boolean | `true`     | No support for changes                                       |\n| `autoplay`  | Boolean | `false`    | audio autoplay                                               |\n| `loop`      | String  | `'all'`    | player loop play, values: 'all', 'one', 'none'               |\n| `order`     | String  | `'list'`   | player play order, values: 'list', 'random'                  |\n| `preload`   | String  | `'auto'`   | values: 'none', 'metadata', 'auto'                           |\n| `volume`    | Number  | `0.7`      | default volume, notice that player will remember user setting, default volume will not work after user set volume themselves |\n| `audios`    | Array   | `[]`       | Playlists can be preset. [FAQ](#FAQ)                         |\n\nFor more option, see APlayer [options](https://aplayer.js.org/#/home?id=options)\n\n## FAQ\n\n\u003e How do I change the way the list is sorted?\n\nModify line 636 of the code or search for `params.orderBy`\n\n```javascript\n－ params.orderBy = \"folder,name,modifiedTime desc\";\n＋ params.orderBy = \"modifiedTime desc\";\n```\n\n\u003e How to preset an audio playlist?\n\nAudio option add `audios`\n\n```\naudio: {\n  audios: [\n    {\n      name: \"Mojito\",\n      artist: \"周杰伦\",\n      url: \"https://xx.mp3\",\n      lrc: \"https://xx.lrc\",\n      cover: \"https://xx.jpg\"\n    }\n  ]\n}\n```\n\n\n\n## Change log\n\n### v2.0.8\n\n- Fix image file actions does not work [#100](https://github.com/Aicirou/goindex-theme-acrou/issues/100)\n- Fix misjudged file to image format [#88](https://github.com/Aicirou/goindex-theme-acrou/issues/88)\n- Fix more than 10 drive not working [#59](https://github.com/Aicirou/goindex-theme-acrou/issues/59) [#85](https://github.com/Aicirou/goindex-theme-acrou/issues/85)\n- Fix some of the operation functions in the search list cannot be used\n- Fix text cache content not refreshing\n- Add video default player([plyr](https://github.com/sampotts/plyr)) [#22](https://github.com/Aicirou/goindex-theme-acrou/issues/22) [#38](https://github.com/Aicirou/goindex-theme-acrou/issues/38)\n- Add audio player ([APlayer](https://github.com/MoePlayer/APlayer)) [#77](https://github.com/Aicirou/goindex-theme-acrou/issues/77)\n- Add copy button to video page\n- Add [NProgress](https://github.com/rstacruz/nprogress)\n- Add language cache cleanup\n- Add shortcut can't download tip [#76](https://github.com/Aicirou/goindex-theme-acrou/issues/76)\n- Markdown displays rendered html by default\n- CLI Delete prefetch preload of lazy load module\n- Delete fontawesome5\n\n### v2.0.5\n\n- Add clean file cache\n- Support for custom video player (API)\n- Beautify: the grid mode file shows icon when no preview is shown\n- Beautify: Adjust the HEAD.md render position\n- Solve the problem that files that can't be previewed can't be downloaded directly by clicking [#30](https://github.com/Aicirou/goindex-theme-acrou/issues/30)\n- Solve the problem that the file name cannot be opened [#20](https://github.com/Aicirou/goindex-theme-acrou/issues/20)\n- Solve the problem that switching pages will fall back in the current page loading [#37](https://github.com/Aicirou/goindex-theme-acrou/issues/37) (Thanks [@PedroZhang](https://github.com/PedroZhang) Help to find out the cause of the problem)\n\n### v2.0.0\n\n- Program changed to SPA(single page application)\n- Add page level cache(Browser forward and backward do not refresh seconds to load, and Mac users have a better experience of using touch pad)\n- Add http basic auth(Each drive letter can be configured with a user name and password separately, which can protect all sub files and sub folders under the drive)\n- Add  grid view mode(File preview)\n- Add paging load\n- Add  i18n\n- Add html render \n- Add render folder/file description\n- Add optional configuration\n- Support quick deployment\n- Support PDF Online preview\n- Replace text editor\n- Solve the problem of URL encoding [#20](https://github.com/Aicirou/goindex-theme-acrou/issues/20) [#23](https://github.com/Aicirou/goindex-theme-acrou/issues/23) [#25](https://github.com/Aicirou/goindex-theme-acrou/issues/25)\n- Solve other known problems\n\n### v1.x\n\n- Support multi disk switching\n- Add version detection\n- Optimize search results\n- Optimize page display\n\n## Lisense\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachrou%2Fgoindex-theme-acrou","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachrou%2Fgoindex-theme-acrou","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachrou%2Fgoindex-theme-acrou/lists"}