Giter Site home page Giter Site logo

googlearchive / drive-dredit Goto Github PK

View Code? Open in Web Editor NEW
182.0 28.0 229.0 40.27 MB

[DEPRECATED] DrEdit, a Google Drive SDK sample text editor app.

License: Apache License 2.0

Java 1.43% CSS 0.01% HTML 0.02% C# 0.37% ASP 0.01% JavaScript 66.17% Objective-C 12.76% C 0.04% C++ 0.03% ApacheConf 0.01% PHP 14.52% Python 4.59% Ruby 0.06%

drive-dredit's Introduction

UPDATE These examples have been deprecated and are no longer being updated. Current versions of this app can be found in the following repositories:

DrEdit

DrEdit is a sample Google Drive app, is a text editor that is capable of editing files with text/* MIME type that are stored in user's Google Drive. It has similar implementations for Java, Python, PHP, .NET, Ruby, Android and iOS. DrEdit also implements two fundamental Google Drive use cases:

The flow for both use cases is similar. Google Drive redirects a user to the app after the user selects it from the Create menu or context menu of a file with a registered MIME type.

These pages provide details for each language-specific sample:

drive-dredit's People

Contributors

aliafshar avatar blueprinter avatar rakyll avatar rphv avatar sqrrrl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drive-dredit's Issues

DrEdit not showing in create

After downloading, editing clientid, clientsecret and application name, deploying and installing the app in my google drive I can find the app in Manage Apps in drive. However the app does not appear when I try to create a new file or open one with the correct mime type.

no template file

I'm hoping someone at Google takes the time to do some testing of this PHP sample code (dr edit). It doesn't work and I'm hoping to get a version that does. I would be very appreciative.
After you fix #13 next there's another error:

Details

Type: RuntimeException
Message: View cannot render template ./public/index.html. Template does not exist.
File: /var/www/student1/dredit/php/lib/Slim/View.php
Line: 169
Trace
#0 /var/www/student1/dredit/php/lib/Slim/View.php(209): Slim\View->setTemplate('index.html')
#1 /var/www/student1/dredit/php/lib/Slim/View.php(195): Slim\View->render('index.html')
#2 /var/www/student1/dredit/php/lib/Slim/View.php(182): Slim\View->fetch('index.html')
#3 /var/www/student1/dredit/php/lib/Slim/Slim.php(672): Slim\View->display('index.html')
#4 /var/www/student1/dredit/php/index.php(174): Slim\Slim->render('index.html')
#5 [internal function]: {closure}()
#6 /var/www/student1/dredit/php/lib/Slim/Router.php(172): call_user_func_array(Object(Closure), Array)
#7 /var/www/student1/dredit/php/lib/Slim/Slim.php(1222): Slim\Router->dispatch(Object(Slim\Route))
#8 /var/www/student1/dredit/php/lib/Slim/Middleware/Flash.php(86): Slim\Slim->call()
#9 /var/www/student1/dredit/php/lib/Slim/Middleware/MethodOverride.php(94): Slim\Middleware\Flash->call()
#10 /var/www/student1/dredit/php/lib/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#11 /var/www/student1/dredit/php/lib/Slim/Slim.php(1174): Slim\Middleware\PrettyExceptions->call()
#12 /var/www/student1/dredit/php/index.php(181): Slim\Slim->run()
#13 {main}

PHP version is still written to the 0.6 API

The PHP version of DrEdit is still written to v0.6 of google-api-php-client , but you're telling everyone else to migrate to 1.0 ASAP. I guess your sample app should follow that advice. ;)

I might submit a PR for this tomorrow if I'm feeling enthusiastic, but no promises :P

503 Error on Uploading file with non-ascii title (iOS)

Hi,

With iOS version of DrEdit, I found uploading a file with non-ascii title always results in error.
503img

What I uses is "日本語" in the screen capture. It seems any non-ascii chars would suffer from the problem.

As far as I have tested,

  1. The problem only lies on title. The content of the main text doesn't matter.
  2. However, title only update works fine with non-ascii characters.
  3. Both on "title and text" or "text" update / insert, the 503 error occurs.

Please look into the problem.

Uppercase filename?

Hi,

apiclient/contrib/GoogleOauth2Service.php should actually be apiclient/contrib/GoogleOAuth2Service.php (notice the capital "A"), or the file won't include properly on all servers.

Thank you,

Eric

PHP Version level required

It isn't mentioned that PHP 5.3+ is required for this. I literally spent hours refactoring code before giving up after realizing that my PHP 5.2.17 won't ever work fully with this project.

At least, put a disclaimer mentioning the major incompatibility issues with this on older versions. Not everyone is going to have a top-notch webserver...

DrEdit example to create, open word, excel and pdf in Ruby

Is there a way to use the DrEdit example to create, open word, excel and pdf documents in Ruby ?

I have added the mime type extension in DriveSDK fields. But still it was saving in plain txt format .

Do we need to make any changes to editor for accepting other formats ?

Thanks in advance.

README.md for DrEdit for PHP mentions App Engine but does not provide full instructions

The README.md file for the PHP sample says to create Create a new Google App Engine application in step 1, however it then does not provide any further instructions for App Engine, or how to create an appropriate app.yaml file.

I have created a simple patch here containing a very simple app.yaml file and setup instructions as a workaround.

A good solution for resolving this would be to edit the README.md file, removing any reference to App Engine, leaving that as a pure PHP example, appropriate to run on a regular web server (Apache etc). Then create a separate (PHP) App Engine sample, in its own directory, with an app.yaml file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.