From c2461c3af002f0f54cfb1747ea0a62ab534d6a92 Mon Sep 17 00:00:00 2001 From: Benoit Schweblin Date: Thu, 11 Apr 2013 00:13:31 +0100 Subject: [PATCH] Publish support --- cache.manifest | 2 +- img/icons.png | Bin 4648 -> 4468 bytes index.html | 47 +++++--- js/core.js | 128 +++++++++++++++----- js/file-manager.js | 49 +++++++- js/github-helper.js | 283 ++++++++++++++++++++++++++++++++++++++++++++ js/github.js | 10 -- js/google-helper.js | 78 ++++++++++++ js/publisher.js | 53 ++++----- js/synchronizer.js | 39 +++--- 10 files changed, 584 insertions(+), 105 deletions(-) create mode 100644 js/github-helper.js delete mode 100644 js/github.js diff --git a/cache.manifest b/cache.manifest index 873c54bb..167f7135 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1 +1 @@ -CACHE MANIFEST # v33 CACHE: index.html css/bootstrap.css css/jgrowl.css css/main.css js/async-runner.js js/bootstrap.js js/config.js js/custo.github.js js/dropbox-helper.js js/github.js js/google-helper.js js/jgrowl.js js/jquery.js js/jquery-ui.js js/layout.js js/main.js js/Markdown.Converter.js js/Markdown.Editor.js js/Markdown.Sanitizer.js js/publisher.js js/require.js js/synchronizer.js js/underscore-min.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 NETWORK: * +CACHE MANIFEST # v33 CACHE: index.html css/bootstrap.css css/jgrowl.css css/main.css js/async-runner.js js/bootstrap.js js/config.js js/custo.github.js js/dropbox-helper.js js/github-helper.js js/google-helper.js js/jgrowl.js js/jquery.js js/jquery-ui.js js/layout.js js/main.js js/Markdown.Converter.js js/Markdown.Editor.js js/Markdown.Sanitizer.js js/publisher.js js/require.js js/synchronizer.js js/underscore-min.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 NETWORK: * diff --git a/img/icons.png b/img/icons.png index b13b1b8734580f2f8275934e1704c163b711f97b..b6c44e2638f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PI79B}%1XkBG)@vtqYeP!@&XXW$L^Y4`fT@9(ZXJ2c#jz=J@n_6Jaf z<1SVBOQ&03d1ssLJ|;vP)U;Wcdi^c6U#|K6%jYSZm*R>ZI%!N6Dbc28G&Cf~I*1vP z#J6w`^J9-a#&gd-N3hIGOH2DuM1NL|88hbCfddEffIG*I9h=`l z06=qoe*UchqehJyX0=-11U@`4@o*mgZf|J=@;`%3D`4Dh;E3${+}jNMH^8?anQe8a z4R9gds4rv#1fi*=m8$cNxTB)T8aR+IR=)%YXDTa^(5wMQ=u8Lw0b|V_Z+tfK_xIh< z^xLh+qkmd`0T9L6RQ`e&Shp1Rt%aDx5Z_#&u?k8KbX(QnaXxbhjffUe(&6vh?GEmE0sjfCUcE|et8OLz;IovBSjw>2MDRKQ>L(e`*w2Q^Drz>%$_F85#@FS|1USp>%u;x8NUv})GOcK=iTVh}Op9(<@8%!E)nL$NRp|fe%bL zn1`~0;ipRpQ5gO;7{(7SdBrrK)Oc4Y>n*wGe%{#L+&~BkOfY3#Ivj+cTVOIs@HBQu zmOxu0qV}9mN$dO)u;lqgE+7i?3`Jb@h%0lVb0*EU#wO(W8*5VltkJzr`#t9h8Vh!8 pY&^KLAQ)=(08Kzkc -
  • Export to Google Drive
  • + data-target="#modal-upload-gdrive" class="action-reset-input">Export + to Google Drive
  • Import from Dropbox
  • Export to Dropbox
  • + data-target="#modal-upload-dropbox" class="action-reset-input">Export + to Dropbox
  • - Manage synchronization
  • + data-target="#modal-manage-sync" class="action-reset-input"> Manage synchronization
  • Blogger
  • -
  • WordPress
  • -
  • Tumblr
  • - Manage publication
  • + data-target="#modal-manage-publication" + class="action-reset-input"> Manage + publishing
  • Settings
  • @@ -226,7 +226,7 @@ +
    + +
    + px +
    +