Skip to content

Commit

Permalink
goindex-vue:
Browse files Browse the repository at this point in the history
  • Loading branch information
alx-xlx committed May 30, 2020
1 parent 7fcab85 commit ac5f7d3
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions goindex-vue.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
self.props = {
title: 'goindex',
default_root_id: '0AK0dce9h38dOUk9PVA', // 'root' OR 0AK0dce9h38dOUk9PVA
// https://drive.google.com/drive/u/1/folders/0AK0dce9h38dOUk9PVA
storage: 'drives', // 'drive' OR 'drives'
// 'drive' will set 'default_root_id' as default
// 'drives' will list all drives (My Drive & Teamdrives)
ui: 'dark', // light OR dark
client_id: '*******.apps.googleusercontent.com',
client_secret: '*****',
refresh_token: '******',
auth: false, // Add Authentication
user: '',
pass: '',
upload: false, // Ability to Upload Files (Local / Remote)
ui: 'light', // light OR dark OR dark-orange
// https://github.com/alx-xlx/goindex/tree/production/themes
client_id: '**********.apps.googleusercontent.com',
client_secret: '********',
refresh_token: '*********',
auth: false, // Add Authentication to your Indexed Drive
user: 'root',
pass: 'toor',
upload: true, // Ability to Upload Files (Local / Remote)
lite: false
};
(function () {
Expand Down Expand Up @@ -456,7 +458,7 @@ self.props = {

if (path.startsWith('/~_~_goindex/resources/')) {
const remain = path.replace('/~_~_goindex/resources/', '');
const r = await fetch(`https://raw.githubusercontent.com/alx-xlx/goindex/master/themes/material-vue-${self.props.ui}/${remain}`);
const r = await fetch(`https://raw.githubusercontent.com/alx-xlx/goindex/production/themes/material-vue-${self.props.ui}/${remain}`);
return new Response(r.body, {
headers: {
'Content-Type': mime.getType(remain) + '; charset=utf-8',
Expand Down

0 comments on commit ac5f7d3

Please sign in to comment.