WordPress support

This commit is contained in:
benweet 2013-05-16 01:35:17 +01:00
parent 607247a499
commit 16394c757d
3 changed files with 6 additions and 7 deletions

View File

@ -1 +1 @@
CACHE MANIFEST # v30 CACHE: index.html viewer.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png lib/MathJax/MathJax.js?config=TeX-AMS_HTML lib/MathJax/config/TeX-AMS_HTML.js lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff lib/MathJax/images/CloseX-31.png lib/MathJax/images/MenuArrow-15.png lib/MathJax/jax/output/HTML-CSS/jax.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js NETWORK: *
CACHE MANIFEST # v31 CACHE: index.html viewer.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png lib/MathJax/MathJax.js?config=TeX-AMS_HTML lib/MathJax/config/TeX-AMS_HTML.js lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff lib/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff lib/MathJax/images/CloseX-31.png lib/MathJax/images/MenuArrow-15.png lib/MathJax/jax/output/HTML-CSS/jax.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js lib/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js NETWORK: *

View File

@ -90,7 +90,7 @@ define(["jquery", "core", "async-runner"], function($, core, asyncRunner) {
return;
}
// Handle error
if(error.status === Dropbox.ApiError.INVALID_PARAM) {
if(error.status === 400) {
error = 'Could not upload document into path "' + path + '".';
}
handleError(error, task);
@ -237,13 +237,12 @@ define(["jquery", "core", "async-runner"], function($, core, asyncRunner) {
errorMsg = "Dropbox error ("
+ error.status + ": " + error.responseText + ").";
if (error.status === Dropbox.ApiError.INVALID_TOKEN
|| error.status === Dropbox.ApiError.OAUTH_ERROR) {
if (error.status === 401 || error.status === 403) {
authenticated = false;
errorMsg = "Access to Dropbox account is not authorized.";
task.retry(new Error(errorMsg), 1);
return;
} else if(error.status === Dropbox.ApiError.INVALID_PARAM && error.responseText
} else if(error.status === 400 && error.responseText
.indexOf("oauth_nonce") !== -1) {
// A bug I guess...
_.each(_.keys(localStorage), function(key) {
@ -255,7 +254,7 @@ define(["jquery", "core", "async-runner"], function($, core, asyncRunner) {
authenticated = false;
task.retry(new Error(errorMsg), 1);
return;
} else if (error.status === Dropbox.ApiError.NETWORK_ERROR || error.status < 0) {
} else if (error.status <= 0) {
client = undefined;
authenticated = false;
core.setOffline();

2
js/main-min.js vendored

File diff suppressed because one or more lines are too long