From c0e6fa582d64323a628f420944aa39a677251915 Mon Sep 17 00:00:00 2001 From: Rahman Usta Date: Wed, 11 Jan 2023 13:10:38 +0100 Subject: [PATCH] Prepare v1.8.4 --- CHANGELOG.md | 9 +++ CMD_NOTES.adoc | 6 +- README.adoc | 13 +++- asciidocfx.install4j | 18 +++++- conf/public/js/event-binder.js | 2 +- conf/public/js/preview.js | 6 +- conf/public/js/scroller.js | 5 +- index.html | 64 ++++++++++++------- pom.xml | 2 +- .../com/kodedu/config/ConfigurationBase.java | 2 +- src/main/resources/application.properties | 2 +- 11 files changed, 87 insertions(+), 42 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cbc28a25..dd12202f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes are documented in this file. +## [Version ~1.8.4](https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.8.4) (01.2023) + +* Bug fixes +* Load ruby and jar extensions dynamically +* Implement .asciidoctorconfig feature +* Implement images_paste_dir feature +* Undertow back for fast startup +* Morphdom integration + ## [Version ~1.8.3](https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.8.3) (12.2022) * Java 19 Virtual Threads diff --git a/CMD_NOTES.adoc b/CMD_NOTES.adoc index f14d92a56..3df600b7d 100644 --- a/CMD_NOTES.adoc +++ b/CMD_NOTES.adoc @@ -1,6 +1,6 @@ base64 -i code_sign.p12 | pbcopy base64 -i asciidocfx.pfx | pbcopy -git tag -a v1.8.3 -m "Version 1.8.3" -git tag -d v1.8.3 -git push --delete origin v1.8.3 +git tag -a v1.8.4 -m "Version 1.8.4" +git tag -d v1.8.4 +git push --delete origin v1.8.4 git push --atomic --tags \ No newline at end of file diff --git a/README.adoc b/README.adoc index a1dd4373e..0664d1e6d 100644 --- a/README.adoc +++ b/README.adoc @@ -9,7 +9,7 @@ ifndef::env-github[] :toc-placement: left endif::[] :imagesdir: images -:asciidocfx-version: 1.8.3 +:asciidocfx-version: 1.8.4 :download-root: https://github.com/asciidocfx/AsciidocFX/releases/download/v{asciidocfx-version}/ image:https://opencollective.com/AsciidocFX/backers/badge.svg["Backers on Open Collective", link="#backers"] @@ -71,15 +71,21 @@ NOTE: In all releases we use AdoptOpenJDK JREs, so you will not have any licensi | Windows | {download-root}AsciidocFX_Windows.zip[AsciidocFX_Windows.zip] | Linux | {download-root}AsciidocFX_Linux.tar.gz[AsciidocFX_Linux.tar.gz] +| Linux DEB +| {download-root}AsciidocFX_Linux_Deb.deb[AsciidocFX_Linux.deb] +| Linux RPM +| {download-root}AsciidocFX_Linux_Rpm.rpm[AsciidocFX_Linux.rpm] |==================== === Install on Linux -After the download is completed, untar the package in your preferred directory. +You can install AsciidocFX through the Deb or Rpm installers or via Archive file. +.Archive file [source,bash] ---- -$ cd bin +$ tar –xvzf AsciidocFX_Linux.tar.gz +$ cd AsciidocFX/bin $ ./AsciidocFX ---- @@ -384,6 +390,7 @@ You can represent filesystem tree in following `tree` block. There is two style -- ---- + == Filesystem Tree output When you drag and drop a folder to editor, AFX will generate this like tree automatically. diff --git a/asciidocfx.install4j b/asciidocfx.install4j index e75bb9f45..abf0e8394 100644 --- a/asciidocfx.install4j +++ b/asciidocfx.install4j @@ -1,7 +1,7 @@ - + @@ -1181,7 +1181,7 @@ return true; - + @@ -1195,5 +1195,19 @@ return true; + + + + + + + + + + + + + + diff --git a/conf/public/js/event-binder.js b/conf/public/js/event-binder.js index 350ad0630..9877bafac 100644 --- a/conf/public/js/event-binder.js +++ b/conf/public/js/event-binder.js @@ -1,4 +1,4 @@ -$("#placeholder").on("click", function (event) { +$("body").on("click", function (event) { var elem = $(event.target); if (elem.is("[class*=data-line]")) { diff --git a/conf/public/js/preview.js b/conf/public/js/preview.js index b6746594d..6d666a7e0 100644 --- a/conf/public/js/preview.js +++ b/conf/public/js/preview.js @@ -1,10 +1,8 @@ -var $placeholder = $("#placeholder"); - var clearCacheAction = new BufferedAction(); function clearImageCache(imageName) { clearCacheAction.buff(function () { - $placeholder.find("img").each(function () { + $("body").find("img").each(function () { var image = $(this); var srcAttr = image.attr("src"); if (srcAttr) { @@ -16,7 +14,7 @@ function clearImageCache(imageName) { function imageToBase64Url() { - window.clonedContent = $placeholder.clone(); + window.clonedContent = $("body").clone(); clonedContent.find("img").each(function (index) { afx.imageToBase64Url(this.src, index); }); diff --git a/conf/public/js/scroller.js b/conf/public/js/scroller.js index e6a688c05..870f7f303 100644 --- a/conf/public/js/scroller.js +++ b/conf/public/js/scroller.js @@ -1,7 +1,6 @@ -var placeholder = $("#placeholder"); function runScroller(lineno) { //lineno++; - var node = placeholder.find(".data-line-" + lineno); + var node = $("body").find(".data-line-" + lineno); if (node.length > 0) { node.get(0).scrollIntoView(true); } @@ -46,7 +45,7 @@ function findLowerBound(lineno) { var node; while (lineno >= 0) { lineno--; - node = placeholder.find(".data-line-" + lineno); + node = $("body").find(".data-line-" + lineno); if (node.length > 0) break; } diff --git a/index.html b/index.html index 23bcba81f..e86f70b94 100644 --- a/index.html +++ b/index.html @@ -4,8 +4,8 @@ - -Asciidoc Book Editor based on JavaFX 18 + +Asciidoc Book Editor based on JavaFX 19 +