From 601ae4044174adbf3b88a1e152939e64d96e8de5 Mon Sep 17 00:00:00 2001 From: benweet Date: Mon, 10 Jun 2013 22:22:32 +0100 Subject: [PATCH] Async HTML loading --- css/default.css | 16 +- css/main-min.css | 13 +- index.html | 120 +---------- js/{async-runner.js => asyncRunner.js} | 2 +- js/config.js | 1 + js/core.js | 43 ++-- js/{extension-manager.js => extensionMgr.js} | 47 ++--- js/extensions/button-stat.js | 89 -------- .../{button-publish.js => buttonPublish.js} | 11 +- .../{button-share.js => buttonShare.js} | 33 +-- js/extensions/buttonStat.js | 59 ++++++ .../{button-sync.js => buttonSync.js} | 11 +- js/extensions/dialogAbout.js | 50 +++++ ...lication.js => dialogManagePublication.js} | 31 ++- ...tion.js => dialogManageSynchronization.js} | 33 ++- ...cument-selector.js => documentSelector.js} | 63 +++--- .../{document-title.js => documentTitle.js} | 2 +- .../{email-converter.js => emailConverter.js} | 0 js/extensions/googleAnalytics.js | 190 ++++++++++++++++++ js/extensions/markdown-extra.js | 17 +- js/extensions/{math-jax.js => mathJax.js} | 0 js/extensions/notifications.js | 18 +- .../{scroll-link.js => scrollLink.js} | 11 +- js/extensions/toc.js | 17 +- ...rking-indicator.js => workingIndicator.js} | 0 js/{file-manager.js => fileMgr.js} | 6 +- js/{file-system.js => fileSystem.js} | 0 .../{dropbox-helper.js => dropboxHelper.js} | 4 +- .../{github-helper.js => githubHelper.js} | 4 +- .../{google-helper.js => googleHelper.js} | 4 +- js/helpers/{ssh-helper.js => sshHelper.js} | 2 +- .../{tumblr-helper.js => tumblrHelper.js} | 4 +- ...wordpress-helper.js => wordpressHelper.js} | 4 +- js/html/buttonPublish.html | 3 + js/html/buttonShare.html | 17 ++ js/html/buttonShareLocation.html | 5 + js/html/buttonStat.html | 18 ++ js/html/buttonStatSettingsBloc.html | 21 ++ js/html/buttonSync.html | 3 + js/html/dialogAbout.html | 56 ++++++ js/html/dialogManagePublicationLocation.html | 5 + .../dialogManageSynchronizationLocation.html | 5 + js/html/documentSelectorSettingsBloc.html | 31 +++ js/html/markdownExtraSettingsBloc.html | 10 + js/html/notificationsSettingsBloc.html | 11 + js/html/scrollLinkSettingsBloc.html | 7 + js/html/settingsExtensionsAccordion.html | 13 ++ js/html/settingsTemplate.html | 11 + js/html/settingsTemplateTooltip.html | 21 ++ js/html/tocSettingsBloc.html | 10 + js/main-min.js | 36 +++- js/main.js | 7 +- js/{media-importer.js => mediaImporter.js} | 2 +- ...blogger-provider.js => bloggerProvider.js} | 2 +- ...wnload-provider.js => downloadProvider.js} | 2 +- ...dropbox-provider.js => dropboxProvider.js} | 6 +- .../{gdrive-provider.js => gdriveProvider.js} | 6 +- .../{gist-provider.js => gistProvider.js} | 2 +- .../{github-provider.js => githubProvider.js} | 2 +- .../{gplus-provider.js => gplusProvider.js} | 4 +- .../{ssh-provider.js => sshProvider.js} | 2 +- .../{tumblr-provider.js => tumblrProvider.js} | 2 +- ...press-provider.js => wordpressProvider.js} | 2 +- js/publisher.js | 22 +- js/sharing.js | 34 +--- js/synchronizer.js | 10 +- tools/eclipse-formatter-config.xml | 2 +- 67 files changed, 774 insertions(+), 521 deletions(-) rename js/{async-runner.js => asyncRunner.js} (96%) rename js/{extension-manager.js => extensionMgr.js} (81%) delete mode 100644 js/extensions/button-stat.js rename js/extensions/{button-publish.js => buttonPublish.js} (89%) rename js/extensions/{button-share.js => buttonShare.js} (50%) create mode 100644 js/extensions/buttonStat.js rename js/extensions/{button-sync.js => buttonSync.js} (88%) create mode 100644 js/extensions/dialogAbout.js rename js/extensions/{manage-publication.js => dialogManagePublication.js} (66%) rename js/extensions/{manage-synchronization.js => dialogManageSynchronization.js} (65%) rename js/extensions/{document-selector.js => documentSelector.js} (70%) rename js/extensions/{document-title.js => documentTitle.js} (98%) rename js/extensions/{email-converter.js => emailConverter.js} (100%) create mode 100644 js/extensions/googleAnalytics.js rename js/extensions/{math-jax.js => mathJax.js} (100%) rename js/extensions/{scroll-link.js => scrollLink.js} (94%) rename js/extensions/{working-indicator.js => workingIndicator.js} (100%) rename js/{file-manager.js => fileMgr.js} (96%) rename js/{file-system.js => fileSystem.js} (100%) rename js/helpers/{dropbox-helper.js => dropboxHelper.js} (96%) rename js/helpers/{github-helper.js => githubHelper.js} (96%) rename js/helpers/{google-helper.js => googleHelper.js} (97%) rename js/helpers/{ssh-helper.js => sshHelper.js} (99%) rename js/helpers/{tumblr-helper.js => tumblrHelper.js} (99%) rename js/helpers/{wordpress-helper.js => wordpressHelper.js} (99%) create mode 100644 js/html/buttonPublish.html create mode 100644 js/html/buttonShare.html create mode 100644 js/html/buttonShareLocation.html create mode 100644 js/html/buttonStat.html create mode 100644 js/html/buttonStatSettingsBloc.html create mode 100644 js/html/buttonSync.html create mode 100644 js/html/dialogAbout.html create mode 100644 js/html/dialogManagePublicationLocation.html create mode 100644 js/html/dialogManageSynchronizationLocation.html create mode 100644 js/html/documentSelectorSettingsBloc.html create mode 100644 js/html/markdownExtraSettingsBloc.html create mode 100644 js/html/notificationsSettingsBloc.html create mode 100644 js/html/scrollLinkSettingsBloc.html create mode 100644 js/html/settingsExtensionsAccordion.html create mode 100644 js/html/settingsTemplate.html create mode 100644 js/html/settingsTemplateTooltip.html create mode 100644 js/html/tocSettingsBloc.html rename js/{media-importer.js => mediaImporter.js} (97%) rename js/providers/{blogger-provider.js => bloggerProvider.js} (98%) rename js/providers/{download-provider.js => downloadProvider.js} (98%) rename js/providers/{dropbox-provider.js => dropboxProvider.js} (99%) rename js/providers/{gdrive-provider.js => gdriveProvider.js} (99%) rename js/providers/{gist-provider.js => gistProvider.js} (98%) rename js/providers/{github-provider.js => githubProvider.js} (97%) rename js/providers/{gplus-provider.js => gplusProvider.js} (97%) rename js/providers/{ssh-provider.js => sshProvider.js} (98%) rename js/providers/{tumblr-provider.js => tumblrProvider.js} (98%) rename js/providers/{wordpress-provider.js => wordpressProvider.js} (97%) diff --git a/css/default.css b/css/default.css index 7fbdbb2e..85737e23 100644 --- a/css/default.css +++ b/css/default.css @@ -535,9 +535,13 @@ div.dropdown-menu i { margin-bottom: 10px; } -#modal-settings .accordion-heading .checkbox { +#modal-settings .accordion-heading { padding: 8px 15px; - margin-bottom: 0px; +} + +#modal-settings .accordion-heading .accordion-toggle { + display: inline; + padding: 0; } #modal-settings .accordion-inner { @@ -545,10 +549,6 @@ div.dropdown-menu i { padding: 10px 40px; } -#modal-settings .accordion-inner .form-horizontal .control-group { - color: #999; -} - #modal-settings .accordion-inner .form-horizontal .control-label { text-align: left; } @@ -557,10 +557,6 @@ div.dropdown-menu i { margin: 0 10px; } -#modal-settings .accordion-toggle { - cursor: help; -} - #modal-settings .tab-pane-button-container { width: 200px; margin: 10px auto; diff --git a/css/main-min.css b/css/main-min.css index 08954368..b130925a 100644 --- a/css/main-min.css +++ b/css/main-min.css @@ -5793,26 +5793,23 @@ div.dropdown-menu i { border-radius: inherit; margin-bottom: 10px; } -#modal-settings .accordion-heading .checkbox { +#modal-settings .accordion-heading { padding: 8px 15px; - margin-bottom: 0px; +} +#modal-settings .accordion-heading .accordion-toggle { + display: inline; + padding: 0; } #modal-settings .accordion-inner { border: 0; padding: 10px 40px; } -#modal-settings .accordion-inner .form-horizontal .control-group { - color: #999; -} #modal-settings .accordion-inner .form-horizontal .control-label { text-align: left; } #modal-settings .accordion-inner .form-inline .label-text { margin: 0 10px; } -#modal-settings .accordion-toggle { - cursor: help; -} #modal-settings .tab-pane-button-container { width: 200px; margin: 10px auto; diff --git a/index.html b/index.html index a28a1458..9b6a74c7 100644 --- a/index.html +++ b/index.html @@ -115,7 +115,7 @@ - +
@@ -671,124 +671,6 @@