diff --git a/.github/actions/build-electron/action.yml b/.github/actions/build-electron/action.yml index ccd7f93ff..d5003ecdd 100644 --- a/.github/actions/build-electron/action.yml +++ b/.github/actions/build-electron/action.yml @@ -18,146 +18,143 @@ inputs: runs: using: composite steps: - # Certificate setup - - name: Import Apple certificates - if: inputs.os == 'macos' - uses: apple-actions/import-codesign-certs@v3 - with: - p12-file-base64: ${{ env.APPLE_APP_CERTIFICATE_BASE64 }} - p12-password: ${{ env.APPLE_APP_CERTIFICATE_PASSWORD }} - keychain: build - keychain-password: ${{ github.run_id }} + # Certificate setup + - name: Import Apple certificates + if: inputs.os == 'macos' + uses: apple-actions/import-codesign-certs@v3 + with: + p12-file-base64: ${{ env.APPLE_APP_CERTIFICATE_BASE64 }} + p12-password: ${{ env.APPLE_APP_CERTIFICATE_PASSWORD }} + keychain: build + keychain-password: ${{ github.run_id }} - - name: Install Installer certificate - if: inputs.os == 'macos' - uses: apple-actions/import-codesign-certs@v3 - with: - p12-file-base64: ${{ env.APPLE_INSTALLER_CERTIFICATE_BASE64 }} - p12-password: ${{ env.APPLE_INSTALLER_CERTIFICATE_PASSWORD }} - keychain: build - keychain-password: ${{ github.run_id }} - # We don't need to create a keychain here because we're using the build keychain that was created in the previous step - create-keychain: false + - name: Install Installer certificate + if: inputs.os == 'macos' + uses: apple-actions/import-codesign-certs@v3 + with: + p12-file-base64: ${{ env.APPLE_INSTALLER_CERTIFICATE_BASE64 }} + p12-password: ${{ env.APPLE_INSTALLER_CERTIFICATE_PASSWORD }} + keychain: build + keychain-password: ${{ github.run_id }} + # We don't need to create a keychain here because we're using the build keychain that was created in the previous step + create-keychain: false - - name: Verify certificates - if: inputs.os == 'macos' - shell: ${{ inputs.shell }} - run: | - echo "Available signing identities:" - security find-identity -v -p codesigning build.keychain + - name: Verify certificates + if: inputs.os == 'macos' + shell: ${{ inputs.shell }} + run: | + echo "Available signing identities:" + security find-identity -v -p codesigning build.keychain - - name: Set up Python and other macOS dependencies - if: ${{ inputs.os == 'macos' }} - shell: ${{ inputs.shell }} - run: | - brew install python-setuptools - brew install create-dmg + - name: Set up Python and other macOS dependencies + if: ${{ inputs.os == 'macos' }} + shell: ${{ inputs.shell }} + run: | + brew install python-setuptools + brew install create-dmg - - name: Install dependencies for RPM and Flatpak package building - if: ${{ inputs.os == 'linux' }} - shell: ${{ inputs.shell }} - run: | - sudo apt-get update && sudo apt-get install rpm flatpak-builder elfutils - flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - FLATPAK_ARCH=$(if [[ ${{ inputs.arch }} = 'arm64' ]]; then echo 'aarch64'; else echo 'x86_64'; fi) - FLATPAK_VERSION='24.08' - flatpak install --user --no-deps --arch $FLATPAK_ARCH --assumeyes runtime/org.freedesktop.Platform/$FLATPAK_ARCH/$FLATPAK_VERSION runtime/org.freedesktop.Sdk/$FLATPAK_ARCH/$FLATPAK_VERSION org.electronjs.Electron2.BaseApp/$FLATPAK_ARCH/$FLATPAK_VERSION + - name: Install dependencies for RPM and Flatpak package building + if: ${{ inputs.os == 'linux' }} + shell: ${{ inputs.shell }} + run: | + sudo apt-get update && sudo apt-get install rpm flatpak-builder elfutils + flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + FLATPAK_ARCH=$(if [[ ${{ inputs.arch }} = 'arm64' ]]; then echo 'aarch64'; else echo 'x86_64'; fi) + FLATPAK_VERSION='24.08' + flatpak install --user --no-deps --arch $FLATPAK_ARCH --assumeyes runtime/org.freedesktop.Platform/$FLATPAK_ARCH/$FLATPAK_VERSION runtime/org.freedesktop.Sdk/$FLATPAK_ARCH/$FLATPAK_VERSION org.electronjs.Electron2.BaseApp/$FLATPAK_ARCH/$FLATPAK_VERSION - # Build setup - - name: Install dependencies - shell: ${{ inputs.shell }} - run: npm ci + # Build setup + - name: Install dependencies + shell: ${{ inputs.shell }} + run: npm ci - - name: Update build info - shell: ${{ inputs.shell }} - run: npm run chore:update-build-info + - name: Update build info + shell: ${{ inputs.shell }} + run: npm run chore:update-build-info - # Critical debugging configuration - - name: Run electron-forge build with enhanced logging - shell: ${{ inputs.shell }} - env: - # Pass through required environment variables for signing and notarization - APPLE_TEAM_ID: ${{ env.APPLE_TEAM_ID }} - APPLE_ID: ${{ env.APPLE_ID }} - APPLE_ID_PASSWORD: ${{ env.APPLE_ID_PASSWORD }} - WINDOWS_SIGN_EXECUTABLE: ${{ env.WINDOWS_SIGN_EXECUTABLE }} - TRILIUM_ARTIFACT_NAME_HINT: TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }} - run: | - npm run electron-forge:make -- \ - --arch=${{ inputs.arch }} \ - --platform=${{ inputs.forge_platform }} + # Critical debugging configuration + - name: Run electron-forge build with enhanced logging + shell: ${{ inputs.shell }} + env: + # Pass through required environment variables for signing and notarization + APPLE_TEAM_ID: ${{ env.APPLE_TEAM_ID }} + APPLE_ID: ${{ env.APPLE_ID }} + APPLE_ID_PASSWORD: ${{ env.APPLE_ID_PASSWORD }} + WINDOWS_SIGN_EXECUTABLE: ${{ env.WINDOWS_SIGN_EXECUTABLE }} + TRILIUM_ARTIFACT_NAME_HINT: TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }} + run: npm run electron-forge:make -- --arch=${{ inputs.arch }} --platform=${{ inputs.forge_platform }} - # Add DMG signing step - - name: Sign DMG - if: inputs.os == 'macos' - shell: ${{ inputs.shell }} - run: | - echo "Signing DMG file..." - dmg_file=$(find ./dist -name "*.dmg" -print -quit) - if [ -n "$dmg_file" ]; then - echo "Found DMG: $dmg_file" - # Get the first valid signing identity from the keychain - SIGNING_IDENTITY=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application" | head -1 | sed -E 's/.*"([^"]+)".*/\1/') - if [ -z "$SIGNING_IDENTITY" ]; then - echo "Error: No valid Developer ID Application certificate found in keychain" - exit 1 - fi - echo "Using signing identity: $SIGNING_IDENTITY" - # Sign the DMG - codesign --force --sign "$SIGNING_IDENTITY" --options runtime --timestamp "$dmg_file" - # Notarize the DMG - xcrun notarytool submit "$dmg_file" --apple-id "$APPLE_ID" --password "$APPLE_ID_PASSWORD" --team-id "$APPLE_TEAM_ID" --wait - # Staple the notarization ticket - xcrun stapler staple "$dmg_file" - else - echo "No DMG found to sign" + # Add DMG signing step + - name: Sign DMG + if: inputs.os == 'macos' + shell: ${{ inputs.shell }} + run: | + echo "Signing DMG file..." + dmg_file=$(find ./dist -name "*.dmg" -print -quit) + if [ -n "$dmg_file" ]; then + echo "Found DMG: $dmg_file" + # Get the first valid signing identity from the keychain + SIGNING_IDENTITY=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application" | head -1 | sed -E 's/.*"([^"]+)".*/\1/') + if [ -z "$SIGNING_IDENTITY" ]; then + echo "Error: No valid Developer ID Application certificate found in keychain" + exit 1 fi + echo "Using signing identity: $SIGNING_IDENTITY" + # Sign the DMG + codesign --force --sign "$SIGNING_IDENTITY" --options runtime --timestamp "$dmg_file" + # Notarize the DMG + xcrun notarytool submit "$dmg_file" --apple-id "$APPLE_ID" --password "$APPLE_ID_PASSWORD" --team-id "$APPLE_TEAM_ID" --wait + # Staple the notarization ticket + xcrun stapler staple "$dmg_file" + else + echo "No DMG found to sign" + fi - - name: Verify code signing - if: inputs.os == 'macos' - shell: ${{ inputs.shell }} - run: | - echo "Verifying code signing for all artifacts..." + - name: Verify code signing + if: inputs.os == 'macos' + shell: ${{ inputs.shell }} + run: | + echo "Verifying code signing for all artifacts..." - # First check the .app bundle - echo "Looking for .app bundle..." - app_bundle=$(find ./dist -name "*.app" -print -quit) - if [ -n "$app_bundle" ]; then - echo "Found app bundle: $app_bundle" - echo "Verifying app bundle signing..." - codesign --verify --deep --strict --verbose=2 "$app_bundle" - echo "Displaying app bundle signing info..." - codesign --display --verbose=2 "$app_bundle" + # First check the .app bundle + echo "Looking for .app bundle..." + app_bundle=$(find ./dist -name "*.app" -print -quit) + if [ -n "$app_bundle" ]; then + echo "Found app bundle: $app_bundle" + echo "Verifying app bundle signing..." + codesign --verify --deep --strict --verbose=2 "$app_bundle" + echo "Displaying app bundle signing info..." + codesign --display --verbose=2 "$app_bundle" - echo "Checking entitlements..." - codesign --display --entitlements :- "$app_bundle" + echo "Checking entitlements..." + codesign --display --entitlements :- "$app_bundle" - echo "Checking notarization status..." - xcrun stapler validate "$app_bundle" || echo "Warning: App bundle not notarized yet" - else - echo "No .app bundle found to verify" - fi + echo "Checking notarization status..." + xcrun stapler validate "$app_bundle" || echo "Warning: App bundle not notarized yet" + else + echo "No .app bundle found to verify" + fi - # Then check DMG if it exists - echo "Looking for DMG..." - dmg_file=$(find ./dist -name "*.dmg" -print -quit) - if [ -n "$dmg_file" ]; then - echo "Found DMG: $dmg_file" - echo "Verifying DMG signing..." - codesign --verify --deep --strict --verbose=2 "$dmg_file" - echo "Displaying DMG signing info..." - codesign --display --verbose=2 "$dmg_file" + # Then check DMG if it exists + echo "Looking for DMG..." + dmg_file=$(find ./dist -name "*.dmg" -print -quit) + if [ -n "$dmg_file" ]; then + echo "Found DMG: $dmg_file" + echo "Verifying DMG signing..." + codesign --verify --deep --strict --verbose=2 "$dmg_file" + echo "Displaying DMG signing info..." + codesign --display --verbose=2 "$dmg_file" - echo "Checking DMG notarization..." - xcrun stapler validate "$dmg_file" || echo "Warning: DMG not notarized yet" - else - echo "No DMG found to verify" - fi + echo "Checking DMG notarization..." + xcrun stapler validate "$dmg_file" || echo "Warning: DMG not notarized yet" + else + echo "No DMG found to verify" + fi - # Finally check ZIP if it exists - echo "Looking for ZIP..." - zip_file=$(find ./dist -name "*.zip" -print -quit) - if [ -n "$zip_file" ]; then - echo "Found ZIP: $zip_file" - echo "Note: ZIP files are not code signed, but their contents should be" - fi + # Finally check ZIP if it exists + echo "Looking for ZIP..." + zip_file=$(find ./dist -name "*.zip" -print -quit) + if [ -n "$zip_file" ]; then + echo "Found ZIP: $zip_file" + echo "Note: ZIP files are not code signed, but their contents should be" + fi diff --git a/.github/workflows/release-winget.yml b/.github/workflows/release-winget.yml new file mode 100644 index 000000000..27b57e19d --- /dev/null +++ b/.github/workflows/release-winget.yml @@ -0,0 +1,20 @@ +name: Release to winget +on: + release: + types: [ published ] + workflow_dispatch: + inputs: + release_tag: + description: 'Git tag to release from' + type: string + required: true +jobs: + release-winget: + runs-on: ubuntu-latest + steps: + - name: Publish to WinGet + uses: vedantmgoyal9/winget-releaser@main + with: + identifier: TriliumNext.Notes + token: ${{ secrets.token }} + release-tag: ${{ github.event.inputs.release_tag || github.event.release.tag_name }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e473a4a7f..458861c9d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,14 +53,13 @@ jobs: APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} WINDOWS_SIGN_EXECUTABLE: ${{ vars.WINDOWS_SIGN_EXECUTABLE }} - - name: Publish release - uses: softprops/action-gh-release@v2 + - name: Upload the artifact + uses: actions/upload-artifact@v4 with: - draft: true - fail_on_unmatched_files: true - files: upload/*.* + name: release-desktop-${{ matrix.os.name }}-${{ matrix.arch }} + path: upload/*.* - build_linux_server-x64: + build_server: name: Build Linux Server strategy: fail-fast: false @@ -81,9 +80,32 @@ jobs: os: linux arch: ${{ matrix.arch }} + - name: Upload the artifact + uses: actions/upload-artifact@v4 + with: + name: release-server-linux-${{ matrix.arch }} + path: upload/*.* + + publish_release: + name: Publish release + runs-on: ubuntu-latest + needs: + - make-electron + - build_server + steps: + - run: mkdir upload + + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + merge-multiple: true + pattern: release-* + path: upload + - name: Publish release uses: softprops/action-gh-release@v2 with: - draft: true + draft: false + body_path: docs/Release Notes/Release Notes/${{ github.ref_name }}.md fail_on_unmatched_files: true files: upload/*.* diff --git a/README.md b/README.md index 1ae82efbd..30f4dc124 100644 --- a/README.md +++ b/README.md @@ -107,10 +107,11 @@ npm install npm run server:start ``` +For more details, see the [development docs](https://github.com/TriliumNext/Notes/blob/develop/docs/Developer%20Guide/Developer%20Guide/Building%20and%20deployment/Running%20a%20development%20build.md). + ### Documentation -We are currently transitioning to a new documentation mechanism. -Meanwhile you can still view the [archived Docs repository](https://github.com/TriliumNext/Docs). +See the [documentation guide](https://github.com/TriliumNext/Notes/blob/develop/docs/Developer%20Guide/Developer%20Guide/Documentation.md) for details. ## 👏 Shoutouts diff --git a/bin/docs/.env.example b/bin/docs/.env.example deleted file mode 100644 index 03006fb86..000000000 --- a/bin/docs/.env.example +++ /dev/null @@ -1,3 +0,0 @@ -SHARE_PROTOCOL=http -SHARE_HOST=notes.johnsmith.me -ROOT_NOTE_ID=4yYHqKbLovVX \ No newline at end of file diff --git a/bin/docs/.gitignore b/bin/docs/.gitignore deleted file mode 100644 index 5ad213baa..000000000 --- a/bin/docs/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -output -.env \ No newline at end of file diff --git a/bin/docs/assets/v0.63.6/app-dist/share.js b/bin/docs/assets/v0.63.6/app-dist/share.js deleted file mode 100644 index 3c3282497..000000000 --- a/bin/docs/assets/v0.63.6/app-dist/share.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Fetch note with given ID from backend - * - * @param noteId of the given note to be fetched. If false, fetches current note. - */ -async function fetchNote(noteId = null) { - if (!noteId) { - noteId = document.body.getAttribute("data-note-id"); - } - - const resp = await fetch(`api/notes/${noteId}`); - - return await resp.json(); -} - -document.addEventListener( - "DOMContentLoaded", - () => { - const toggleMenuButton = document.getElementById("toggleMenuButton"); - const layout = document.getElementById("layout"); - - if (toggleMenuButton && layout) { - toggleMenuButton.addEventListener("click", () => layout.classList.toggle("showMenu")); - } - }, - false -); diff --git a/bin/docs/assets/v0.63.6/libraries/ckeditor/ckeditor-content.css b/bin/docs/assets/v0.63.6/libraries/ckeditor/ckeditor-content.css deleted file mode 100644 index 41d0ab466..000000000 --- a/bin/docs/assets/v0.63.6/libraries/ckeditor/ckeditor-content.css +++ /dev/null @@ -1,554 +0,0 @@ -/* !!!!!! TRILIUM CUSTOM CHANGES !!!!!! */ - -.printed-content .ck-widget__selection-handle, -.printed-content .ck-widget__type-around { - /* gets rid of triangles: https://github.com/zadam/trilium/issues/1129 */ - display: none; -} - -/* - * CKEditor 5 (v41.0.0) content styles. - * Generated on Fri, 26 Jan 2024 10:23:49 GMT. - * For more information, check out https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/content-styles.html - */ - -:root { - --ck-color-image-caption-background: hsl(0, 0%, 97%); - --ck-color-image-caption-text: hsl(0, 0%, 20%); - --ck-color-mention-background: hsla(341, 100%, 30%, 0.1); - --ck-color-mention-text: hsl(341, 100%, 30%); - --ck-color-selector-caption-background: hsl(0, 0%, 97%); - --ck-color-selector-caption-text: hsl(0, 0%, 20%); - --ck-highlight-marker-blue: hsl(201, 97%, 72%); - --ck-highlight-marker-green: hsl(120, 93%, 68%); - --ck-highlight-marker-pink: hsl(345, 96%, 73%); - --ck-highlight-marker-yellow: hsl(60, 97%, 73%); - --ck-highlight-pen-green: hsl(112, 100%, 27%); - --ck-highlight-pen-red: hsl(0, 85%, 49%); - --ck-image-style-spacing: 1.5em; - --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2); - --ck-todo-list-checkmark-size: 16px; -} - -/* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */ -.ck-content .table .ck-table-resized { - table-layout: fixed; -} -/* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */ -.ck-content .table table { - overflow: hidden; -} -/* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */ -.ck-content .table td, -.ck-content .table th { - overflow-wrap: break-word; - position: relative; -} -/* @ckeditor/ckeditor5-table/theme/table.css */ -.ck-content .table { - margin: 0.9em auto; - display: table; -} -/* @ckeditor/ckeditor5-table/theme/table.css */ -.ck-content .table table { - border-collapse: collapse; - border-spacing: 0; - width: 100%; - height: 100%; - border: 1px double hsl(0, 0%, 70%); -} -/* @ckeditor/ckeditor5-table/theme/table.css */ -.ck-content .table table td, -.ck-content .table table th { - min-width: 2em; - padding: 0.4em; - border: 1px solid hsl(0, 0%, 75%); -} -/* @ckeditor/ckeditor5-table/theme/table.css */ -.ck-content .table table th { - font-weight: bold; - background: hsla(0, 0%, 0%, 5%); -} -/* @ckeditor/ckeditor5-table/theme/table.css */ -.ck-content[dir="rtl"] .table th { - text-align: right; -} -/* @ckeditor/ckeditor5-table/theme/table.css */ -.ck-content[dir="ltr"] .table th { - text-align: left; -} -/* @ckeditor/ckeditor5-table/theme/tablecaption.css */ -.ck-content .table > figcaption { - display: table-caption; - caption-side: top; - word-break: break-word; - text-align: center; - color: var(--ck-color-selector-caption-text); - background-color: var(--ck-color-selector-caption-background); - padding: 0.6em; - font-size: 0.75em; - outline-offset: -1px; -} -/* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */ -.ck-content .page-break { - position: relative; - clear: both; - padding: 5px 0; - display: flex; - align-items: center; - justify-content: center; -} -/* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */ -.ck-content .page-break::after { - content: ""; - position: absolute; - border-bottom: 2px dashed hsl(0, 0%, 77%); - width: 100%; -} -/* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */ -.ck-content .page-break__label { - position: relative; - z-index: 1; - padding: 0.3em 0.6em; - display: block; - text-transform: uppercase; - border: 1px solid hsl(0, 0%, 77%); - border-radius: 2px; - font-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif; - font-size: 0.75em; - font-weight: bold; - color: hsl(0, 0%, 20%); - background: hsl(0, 0%, 100%); - box-shadow: 2px 2px 1px hsla(0, 0%, 0%, 0.15); - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -/* @ckeditor/ckeditor5-media-embed/theme/mediaembed.css */ -.ck-content .media { - clear: both; - margin: 0.9em 0; - display: block; - min-width: 15em; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list { - list-style: none; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list li { - position: relative; - margin-bottom: 5px; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list li .todo-list { - margin-top: 5px; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list .todo-list__label > input { - -webkit-appearance: none; - display: inline-block; - position: relative; - width: var(--ck-todo-list-checkmark-size); - height: var(--ck-todo-list-checkmark-size); - vertical-align: middle; - border: 0; - left: -25px; - margin-right: -15px; - right: 0; - margin-left: 0; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content[dir="rtl"] .todo-list .todo-list__label > input { - left: 0; - margin-right: 0; - right: -25px; - margin-left: -15px; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list .todo-list__label > input::before { - display: block; - position: absolute; - box-sizing: border-box; - content: ""; - width: 100%; - height: 100%; - border: 1px solid hsl(0, 0%, 20%); - border-radius: 2px; - transition: 250ms ease-in-out box-shadow; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list .todo-list__label > input::after { - display: block; - position: absolute; - box-sizing: content-box; - pointer-events: none; - content: ""; - left: calc(var(--ck-todo-list-checkmark-size) / 3); - top: calc(var(--ck-todo-list-checkmark-size) / 5.3); - width: calc(var(--ck-todo-list-checkmark-size) / 5.3); - height: calc(var(--ck-todo-list-checkmark-size) / 2.6); - border-style: solid; - border-color: transparent; - border-width: 0 calc(var(--ck-todo-list-checkmark-size) / 8) calc(var(--ck-todo-list-checkmark-size) / 8) 0; - transform: rotate(45deg); -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list .todo-list__label > input[checked]::before { - background: hsl(126, 64%, 41%); - border-color: hsl(126, 64%, 41%); -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list .todo-list__label > input[checked]::after { - border-color: hsl(0, 0%, 100%); -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list .todo-list__label .todo-list__label__description { - vertical-align: middle; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type="checkbox"] { - position: absolute; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content .todo-list .todo-list__label > input, -.ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input { - cursor: pointer; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content .todo-list .todo-list__label > input:hover::before, -.ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input:hover::before { - box-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1); -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input { - -webkit-appearance: none; - display: inline-block; - position: relative; - width: var(--ck-todo-list-checkmark-size); - height: var(--ck-todo-list-checkmark-size); - vertical-align: middle; - border: 0; - left: -25px; - margin-right: -15px; - right: 0; - margin-left: 0; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content[dir="rtl"] .todo-list .todo-list__label > span[contenteditable="false"] > input { - left: 0; - margin-right: 0; - right: -25px; - margin-left: -15px; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input::before { - display: block; - position: absolute; - box-sizing: border-box; - content: ""; - width: 100%; - height: 100%; - border: 1px solid hsl(0, 0%, 20%); - border-radius: 2px; - transition: 250ms ease-in-out box-shadow; -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input::after { - display: block; - position: absolute; - box-sizing: content-box; - pointer-events: none; - content: ""; - left: calc(var(--ck-todo-list-checkmark-size) / 3); - top: calc(var(--ck-todo-list-checkmark-size) / 5.3); - width: calc(var(--ck-todo-list-checkmark-size) / 5.3); - height: calc(var(--ck-todo-list-checkmark-size) / 2.6); - border-style: solid; - border-color: transparent; - border-width: 0 calc(var(--ck-todo-list-checkmark-size) / 8) calc(var(--ck-todo-list-checkmark-size) / 8) 0; - transform: rotate(45deg); -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input[checked]::before { - background: hsl(126, 64%, 41%); - border-color: hsl(126, 64%, 41%); -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content .todo-list .todo-list__label > span[contenteditable="false"] > input[checked]::after { - border-color: hsl(0, 0%, 100%); -} -/* @ckeditor/ckeditor5-list/theme/todolist.css */ -.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type="checkbox"] { - position: absolute; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ol { - list-style-type: decimal; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ol ol { - list-style-type: lower-latin; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ol ol ol { - list-style-type: lower-roman; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ol ol ol ol { - list-style-type: upper-latin; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ol ol ol ol ol { - list-style-type: upper-roman; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ul { - list-style-type: disc; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ul ul { - list-style-type: circle; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ul ul ul { - list-style-type: square; -} -/* @ckeditor/ckeditor5-list/theme/list.css */ -.ck-content ul ul ul ul { - list-style-type: square; -} -/* @ckeditor/ckeditor5-image/theme/image.css */ -.ck-content .image { - display: table; - clear: both; - text-align: center; - margin: 0.9em auto; - min-width: 50px; -} -/* @ckeditor/ckeditor5-image/theme/image.css */ -.ck-content .image img { - display: block; - margin: 0 auto; - max-width: 100%; - min-width: 100%; - height: auto; -} -/* @ckeditor/ckeditor5-image/theme/image.css */ -.ck-content .image-inline { - /* - * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).; - * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root. - * This strange behavior does not happen with inline-flex. - */ - display: inline-flex; - max-width: 100%; - align-items: flex-start; -} -/* @ckeditor/ckeditor5-image/theme/image.css */ -.ck-content .image-inline picture { - display: flex; -} -/* @ckeditor/ckeditor5-image/theme/image.css */ -.ck-content .image-inline picture, -.ck-content .image-inline img { - flex-grow: 1; - flex-shrink: 1; - max-width: 100%; -} -/* @ckeditor/ckeditor5-image/theme/imageresize.css */ -.ck-content img.image_resized { - height: auto; -} -/* @ckeditor/ckeditor5-image/theme/imageresize.css */ -.ck-content .image.image_resized { - max-width: 100%; - display: block; - box-sizing: border-box; -} -/* @ckeditor/ckeditor5-image/theme/imageresize.css */ -.ck-content .image.image_resized img { - width: 100%; -} -/* @ckeditor/ckeditor5-image/theme/imageresize.css */ -.ck-content .image.image_resized > figcaption { - display: block; -} -/* @ckeditor/ckeditor5-image/theme/imagecaption.css */ -.ck-content .image > figcaption { - display: table-caption; - caption-side: bottom; - word-break: break-word; - color: var(--ck-color-image-caption-text); - background-color: var(--ck-color-image-caption-background); - padding: 0.6em; - font-size: 0.75em; - outline-offset: -1px; -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-style-block-align-left, -.ck-content .image-style-block-align-right { - max-width: calc(100% - var(--ck-image-style-spacing)); -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-style-align-left, -.ck-content .image-style-align-right { - clear: none; -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-style-side { - float: right; - margin-left: var(--ck-image-style-spacing); - max-width: 50%; -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-style-align-left { - float: left; - margin-right: var(--ck-image-style-spacing); -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-style-align-center { - margin-left: auto; - margin-right: auto; -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-style-align-right { - float: right; - margin-left: var(--ck-image-style-spacing); -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-style-block-align-right { - margin-right: 0; - margin-left: auto; -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-style-block-align-left { - margin-left: 0; - margin-right: auto; -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content p + .image-style-align-left, -.ck-content p + .image-style-align-right, -.ck-content p + .image-style-side { - margin-top: 0; -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-inline.image-style-align-left, -.ck-content .image-inline.image-style-align-right { - margin-top: var(--ck-inline-image-style-spacing); - margin-bottom: var(--ck-inline-image-style-spacing); -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-inline.image-style-align-left { - margin-right: var(--ck-inline-image-style-spacing); -} -/* @ckeditor/ckeditor5-image/theme/imagestyle.css */ -.ck-content .image-inline.image-style-align-right { - margin-left: var(--ck-inline-image-style-spacing); -} -/* @ckeditor/ckeditor5-highlight/theme/highlight.css */ -.ck-content .marker-yellow { - background-color: var(--ck-highlight-marker-yellow); -} -/* @ckeditor/ckeditor5-highlight/theme/highlight.css */ -.ck-content .marker-green { - background-color: var(--ck-highlight-marker-green); -} -/* @ckeditor/ckeditor5-highlight/theme/highlight.css */ -.ck-content .marker-pink { - background-color: var(--ck-highlight-marker-pink); -} -/* @ckeditor/ckeditor5-highlight/theme/highlight.css */ -.ck-content .marker-blue { - background-color: var(--ck-highlight-marker-blue); -} -/* @ckeditor/ckeditor5-highlight/theme/highlight.css */ -.ck-content .pen-red { - color: var(--ck-highlight-pen-red); - background-color: transparent; -} -/* @ckeditor/ckeditor5-highlight/theme/highlight.css */ -.ck-content .pen-green { - color: var(--ck-highlight-pen-green); - background-color: transparent; -} -/* @ckeditor/ckeditor5-block-quote/theme/blockquote.css */ -.ck-content blockquote { - overflow: hidden; - padding-right: 1.5em; - padding-left: 1.5em; - margin-left: 0; - margin-right: 0; - font-style: italic; - border-left: solid 5px hsl(0, 0%, 80%); -} -/* @ckeditor/ckeditor5-block-quote/theme/blockquote.css */ -.ck-content[dir="rtl"] blockquote { - border-left: 0; - border-right: solid 5px hsl(0, 0%, 80%); -} -/* @ckeditor/ckeditor5-basic-styles/theme/code.css */ -.ck-content code { - background-color: hsla(0, 0%, 78%, 0.3); - padding: 0.15em; - border-radius: 2px; -} -/* @ckeditor/ckeditor5-font/theme/fontsize.css */ -.ck-content .text-tiny { - font-size: 0.7em; -} -/* @ckeditor/ckeditor5-font/theme/fontsize.css */ -.ck-content .text-small { - font-size: 0.85em; -} -/* @ckeditor/ckeditor5-font/theme/fontsize.css */ -.ck-content .text-big { - font-size: 1.4em; -} -/* @ckeditor/ckeditor5-font/theme/fontsize.css */ -.ck-content .text-huge { - font-size: 1.8em; -} -/* @ckeditor/ckeditor5-mention/theme/mention.css */ -.ck-content .mention { - background: var(--ck-color-mention-background); - color: var(--ck-color-mention-text); -} -/* @ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css */ -.ck-content hr { - margin: 15px 0; - height: 4px; - background: hsl(0, 0%, 87%); - border: 0; -} -/* @ckeditor/ckeditor5-code-block/theme/codeblock.css */ -.ck-content pre { - padding: 1em; - color: hsl(0, 0%, 20.8%); - background: hsla(0, 0%, 78%, 0.3); - border: 1px solid hsl(0, 0%, 77%); - border-radius: 2px; - text-align: left; - direction: ltr; - tab-size: 4; - white-space: pre-wrap; - font-style: normal; - min-width: 200px; -} -/* @ckeditor/ckeditor5-code-block/theme/codeblock.css */ -.ck-content pre code { - background: unset; - padding: 0; - border-radius: 0; -} -@media print { - /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */ - .ck-content .page-break { - padding: 0; - } - /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */ - .ck-content .page-break::after { - display: none; - } -} diff --git a/bin/docs/assets/v0.63.6/libraries/normalize.min.css b/bin/docs/assets/v0.63.6/libraries/normalize.min.css deleted file mode 100644 index 3d24d023d..000000000 --- a/bin/docs/assets/v0.63.6/libraries/normalize.min.css +++ /dev/null @@ -1,148 +0,0 @@ -/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ -html { - line-height: 1.15; - -webkit-text-size-adjust: 100%; -} -body { - margin: 0; -} -main { - display: block; -} -h1 { - font-size: 2em; - margin: 0.67em 0; -} -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} -pre { - font-family: monospace, monospace; - font-size: 1em; -} -a { - background-color: transparent; -} -abbr[title] { - border-bottom: none; - text-decoration: underline; - text-decoration: underline dotted; -} -b, -strong { - font-weight: bolder; -} -code, -kbd, -samp { - font-family: monospace, monospace; - font-size: 1em; -} -small { - font-size: 80%; -} -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} -sub { - bottom: -0.25em; -} -sup { - top: -0.5em; -} -img { - border-style: none; -} -button, -input, -optgroup, -select, -textarea { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; -} -button, -input { - overflow: visible; -} -button, -select { - text-transform: none; -} -[type="button"], -[type="reset"], -[type="submit"], -button { - -webkit-appearance: button; -} -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner, -button::-moz-focus-inner { - border-style: none; - padding: 0; -} -[type="button"]:-moz-focusring, -[type="reset"]:-moz-focusring, -[type="submit"]:-moz-focusring, -button:-moz-focusring { - outline: 1px dotted ButtonText; -} -fieldset { - padding: 0.35em 0.75em 0.625em; -} -legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; -} -progress { - vertical-align: baseline; -} -textarea { - overflow: auto; -} -[type="checkbox"], -[type="radio"] { - box-sizing: border-box; - padding: 0; -} -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} -[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; -} -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} -::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; -} -details { - display: block; -} -summary { - display: list-item; -} -template { - display: none; -} -[hidden] { - display: none; -} -/*# sourceMappingURL=normalize.min.css.map */ diff --git a/bin/docs/assets/v0.63.6/stylesheets/share.css b/bin/docs/assets/v0.63.6/stylesheets/share.css deleted file mode 100644 index 457898d8f..000000000 --- a/bin/docs/assets/v0.63.6/stylesheets/share.css +++ /dev/null @@ -1,165 +0,0 @@ -body { - font-family: "Lucida Grande", "Lucida Sans Unicode", arial, sans-serif; - line-height: 1.5; -} - -#layout { - max-width: 1200px; - margin: 0 auto; - display: flex; - flex-direction: row-reverse; -} - -#menu { - padding: 25px; - flex-basis: 0; - flex-grow: 1; - overflow: auto; -} - -#menu p { - margin: 0; -} - -#menu > p { - font-weight: bold; - font-size: 110%; -} - -#menu ul { - padding-left: 20px; -} - -#main { - flex-basis: 0; - flex-grow: 3; - overflow: auto; - padding: 10px 20px 20px 20px; -} - -#parentLink { - float: right; - margin-top: 20px; -} - -#title { - margin: 0; - padding-top: 10px; -} - -img { - max-width: 100%; -} - -pre { - white-space: pre-wrap; - word-wrap: anywhere; -} - -iframe.pdf-view { - width: 100%; - height: 800px; -} - -#toggleMenuButton { - display: none; - position: fixed; - top: 8px; - left: 5px; - width: 1.4em; - border-radius: 5px; - border: 1px solid #aaa; - font-size: 2rem; - z-index: 10; - height: auto; - color: black; - cursor: pointer; -} - -#childLinks.grid ul { - list-style-type: none; - display: flex; - flex-wrap: wrap; - padding: 0; -} - -#childLinks.grid ul li { - width: 180px; - height: 140px; - padding: 10px; -} - -#childLinks.grid ul li a { - display: flex; - flex-direction: column; - height: 100%; - width: 100%; - border: 1px solid #ddd; - border-radius: 5px; - justify-content: center; - align-content: center; - text-align: center; - font-size: large; -} - -#childLinks.grid ul li a:hover { - background: #eee; -} - -#childLinks.list ul { - list-style-type: none; - display: inline-flex; - flex-wrap: wrap; - padding: 0; - margin-top: 5px; -} - -#childLinks.list ul li { - margin-right: 20px; -} - -#noteClippedFrom { - padding: 10px 0 10px 0; - margin: 20px 0 20px 0; - color: #666; - border: 1px solid #ddd; - border-left: 0; - border-right: 0; -} - -#toggleMenuButton::after { - position: relative; - top: -2px; - left: 1px; -} - -@media (max-width: 48em) { - #layout.showMenu #menu { - display: block; - margin-top: 40px; - } - - #toggleMenuButton { - display: block; - } - - #layout.showMenu #main { - display: none; - } - - #title { - padding-left: 60px; - } - - #layout.showMenu #toggleMenuButton::after { - content: "«"; - } - - #toggleMenuButton::after { - content: "»"; - } - - #menu { - display: none; - } -} diff --git a/bin/docs/index.template.html b/bin/docs/index.template.html deleted file mode 100644 index b2580cb88..000000000 --- a/bin/docs/index.template.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/bin/docs/prepare.sh b/bin/docs/prepare.sh deleted file mode 100755 index 35e761b6d..000000000 --- a/bin/docs/prepare.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -script_dir=$(realpath $(dirname $0)) - -cd "$script_dir" - -env_file="$script_dir/.env" - -if [ ! -f "$env_file" ]; then - echo "Missing .env file, cannot proceed." - exit 1 -fi - -output_dir="$script_dir/../../docs" -mkdir -p "$output_dir" -rm -f "$output_dir"/* -rm -rf "$output_dir"/{assets,share} - -source "$env_file" - -# Download everything in output/notes.example.com/share/... -share_url="$SHARE_PROTOCOL://$SHARE_HOST/share/$ROOT_NOTE_ID" -wget -rpEk -e robots=off "$share_url" -P "$output_dir" -if [ $? -ne 0 ]; then - echo -e \\nDownloading failed, make sure you are using the real wget package and not the busybox one. - exit 1 -fi - -# Get rid of the domain in the output folder -mv "$output_dir/$SHARE_HOST"/* "$output_dir/" -rmdir "$output_dir/$SHARE_HOST" - -# Create home page with redirect -index_dest_path="$output_dir/index.html" -cp index.template.html "$index_dest_path" -sed -i "s/{{ROOT_NOTE_ID}}/$ROOT_NOTE_ID/g" "$index_dest_path" - -# Rewrite links to get rid of the share folder -sed -i "s/ - - - - - - - - - - - - - - - - - - - - - - Branch prefixes - - -
-
- - - - -

Branch prefixes

- - - - - - -

This note has no content.

- -
- - - - - - -
- - diff --git a/docs/1pOWnHdGAuWR.html b/docs/1pOWnHdGAuWR.html deleted file mode 100644 index 43efb41f2..000000000 --- a/docs/1pOWnHdGAuWR.html +++ /dev/null @@ -1,866 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Widgets - - -
-
- - - - -

Widgets

- - - - -
-

To create a basic widget, simply create a code note with type “JS frontend”. Add the #widget label in order for it to be loaded at startup.

const template = `<div id="my-widget"><button>Click Me!</button></div>`;
-
-class MyWidget extends api.BasicWidget {
-    get position() { return 1; }
-    get parentWidget() { return "left-pane" }
-    
-    doRender() {
-        this.$widget = $(template);
-        return this.$widget;
-    }
-}
-
-module.exports = new MyWidget();

parentWidget() can be given the following values:

  • left-pane - This renders the widget on the left side of the screen where the note tree lives.
  • center-pane - This renders the widget in the center of the layout in the same location that notes and splits appear.
  • note-detail-pane - This renders the widget with the note in the center pane. This means it can appear multiple times with splits.
  • right-pane - This renders the widget to the right of any opened notes.

Reference:

-
- - - - - -
- - - - - - -
- - diff --git a/docs/3eTu21fjtZkj.html b/docs/3eTu21fjtZkj.html deleted file mode 100644 index b71857435..000000000 --- a/docs/3eTu21fjtZkj.html +++ /dev/null @@ -1,842 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Scripting - - -
-
- - - - -

Scripting

- - - - - - - - -
- - - - - - -
- - diff --git a/docs/3jc1nUXyteo0.html b/docs/3jc1nUXyteo0.html deleted file mode 100644 index 39ee0ed82..000000000 --- a/docs/3jc1nUXyteo0.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Themes - - -
-
- - - - -

Themes

- - - - -
-

Server-side

  • There are two themes embedded in the application:
    • light, located in src\public\stylesheets\theme-light.css
    • dark, located in src\public\stylesheets\theme-dark.css
  • The default theme is set only once, when the database is created and is managed by options_init#initNotSyncedOptions.
    • On Electron, the choice between light and dark is done based on the OS preference.
    • Otherwise, the theme is always dark.
  • The theme is served via src\routes\index.ts, in the getThemeCssUrl method.

Client-side

  • The two predefined themes are hard-coded in the client in src\public\app\widgets\type_widgets\options\appearance\theme.js.
  • The user-defined themes are obtained via a call to the server: options/user-themes.
  • The theme retrieval is done via a request
-
- - - -
- - - - - - -
- - diff --git a/docs/4FXLAtcPhZFo.html b/docs/4FXLAtcPhZFo.html deleted file mode 100644 index e32f4377c..000000000 --- a/docs/4FXLAtcPhZFo.html +++ /dev/null @@ -1,838 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - CSS - - -
-
- - - - -

CSS

- - - - -
-

In doRender():

this.cssBlock(`#my-widget {
-	position: absolute;
-    bottom: 40px;
-    left: 60px;
-    z-index: 1;
-}`)

Reference: https://trilium.rocks/X7pxYpiu0lgU 

-
- - - -
- - - - - - -
- - diff --git a/docs/4yYHqKbLovVX.html b/docs/4yYHqKbLovVX.html deleted file mode 100644 index fca1bfba9..000000000 --- a/docs/4yYHqKbLovVX.html +++ /dev/null @@ -1,857 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Developer's Guide - - -
-
- - -

Developer's Guide

- - - - - - - - -
- - - - - - -
- - diff --git a/docs/6x42mhlfLo0o.html b/docs/6x42mhlfLo0o.html deleted file mode 100644 index 3149fba73..000000000 --- a/docs/6x42mhlfLo0o.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - blobs - - -
-
- - - - -

blobs

- - - - -
-
Column NameData TypeNullityDefault valueDescription
blobIdTextNon-null The unique ID of the blob (e.g. XXbfAJXqWrYnSXcelLFA).
contentTextNullablenull

The content of the blob, can be either:

  • text (for plain text notes or HTML notes).
  • binary (for images and other types of attachments)
dateModifiedTextNon-null Localized modification date (e.g. 2023-11-08 18:43:44.204+0200)
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
-
- - - -
- - - - - - -
- - diff --git a/docs/8jWguCtuKsAt.html b/docs/8jWguCtuKsAt.html deleted file mode 100644 index 6d845c16e..000000000 --- a/docs/8jWguCtuKsAt.html +++ /dev/null @@ -1,855 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Right pane widget - - -
-
- - - - -

Right pane widget

- - - - -
-
  • doRender must not be overridden, instead doRenderBody() has to be overridden.
  • parentWidget() must be set to “rightPane”.
  • widgetTitle() getter can optionally be overriden, otherwise the widget will be displayed as “Untitled widget”.
const template = `<div>Hi</div>`;
-
-class ToDoListWidget extends api.RightPanelWidget {
-    
-    get widgetTitle() {
-        return "Title goes here";
-    }
-        
-    get parentWidget() { return "right-pane" }
-    
-    doRenderBody() {
-        this.$body.empty().append($(template));
-    }   
-    
-    async refreshWithNote(note) {
-        this.toggleInt(false);                
-        this.triggerCommand("reEvaluateRightPaneVisibility");
-        this.toggleInt(true);
-        this.triggerCommand("reEvaluateRightPaneVisibility");
-    }
-}
-
-module.exports = new ToDoListWidget();

The implementation is in src/public/app/widgets/right_panel_widget.js.

-
- - - -
- - - - - - -
- - diff --git a/docs/B8hxg4e66cVL.html b/docs/B8hxg4e66cVL.html deleted file mode 100644 index 2d2e330df..000000000 --- a/docs/B8hxg4e66cVL.html +++ /dev/null @@ -1,907 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Development and architecture - - -
-
- - - - -

Development and architecture

- - - - - - - - -
- - - - - - -
- - diff --git a/docs/BhE2WFknKKHG.html b/docs/BhE2WFknKKHG.html deleted file mode 100644 index f34dcf1f8..000000000 --- a/docs/BhE2WFknKKHG.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Main - - -
-
- - - - -

Main

- - - - -
-

The main workflow of the CI:

  • Builds the Docker image and publishes in the GitHub Docker registry.
  • Builds using a portion of the delivery script artifacts for the following platforms:
    • Windows x86_64 as .zip file
    • Windows x86_64 installer (using Squirrel)
    • macOS x86_64 and aarch64.
    • Linux x86_64
    • Linux server x86_64.

The main workflow of the CI runs on develop branches as well as any branch that starts with feature/update_.

Downloading the artifacts from the main branch

Simply go to the develop branch on GitHub and look at the commit bar:

Press the green checkmark (or red cross if something went bad). Then look at the list of jobs and their status:

Then look for any of the entires that starts with “Main” and press the “Details” link next to it. It doesn't really matter which platform you'll choose as the artifacts are available on the same page.

 

-
- - - -
- - - - - - -
- - diff --git a/docs/C09Dou56ffMe.html b/docs/C09Dou56ffMe.html deleted file mode 100644 index fa3c94613..000000000 --- a/docs/C09Dou56ffMe.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Having a simpler packaging system - - -
-
- - - - -

Having a simpler packaging system

- - - - -
-

The current build scripts are a bit complicated and maintaining them is not easy.

Electron Forge seems more mature and has a boatload of features, including Flatpak, snaps, Windows installers & more.

Have a look also at the Plugins section since there are quite a few interesting things there as well.

Afterwards consider running a new round of Reducing binary size, especially taking into consideration removing of the unnecessary locales.

-
- - - -
- - - - - - -
- - diff --git a/docs/Developer Guide/!!!meta.json b/docs/Developer Guide/!!!meta.json new file mode 100644 index 000000000..af6ae2063 --- /dev/null +++ b/docs/Developer Guide/!!!meta.json @@ -0,0 +1,2636 @@ +{ + "formatVersion": 2, + "appVersion": "0.92.7", + "files": [ + { + "isClone": false, + "noteId": "jdjRLhLV3TtI", + "notePath": [ + "jdjRLhLV3TtI" + ], + "title": "Developer Guide", + "notePosition": 1, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Developer Guide", + "children": [ + { + "isClone": false, + "noteId": "Kqzuchw6MmPm", + "notePath": [ + "jdjRLhLV3TtI", + "Kqzuchw6MmPm" + ], + "title": "Dependency Management", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "label", + "name": "iconClass", + "value": "bx bx-package", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "attachments": [], + "dirFileName": "Dependency Management", + "children": [ + { + "isClone": false, + "noteId": "YH5JPX12BYFk", + "notePath": [ + "jdjRLhLV3TtI", + "Kqzuchw6MmPm", + "YH5JPX12BYFk" + ], + "title": "Adding a new client library", + "notePosition": 0, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Adding a new client library.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "C5CNXGgti17i", + "notePath": [ + "jdjRLhLV3TtI", + "Kqzuchw6MmPm", + "C5CNXGgti17i" + ], + "title": "Having a simpler packaging system", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Having a simpler packaging sys.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "sUqOpnrQyEC7", + "notePath": [ + "jdjRLhLV3TtI", + "sUqOpnrQyEC7" + ], + "title": "Building and deployment", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Building and deployment", + "children": [ + { + "isClone": false, + "noteId": "zdQzavvHDl1k", + "notePath": [ + "jdjRLhLV3TtI", + "sUqOpnrQyEC7", + "zdQzavvHDl1k" + ], + "title": "Documentation", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Documentation.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "czgXkoEYwclZ", + "notePath": [ + "jdjRLhLV3TtI", + "sUqOpnrQyEC7", + "czgXkoEYwclZ" + ], + "title": "Running a development build", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Running a development build.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "PXzm2t3sCdsP", + "notePath": [ + "jdjRLhLV3TtI", + "sUqOpnrQyEC7", + "PXzm2t3sCdsP" + ], + "title": "Build deliveries locally", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Build deliveries locally.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "rLWcPPQi7Eso", + "notePath": [ + "jdjRLhLV3TtI", + "sUqOpnrQyEC7", + "rLWcPPQi7Eso" + ], + "title": "Releasing a version", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "IxkDdjTogO18", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Releasing a version.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "oqg9OpK8xfcm", + "notePath": [ + "jdjRLhLV3TtI", + "sUqOpnrQyEC7", + "oqg9OpK8xfcm" + ], + "title": "CI", + "notePosition": 50, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "CI", + "children": [ + { + "isClone": false, + "noteId": "IxkDdjTogO18", + "notePath": [ + "jdjRLhLV3TtI", + "sUqOpnrQyEC7", + "oqg9OpK8xfcm", + "IxkDdjTogO18" + ], + "title": "Main", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "PXzm2t3sCdsP", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Main.md", + "attachments": [ + { + "attachmentId": "c3aGEk60ZR2Q", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "Main_image.png" + }, + { + "attachmentId": "q9OGTAguCyWf", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "1_Main_image.png" + } + ] + } + ] + } + ] + }, + { + "isClone": false, + "noteId": "6BWwXzPCph4G", + "notePath": [ + "jdjRLhLV3TtI", + "6BWwXzPCph4G" + ], + "title": "Project maintenance", + "notePosition": 50, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Project maintenance", + "children": [ + { + "isClone": false, + "noteId": "fa6hAJ9Ith3A", + "notePath": [ + "jdjRLhLV3TtI", + "6BWwXzPCph4G", + "fa6hAJ9Ith3A" + ], + "title": "Updating dependencies", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "Xfi1ScuBTKJf", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Updating dependencies.md", + "attachments": [], + "dirFileName": "Updating dependencies", + "children": [ + { + "isClone": false, + "noteId": "Xfi1ScuBTKJf", + "notePath": [ + "jdjRLhLV3TtI", + "6BWwXzPCph4G", + "fa6hAJ9Ith3A", + "Xfi1ScuBTKJf" + ], + "title": "bettersqlite binaries", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "PXzm2t3sCdsP", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "bettersqlite binaries.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "v5zBZNLR358v", + "notePath": [ + "jdjRLhLV3TtI", + "6BWwXzPCph4G", + "fa6hAJ9Ith3A", + "v5zBZNLR358v" + ], + "title": "Node.js, Electron and `better-sqlite3`", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Node.js, Electron and `better-.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "aPQ1fSuoBCTC", + "notePath": [ + "jdjRLhLV3TtI", + "6BWwXzPCph4G", + "fa6hAJ9Ith3A", + "aPQ1fSuoBCTC" + ], + "title": "Testing compatibility", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Testing compatibility.md", + "attachments": [] + } + ] + } + ] + }, + { + "isClone": false, + "noteId": "wbVIolLKDhe2", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2" + ], + "title": "Development and architecture", + "notePosition": 60, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Development and architecture", + "children": [ + { + "isClone": false, + "noteId": "TLXJwBDo8Rdv", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "TLXJwBDo8Rdv" + ], + "title": "Internationalisation / Translations", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "ky5zpmxXZhhr", + "isInheritable": false, + "position": 10 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-globe", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Internationalisation Translat.md", + "attachments": [], + "dirFileName": "Internationalisation Translations", + "children": [ + { + "isClone": false, + "noteId": "ky5zpmxXZhhr", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "TLXJwBDo8Rdv", + "ky5zpmxXZhhr" + ], + "title": "Guidelines", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Guidelines.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "VTebBD3jZjdp", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "TLXJwBDo8Rdv", + "VTebBD3jZjdp" + ], + "title": "i18n-ally", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "ky5zpmxXZhhr", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "i18n-ally.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "KhDvxPlQQybs", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "TLXJwBDo8Rdv", + "KhDvxPlQQybs" + ], + "title": "Server translations", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Server translations.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "fI16A7NrT713", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "fI16A7NrT713" + ], + "title": "Live reload", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Live reload.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "7BCukQTCm7fv", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "7BCukQTCm7fv" + ], + "title": "Themes", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Themes.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "n9wYW9nUTynV", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "n9wYW9nUTynV" + ], + "title": "Synchronisation", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Synchronisation", + "children": [ + { + "isClone": false, + "noteId": "wA6tm9xcWWaB", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "n9wYW9nUTynV", + "wA6tm9xcWWaB" + ], + "title": "Content hashing", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Content hashing.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "aGlhNBEA9wwo", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "aGlhNBEA9wwo" + ], + "title": "Build information", + "notePosition": 50, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "PXzm2t3sCdsP", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Build information.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "vNMojjUN76jc", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc" + ], + "title": "Database", + "notePosition": 60, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Database", + "children": [ + { + "isClone": false, + "noteId": "e6GnYOXeIWjg", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "e6GnYOXeIWjg" + ], + "title": "attachments", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "DSkl8C325tEC", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "UvXpeSqfYc6d", + "isInheritable": false, + "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "VIcWnKGs0sMh", + "isInheritable": false, + "position": 30 + }, + { + "type": "relation", + "name": "internalLink", + "value": "tM3rIZQzlum4", + "isInheritable": false, + "position": 40 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "attachments.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "ciL84vNBNi9y", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "ciL84vNBNi9y" + ], + "title": "attributes", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "r11Bh3uxFGRj", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "DSkl8C325tEC", + "isInheritable": false, + "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "tM3rIZQzlum4", + "isInheritable": false, + "position": 30 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "attributes.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "VIcWnKGs0sMh", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "VIcWnKGs0sMh" + ], + "title": "blobs", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "blobs.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "GskLPkgY5n6E", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "GskLPkgY5n6E" + ], + "title": "branches", + "notePosition": 50, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "h8AsuFjSD4fB", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "DSkl8C325tEC", + "isInheritable": false, + "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "tM3rIZQzlum4", + "isInheritable": false, + "position": 30 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "branches.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "ohhExR078MPU", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "ohhExR078MPU" + ], + "title": "entity_changes", + "notePosition": 51, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "entity_changes.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "bRqbIg633nCs", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "bRqbIg633nCs" + ], + "title": "etapi_tokens", + "notePosition": 52, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "tM3rIZQzlum4", + "isInheritable": false, + "position": 10 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "etapi_tokens.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "DSkl8C325tEC", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "DSkl8C325tEC" + ], + "title": "notes", + "notePosition": 53, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "VIcWnKGs0sMh", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "UvXpeSqfYc6d", + "isInheritable": false, + "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "tM3rIZQzlum4", + "isInheritable": false, + "position": 30 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "notes.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "4oeftEmy77Bt", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "4oeftEmy77Bt" + ], + "title": "options", + "notePosition": 54, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "options.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "VyFirdgAOoh5", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "VyFirdgAOoh5" + ], + "title": "recent_notes", + "notePosition": 55, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "DSkl8C325tEC", + "isInheritable": false, + "position": 10 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "recent_notes.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "s7ZBiaJVNumK", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "vNMojjUN76jc", + "s7ZBiaJVNumK" + ], + "title": "revisions", + "notePosition": 56, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "DSkl8C325tEC", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "VIcWnKGs0sMh", + "isInheritable": false, + "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "UvXpeSqfYc6d", + "isInheritable": false, + "position": 30 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-table", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "revisions.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "UvXpeSqfYc6d", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "UvXpeSqfYc6d" + ], + "title": "Protected entities", + "notePosition": 80, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "e6GnYOXeIWjg", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "DSkl8C325tEC", + "isInheritable": false, + "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "s7ZBiaJVNumK", + "isInheritable": false, + "position": 30 + } + ], + "format": "markdown", + "dataFileName": "Protected entities.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "tM3rIZQzlum4", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "tM3rIZQzlum4" + ], + "title": "Deleted notes", + "notePosition": 90, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Deleted notes.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "r11Bh3uxFGRj", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "r11Bh3uxFGRj" + ], + "title": "Special notes", + "notePosition": 100, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Special notes.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "h8AsuFjSD4fB", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "h8AsuFjSD4fB" + ], + "title": "Branch prefixes", + "notePosition": 110, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Branch prefixes.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "qjQNyaYXSNWu", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "qjQNyaYXSNWu" + ], + "title": "Revisions", + "notePosition": 120, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Revisions.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "3mz4ZYhi9Cy8", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "3mz4ZYhi9Cy8" + ], + "title": "Backlinks", + "notePosition": 130, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Backlinks.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "ItZRqNGeGSU0", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "ItZRqNGeGSU0" + ], + "title": "Note types", + "notePosition": 140, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "DSkl8C325tEC", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Note types.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "64ZTlUPgEPtW", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "64ZTlUPgEPtW" + ], + "title": "Safe mode", + "notePosition": 150, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Safe mode.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "m2W35hwSDUeh", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "m2W35hwSDUeh" + ], + "title": "Icons", + "notePosition": 160, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "PXzm2t3sCdsP", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "oLhKpfi2kGON", + "isInheritable": false, + "position": 20 + } + ], + "format": "markdown", + "dataFileName": "Icons.md", + "attachments": [], + "dirFileName": "Icons", + "children": [ + { + "isClone": false, + "noteId": "rUkJPiX0sJSk", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "m2W35hwSDUeh", + "rUkJPiX0sJSk" + ], + "title": "Removed icons", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Removed icons.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "GzrBXey1UTUW", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "m2W35hwSDUeh", + "GzrBXey1UTUW" + ], + "title": "Icons on Mac", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Icons on Mac.md", + "attachments": [ + { + "attachmentId": "gMQM37l1tgDc", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "Icons on Mac_image.png" + }, + { + "attachmentId": "KBbeDSs1hueu", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "1_Icons on Mac_image.png" + } + ], + "dirFileName": "Icons on Mac", + "children": [ + { + "isClone": false, + "noteId": "0btkkp7llQdO", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "m2W35hwSDUeh", + "GzrBXey1UTUW", + "0btkkp7llQdO" + ], + "title": "Slightly blurry icon on Mac", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Slightly blurry icon on Mac.md", + "attachments": [ + { + "attachmentId": "6USSTMu15E6N", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "Slightly blurry icon on Ma.png" + }, + { + "attachmentId": "KEkBj1bOyfQ5", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "1_Slightly blurry icon on Ma.png" + }, + { + "attachmentId": "XaG2VbiqKYtR", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "2_Slightly blurry icon on Ma.png" + } + ] + }, + { + "isClone": false, + "noteId": "8zAJ5J8SFEp8", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "m2W35hwSDUeh", + "GzrBXey1UTUW", + "8zAJ5J8SFEp8" + ], + "title": "Adaptive icon", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Adaptive icon.md", + "attachments": [ + { + "attachmentId": "38usIA7IJTpY", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "Adaptive icon_image.png" + }, + { + "attachmentId": "4eQa9Eqkuekv", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "1_Adaptive icon_image.png" + }, + { + "attachmentId": "gM1I22x3bYDv", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "2_Adaptive icon_image.png" + }, + { + "attachmentId": "Im2xMquSwizu", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "3_Adaptive icon_image.png" + }, + { + "attachmentId": "l2xu0BHxfPfq", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "4_Adaptive icon_image.png" + }, + { + "attachmentId": "wM6YPPsas7tA", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "5_Adaptive icon_image.png" + }, + { + "attachmentId": "zPLIBv0Xvgwm", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "6_Adaptive icon_image.png" + } + ] + } + ] + } + ] + }, + { + "isClone": false, + "noteId": "oLhKpfi2kGON", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "oLhKpfi2kGON" + ], + "title": "Demo document", + "notePosition": 170, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Demo document.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "mXFYlhuEr1mZ", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "mXFYlhuEr1mZ" + ], + "title": "Docker", + "notePosition": 180, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Docker.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "6dC7ha5vjqqS", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "6dC7ha5vjqqS" + ], + "title": "Options", + "notePosition": 190, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Options.md", + "attachments": [], + "dirFileName": "Options", + "children": [ + { + "isClone": false, + "noteId": "Qk5Q0Xty3ITv", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "6dC7ha5vjqqS", + "Qk5Q0Xty3ITv" + ], + "title": "Check box option", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Check box option.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "VnqYvYEuMMvb", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "6dC7ha5vjqqS", + "VnqYvYEuMMvb" + ], + "title": "Trigger UI refresh", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Trigger UI refresh.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "3TbiQZODAp6y", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "6dC7ha5vjqqS", + "3TbiQZODAp6y" + ], + "title": "Displaying the option in settings", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Displaying the option in setti.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "1TVWljchsc0t", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "6dC7ha5vjqqS", + "1TVWljchsc0t" + ], + "title": "Refresh widget with option change", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Refresh widget with option cha.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "NcHcYOEn4ol5", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "6dC7ha5vjqqS", + "NcHcYOEn4ol5" + ], + "title": "Creating a new option", + "notePosition": 50, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Creating a new option.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "AdNRgGrYeTCy", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy" + ], + "title": "Adding a new note type", + "notePosition": 210, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Adding a new note type", + "children": [ + { + "isClone": false, + "noteId": "UFtOg3sLumZM", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy", + "UFtOg3sLumZM" + ], + "title": "First steps", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "lgFwLJT72mdf", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "oLhKpfi2kGON", + "isInheritable": false, + "position": 20 + } + ], + "format": "markdown", + "dataFileName": "First steps.md", + "attachments": [], + "dirFileName": "First steps", + "children": [ + { + "isClone": false, + "noteId": "aSO1wqK7L1ma", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy", + "UFtOg3sLumZM", + "aSO1wqK7L1ma" + ], + "title": "mind_map.js", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "code", + "mime": "application/javascript;env=frontend", + "attributes": [], + "dataFileName": "mind_map.js", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "lgFwLJT72mdf", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy", + "lgFwLJT72mdf" + ], + "title": "Note type checklist", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "UFtOg3sLumZM", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "OGYpAbrmEXbX", + "isInheritable": false, + "position": 20 + }, + { + "type": "label", + "name": "iconClass", + "value": "bx bx-list-check", + "isInheritable": false, + "position": 40 + } + ], + "format": "markdown", + "dataFileName": "Note type checklist.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "PoxUNujeKJ7T", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy", + "PoxUNujeKJ7T" + ], + "title": "Saving data via spaced update", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "OGYpAbrmEXbX", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Saving data via spaced update.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "xYVE7qA3EBwb", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy", + "xYVE7qA3EBwb" + ], + "title": "Loading data", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "PoxUNujeKJ7T", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Loading data.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "OGYpAbrmEXbX", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy", + "OGYpAbrmEXbX" + ], + "title": "SVG rendering", + "notePosition": 50, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "SVG rendering.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "Q8hgB8EEen80", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy", + "Q8hgB8EEen80" + ], + "title": "Copy image reference to the clipboard", + "notePosition": 60, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Copy image reference to the cl.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "AwWq8bJRl6XD", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "AdNRgGrYeTCy", + "AwWq8bJRl6XD" + ], + "title": "Export diagram as SVG", + "notePosition": 70, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "OGYpAbrmEXbX", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Export diagram as SVG.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "W0msUwLxm40d", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "W0msUwLxm40d" + ], + "title": "Printing", + "notePosition": 220, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Printing.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "Usiyzn9C4WFv", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "Usiyzn9C4WFv" + ], + "title": "Launchers", + "notePosition": 230, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Launchers.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "k7RavjuXQt8z", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "k7RavjuXQt8z" + ], + "title": "Syntax highlighting", + "notePosition": 240, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Syntax highlighting.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "UzRirf46Xi46", + "notePath": [ + "jdjRLhLV3TtI", + "wbVIolLKDhe2", + "UzRirf46Xi46" + ], + "title": "Hidden notes", + "notePosition": 250, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Hidden notes.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "re0QTuqiYnVb", + "notePath": [ + "jdjRLhLV3TtI", + "re0QTuqiYnVb" + ], + "title": "Scripting", + "notePosition": 80, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Scripting", + "children": [ + { + "isClone": false, + "noteId": "gz6zq5rlHqMa", + "notePath": [ + "jdjRLhLV3TtI", + "re0QTuqiYnVb", + "gz6zq5rlHqMa" + ], + "title": "Widgets", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Widgets.md", + "attachments": [], + "dirFileName": "Widgets", + "children": [ + { + "isClone": false, + "noteId": "M8IppdwVHSjG", + "notePath": [ + "jdjRLhLV3TtI", + "re0QTuqiYnVb", + "gz6zq5rlHqMa", + "M8IppdwVHSjG" + ], + "title": "Right pane widget", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Right pane widget.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "VqGQnnPGnqAU", + "notePath": [ + "jdjRLhLV3TtI", + "re0QTuqiYnVb", + "gz6zq5rlHqMa", + "VqGQnnPGnqAU" + ], + "title": "CSS", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "CSS.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "fZ2IGYFXjkEy", + "notePath": [ + "jdjRLhLV3TtI", + "re0QTuqiYnVb", + "fZ2IGYFXjkEy" + ], + "title": "Server-side imports", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Server-side imports.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "Sow7ThJozkzJ", + "notePath": [ + "jdjRLhLV3TtI", + "Sow7ThJozkzJ" + ], + "title": "Documentation", + "notePosition": 90, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Documentation.md", + "attachments": [ + { + "attachmentId": "2bUrJyt2yfsd", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "Documentation_image.png" + } + ], + "dirFileName": "Documentation", + "children": [ + { + "isClone": false, + "noteId": "LjqM0VUL1CrU", + "notePath": [ + "jdjRLhLV3TtI", + "Sow7ThJozkzJ", + "LjqM0VUL1CrU" + ], + "title": "Documentation references in the application", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Documentation references in th.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "dtKC3FmoWOrv", + "notePath": [ + "jdjRLhLV3TtI", + "dtKC3FmoWOrv" + ], + "title": "Testing", + "notePosition": 110, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Testing.md", + "attachments": [], + "dirFileName": "Testing", + "children": [ + { + "isClone": false, + "noteId": "C5MUQczZ5R9N", + "notePath": [ + "jdjRLhLV3TtI", + "dtKC3FmoWOrv", + "C5MUQczZ5R9N" + ], + "title": "Integration testing", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Integration testing", + "children": [ + { + "isClone": false, + "noteId": "pH4RsxqifVpK", + "notePath": [ + "jdjRLhLV3TtI", + "dtKC3FmoWOrv", + "C5MUQczZ5R9N", + "pH4RsxqifVpK" + ], + "title": "Setting up authentication", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Setting up authentication.md", + "attachments": [ + { + "attachmentId": "aWFXFuXNon7J", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "Setting up authentication_.png" + }, + { + "attachmentId": "JRbtB4byzewo", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "1_Setting up authentication_.png" + } + ] + }, + { + "isClone": false, + "noteId": "bIfKwfCnqpeI", + "notePath": [ + "jdjRLhLV3TtI", + "dtKC3FmoWOrv", + "C5MUQczZ5R9N", + "bIfKwfCnqpeI" + ], + "title": "Test database", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Test database.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "w6gMvKh0UAVT", + "notePath": [ + "jdjRLhLV3TtI", + "dtKC3FmoWOrv", + "C5MUQczZ5R9N", + "w6gMvKh0UAVT" + ], + "title": "Running tests", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Running tests.md", + "attachments": [] + } + ] + } + ] + }, + { + "isClone": false, + "noteId": "dHfw0XZE515z", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z" + ], + "title": "Sub-projects", + "notePosition": 120, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Sub-projects", + "children": [ + { + "isClone": false, + "noteId": "JkTy2zz8Zbyq", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "JkTy2zz8Zbyq" + ], + "title": "CKEditor", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "CKEditor", + "children": [ + { + "isClone": false, + "noteId": "5yWZVlKPjLCC", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "JkTy2zz8Zbyq", + "5yWZVlKPjLCC" + ], + "title": "Environment setup", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "CaInsmrlZhR6", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Environment setup.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "CaInsmrlZhR6", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "JkTy2zz8Zbyq", + "CaInsmrlZhR6" + ], + "title": "Building the editor", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "5yWZVlKPjLCC", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Building the editor.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "5gBYmUqiupBl", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "JkTy2zz8Zbyq", + "5gBYmUqiupBl" + ], + "title": "Differences from upstream", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "lY19SLxUMj3J", + "isInheritable": false, + "position": 10 + }, + { + "type": "label", + "name": "fullContentWidth", + "value": "", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Differences from upstream.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "Q9FyKVERd1Lb", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "JkTy2zz8Zbyq", + "Q9FyKVERd1Lb" + ], + "title": "Updating to a newer version of CKEditor", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "5yWZVlKPjLCC", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "CaInsmrlZhR6", + "isInheritable": false, + "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "yAFSS6awVbaZ", + "isInheritable": false, + "position": 30 + } + ], + "format": "markdown", + "dataFileName": "Updating to a newer version of.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "yAFSS6awVbaZ", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "JkTy2zz8Zbyq", + "yAFSS6awVbaZ" + ], + "title": "Versions and external plugins", + "notePosition": 50, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "lY19SLxUMj3J", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Versions and external plugins.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "lY19SLxUMj3J", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "lY19SLxUMj3J" + ], + "title": "ckeditor5-math", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "JkTy2zz8Zbyq", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "internalLink", + "value": "UMN2ABrBU5D7", + "isInheritable": false, + "position": 20 + }, + { + "type": "relation", + "name": "internalLink", + "value": "CaInsmrlZhR6", + "isInheritable": false, + "position": 30 + } + ], + "format": "markdown", + "dataFileName": "ckeditor5-math.md", + "attachments": [ + { + "attachmentId": "UlSZYhYX8Kfj", + "title": "image.png", + "role": "image", + "mime": "image/png", + "position": 10, + "dataFileName": "ckeditor5-math_image.png" + } + ], + "dirFileName": "ckeditor5-math", + "children": [ + { + "isClone": false, + "noteId": "vpbbBaypScLb", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "lY19SLxUMj3J", + "vpbbBaypScLb" + ], + "title": "Updating with upstream", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "internalLink", + "value": "UMN2ABrBU5D7", + "isInheritable": false, + "position": 10 + } + ], + "format": "markdown", + "dataFileName": "Updating with upstream.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "UMN2ABrBU5D7", + "notePath": [ + "jdjRLhLV3TtI", + "dHfw0XZE515z", + "lY19SLxUMj3J", + "UMN2ABrBU5D7" + ], + "title": "Release management & continuous integration", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Release management & continuou.md", + "attachments": [] + } + ] + } + ] + }, + { + "isClone": false, + "noteId": "ibAPHul7Efvr", + "notePath": [ + "jdjRLhLV3TtI", + "ibAPHul7Efvr" + ], + "title": "Notes for old development", + "notePosition": 130, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Notes for old development", + "children": [ + { + "isClone": true, + "noteId": "PXzm2t3sCdsP", + "notePath": [ + "jdjRLhLV3TtI", + "ibAPHul7Efvr", + "PXzm2t3sCdsP" + ], + "title": "Build deliveries locally", + "prefix": null, + "dataFileName": "Build deliveries locally.clone.md", + "type": "text", + "format": "markdown", + "isExpanded": false + }, + { + "isClone": true, + "noteId": "rLWcPPQi7Eso", + "notePath": [ + "jdjRLhLV3TtI", + "ibAPHul7Efvr", + "rLWcPPQi7Eso" + ], + "title": "Releasing a version", + "prefix": null, + "dataFileName": "Releasing a version.clone.md", + "type": "text", + "format": "markdown", + "isExpanded": false + }, + { + "isClone": true, + "noteId": "czgXkoEYwclZ", + "notePath": [ + "jdjRLhLV3TtI", + "ibAPHul7Efvr", + "czgXkoEYwclZ" + ], + "title": "Running a development build", + "prefix": null, + "dataFileName": "Running a development build.clone.md", + "type": "text", + "format": "markdown", + "isExpanded": false + } + ] + }, + { + "isClone": false, + "noteId": "QRLbiDXNxoWN", + "notePath": [ + "jdjRLhLV3TtI", + "QRLbiDXNxoWN" + ], + "title": "Troubleshooting", + "notePosition": 140, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Troubleshooting", + "children": [ + { + "isClone": false, + "noteId": "QUb0fRhbpT8E", + "notePath": [ + "jdjRLhLV3TtI", + "QRLbiDXNxoWN", + "QUb0fRhbpT8E" + ], + "title": "Error [TransformError]: The package \"@esbuild/linux-x64\" could not be found, and is needed by esbuild.", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Error [TransformError] The pac.md", + "attachments": [] + } + ] + }, + { + "isClone": false, + "noteId": "x6lgrdztQwVB", + "notePath": [ + "jdjRLhLV3TtI", + "x6lgrdztQwVB" + ], + "title": "Installation", + "notePosition": 150, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "attachments": [], + "dirFileName": "Installation", + "children": [ + { + "isClone": false, + "noteId": "bOjeTrUViwLw", + "notePath": [ + "jdjRLhLV3TtI", + "x6lgrdztQwVB", + "bOjeTrUViwLw" + ], + "title": "Download latest nightly and install it", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "Download latest nightly and in.md", + "attachments": [] + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Building and deployment/Build deliveries locally.md b/docs/Developer Guide/Developer Guide/Building and deployment/Build deliveries locally.md new file mode 100644 index 000000000..44c92587a --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Building and deployment/Build deliveries locally.md @@ -0,0 +1,26 @@ +# Build deliveries locally +In the project root: + +
PlatformArchitectureApplicationBuild command
macOSx86_64Desktop / Electron app./bin/build-mac-x64.sh
ARM 64Desktop / Electron app./bin/build-mac-arm64.sh
Linuxx86_64Desktop / Electron app./bin/build-linux-x64.sh
Server./bin/build-server.sh
Windowsx86_64Desktop / Electron app./bin/build-win-x64.sh
+ +Under NixOS the following `nix-shell` is needed: + +``` +nix-shell -p jq +``` + +For Linux builds: + +``` +nix-shell -p jq fakeroot dpkg +``` + +The resulting build will be in the `dist` directory under the project root. + +### Testing the Linux builds under NixOS + +
Desktop clientServer
$ NIXPKGS_ALLOW_UNFREE=1 nix-shell -p steam-run
+[nix-shell] cd dist/trilium-linux-x64
+[nix-shell] steam-run ./trilium
$ NIXPKGS_ALLOW_UNFREE=1 nix-shell -p steam-run
+[nix-shell] cd dist/trilium-linux-x64-server
+[nix-shell] steam-run ./trilium.sh
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Building and deployment/CI/1_Main_image.png b/docs/Developer Guide/Developer Guide/Building and deployment/CI/1_Main_image.png new file mode 100644 index 000000000..5eacee569 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Building and deployment/CI/1_Main_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Building and deployment/CI/Main.md b/docs/Developer Guide/Developer Guide/Building and deployment/CI/Main.md new file mode 100644 index 000000000..667969496 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Building and deployment/CI/Main.md @@ -0,0 +1,24 @@ +# Main +The main workflow of the CI: + +* Builds the Docker image and publishes in the GitHub Docker registry. +* Builds using a portion of the [delivery script](../Build%20deliveries%20locally.md) artifacts for the following platforms: + * Windows `x86_64` as .zip file + * Windows `x86_64` installer (using Squirrel) + * macOS `x86_64` and `aarch64`. + * Linux `x86_64` + * Linux server `x86_64`. + +The main workflow of the CI runs on `develop` branches as well as any branch that starts with `feature/update_`. + +## Downloading the artifacts from the main branch + +Simply go to the [`develop` branch on GitHub](https://github.com/TriliumNext/Notes) and look at the commit bar: + +
+ +Press the green checkmark (or red cross if something went bad). Then look at the list of jobs and their status: + +
+ +Then look for any of the entires that starts with “Main” and press the “Details” link next to it. It doesn't really matter which platform you'll choose as the artifacts are available on the same page. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Building and deployment/CI/Main_image.png b/docs/Developer Guide/Developer Guide/Building and deployment/CI/Main_image.png new file mode 100644 index 000000000..2f13f1647 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Building and deployment/CI/Main_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Building and deployment/Documentation.md b/docs/Developer Guide/Developer Guide/Building and deployment/Documentation.md new file mode 100644 index 000000000..13c941258 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Building and deployment/Documentation.md @@ -0,0 +1,34 @@ +# Documentation +Development notes are published on [triliumnext.github.io/Notes](https://triliumnext.github.io/Notes) by the CI using GitHub Pages. + +The GitHub Pages deployment works by taking the files from the Notes repository, in the `docs` directory. + +## How it works + +There is a script that uses `wget` to download all the files from a share, that means: + +1. You must have a local instance of Trilium Notes server. +2. You must have the documentation imported, up to date and shared. + +Note that currently the documentation source file is not distributed (the note export), until a way is found to automate this process. Contact `eliandoran` should you require to obtain a copy of the documentation. + +## Setting up `.env` file + +Go to `bin/docs` and copy `.env.example` to `.env` and edit it: + +1. Change the `SHARE_PROTOCOL` to either `http` or `https` depending on your setup. +2. Change `SHARE_HOST` to match the domain name or the URL to the host (without the protocol or any slashes). + +Generally `ROOT_NOTE_ID` should not be changed since the note ID must match if the files were imported correctly. + +## Triggering a build + +Run: + +``` +./bin/docs/prepare.sh +``` + +This will attempt to download all the notes from the share URL and put them in `docs`, rewritten for GitHub Pages. + +Commit the results and follow the normal development process to push them. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Building and deployment/Releasing a version.md b/docs/Developer Guide/Developer Guide/Building and deployment/Releasing a version.md new file mode 100644 index 000000000..5651afc4d --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Building and deployment/Releasing a version.md @@ -0,0 +1,22 @@ +# Releasing a version +On NixOS: + +``` +nix-shell -p dpkg fakeroot jq nodejs_20 +``` + +Then simply run from project root: + +``` +./bin/release.sh 1.2.3 +``` + +where `1.2.3` is the desired release version. + +If a version ends with `-beta`, it will automatically be marked as pre-release in GitHub. + +This will automatically generate a release in GitHub if everything goes according to plan. + +Note that the Windows installer is not automatically uploaded yet, it has to be taken from the [main workflow of the CI from the `develop` branch](CI/Main.md). + +Make sure to check test the artifacts of the release. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Building and deployment/Running a development build.md b/docs/Developer Guide/Developer Guide/Building and deployment/Running a development build.md new file mode 100644 index 000000000..2a1858e87 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Building and deployment/Running a development build.md @@ -0,0 +1,89 @@ +# Running a development build +As always, install the dependencies for the first time (and re-run whenever there are errors about missing dependencies): + +``` +npm install +``` + +## Run server + +Run with default settings: + +``` +npm run start-server +``` + +Run with custom port: + +``` +TRILIUM_PORT=8082 npm run start-server +``` + +## Run Electron + +Rebuild `better-sqlite3` dependency: + +``` +npm run switch-electron +``` + +Then run Electron: + +``` +npm run start-electron +``` + +To run Electron using the same data directory as the production version: + +``` +npm run start-electron-no-dir +``` + +When done, switch back the `better-sqlite3` dependency: + +``` +npm run switch-server +``` + +## Quick switch + +To start Electron without running `switch-electron` first: + +``` +npm run qstart-electron +``` + +Similarly, to start the server without running `switch-server` first: + +``` +npm run qstart-server +``` + +## Safe mode + +Safe mode is off by default, to enable it temporarily on a Unix shell, prepend the environment variable setting: + +``` +TRILIUM_SAFE_MODE=1 npm run start-server +``` + +To have the same behaviour on Windows, we would need to alter `package.json`: + +```diff +-"start-electron": "npm run prepare-dist && cross-env TRILIUM_DATA_DIR=./data TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev electron ./dist/electron-main.js --inspect=5858 .", ++"start-electron": "npm run prepare-dist && cross-env TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 TRILIUM_ENV=dev electron ./dist/electron-main.js --inspect=5858 .", +``` + +## Running on NixOS + +When doing development, the Electron binary retrieved from NPM is not going to be compatible with NixOS, resulting in errors when trying to run it. To bypass this, there is a special command to run electron using `nix-shell`: + +``` +npm run start-electron-nix +``` + +Similarly to the original command, to use the same data directory as the production version: + +``` +npm run start-electron-no-dir-nix +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Dependency Management/Adding a new client library.md b/docs/Developer Guide/Developer Guide/Dependency Management/Adding a new client library.md new file mode 100644 index 000000000..26617f7b6 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Dependency Management/Adding a new client library.md @@ -0,0 +1,116 @@ +# Adding a new client library +In the past some libraries have been copy-pasted (and adapted if needed) to the repository. However, new libraries must be obtained exclusively through npm. + +The first step is to install the desired library. As an example we are going to install `i18next`: + +``` +npm i i18next +``` + +### Step 1. Understanding the structure of the import + +After installing the dependency, it's important to know how it's structured. You can do this by looking at the directory structure of the newly imported dependency: + +``` +$ tree node_modules/i18next +node_modules/i18next +├── dist +│ ├── cjs +│ │ └── i18next.js +│ ├── esm +│ │ ├── i18next.bundled.js +│ │ ├── i18next.js +│ │ └── package.json +│ └── umd +│ ├── i18next.js +│ └── i18next.min.js +├── i18next.js +├── i18next.min.js +├── index.d.mts +├── index.d.ts +├── index.js +├── index.v4.d.ts +├── LICENSE +├── package.json +├── README.md +└── typescript + ├── helpers.d.ts + ├── options.d.ts + ├── t.d.ts + └── t.v4.d.ts +``` + +Generally you should be looking for a `.min.js` file. Note that the `esm` and `cjs` variants generally don't work, we are looking for the classic, no module dependency. + +### Step 2. Exposing the library from the server + +The library must be delivered by the server and this is done via `src/routes/assets.ts`. In the `register` function, add a new entry near the bottom of the function: + +```javascript +app.use(`/${assetPath}/node_modules/i18next/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next/'))); +``` + +### Step 3. Adding it to the library loader + +The library loader is a client module which is in charge of downloading the library from the server and importing it. The loader is located in `src/public/app/services/library_loader.js`. + +To add a new library, start by creating a constant for it, with the value pointing to the minified JS identified at the first step: + +```javascript +const I18NEXT = { + js: [ + "node_modules/i18next/i18next.min.js" + ] +}; +``` + +Then add it to the `export default` section: + +```diff + export default { + requireCss, + requireLibrary, + CKEDITOR, + CODE_MIRROR, + ESLINT, + RELATION_MAP, + PRINT_THIS, + CALENDAR_WIDGET, + KATEX, + WHEEL_ZOOM, + FORCE_GRAPH, + MERMAID, + EXCALIDRAW, +- MARKJS ++ MARKJS, ++ I18NEXT + } +``` + +### Step 4. Using the library + +To import the library, simply use the following mechanism: + +```diff +import library_loader from "./library_loader.js"; + +await library_loader.requireLibrary(library_loader.I18NEXT); +``` + +Make sure to replace `I18NEXT` with the library that was created at the previous steps. + +Note that because we are not using a module management mechanism such as ES Modules or Common.js modules, the `requireLibrary` method does not actually return anything.  + +To benefit from the library, it must export on its own an object in `window`. + +In the case of `i18next`, it sets `window.i18next` and that can be used directly: + +```diff +i18next.init({}); +``` + +### Step 5. Adding Electron support + +For Electron, the `node_modules` are copied as a separate step by `bin/copy-dist.ts`. + +Scroll all the way down to the `nodeModulesFolder` and append an entry for the newly added libraries. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Dependency Management/Having a simpler packaging sys.md b/docs/Developer Guide/Developer Guide/Dependency Management/Having a simpler packaging sys.md new file mode 100644 index 000000000..98702fa11 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Dependency Management/Having a simpler packaging sys.md @@ -0,0 +1,8 @@ +# Having a simpler packaging system +The current build scripts are a bit complicated and maintaining them is not easy. + +[Electron Forge](https://www.electronforge.io/) seems more mature and has a boatload of features, including Flatpak, snaps, Windows installers & more. + +Have a look also at the [Plugins](https://www.electronforge.io/config/plugins) section since there are quite a few interesting things there as well. + +Afterwards consider running a new round of Reducing binary size, especially taking into consideration removing of the unnecessary locales. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Copy image reference to the cl.md b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Copy image reference to the cl.md new file mode 100644 index 000000000..d8282bb3f --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Copy image reference to the cl.md @@ -0,0 +1,6 @@ +# Copy image reference to the clipboard +This function is handled by `src/public/app/widgets/floating_buttons/copy_image_reference_button.js` and it supports multiple note types out of the box. + +To enable the display of the button, simply modify `isEnabled` to add support for the new note type. + +No other modifications should be necessary. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Export diagram as SVG.md b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Export diagram as SVG.md new file mode 100644 index 000000000..ad17e39bc --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Export diagram as SVG.md @@ -0,0 +1,33 @@ +# Export diagram as SVG +This mechanism is handled by `src/public/app/widgets/floating_buttons/svg_export_button.js`. + +## Step 1. Enable the button + +Modify the  `isEnabled` method in `svg_export_button.js` to add support for the new note type. + +## Step 2. Add support for exporting the image + +The SVG export needs to be handled inside the note type implementation.  + +The first goal is to create a method to handle the SVG rendering. Make sure to deduplicate the code if the SVG rendering is already handled. + +``` +async renderSvg() { + return await this.mind.exportSvg().text(); +} +``` + +Then create an event handler to manage the SVG export: + +``` +async exportSvgEvent({ntxId}) { + if (!this.isNoteContext(ntxId) || this.note.type !== "mindMap") { + return; + } + + const svg = await this.renderSvg(); + utils.downloadSvg(this.note.title, svg); +} +``` + +Make sure to modify the note type assertion at the beginning of the method. This is very important, otherwise there can be errors when navigating through multiple note types that support this button. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/First steps.md b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/First steps.md new file mode 100644 index 000000000..7f7df68c8 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/First steps.md @@ -0,0 +1,54 @@ +# First steps +> **Note**: When adding or updating step titles/order, don't forget to update the corresponding list in Note type checklist. + +## Step 1. Register the note type in the server + +Go to `src\services\note_types.ts` and add a new entry in `noteTypes` with the type ID and the default MIME type. + +## Step 2. Register the note type in the client context menu + +The client lists the available note types in `src\public\app\services\note_types.ts`. + +## Step 3. Create a type widget + +Go to `src\public\app\widgets\type_widgets` directory and create a new file corresponding to the new note type. + +A blank implementation looks something like this: + +## Step 4. Register the type widget + +The type widget needs to go in `src\public\app\widgets\note_detail.ts`where there is a `typeWidgetClasses` map, mapping the type IDs with the corresponding type widget that was created at the previous step. + +## Step 5. Add the default icon mapping + +To set a default icon for this note type, go to `src\public\app\entities\fnote.ts` and add it to `NOTE_TYPE_ICONS`. + +## Step 6. Add to note type selector + +Go to `src/public/app/widgets/note_type.ts` and register the new note type in `NOTE_TYPES`. + +## Step 7. Add the note to server allowed note types + +This is required in order to make imports possible, otherwise they will be imported as plain text. + +Go to `src/becca/entities/rows.ts` and add the new note type to `ALLOWED_NOTE_TYPES`. + +## Additional changes + +* If the widget requires a full height, it must be configured in `src\public\app\widgets\note_detail.ts` (look for `checkFullHeight`) then a `height: 100%` style can be applied to the containers to make them fit. +* To make the note always full width (ignoring the user's content width), go to `note_wrapper` and look for the `refresh` method. There is a `toggleClass` for `full-content-width` based on the note type. +* To allow the note source to be viewed, go to `src/public/app/widgets/buttons/note_actions.ts` and look for `this.toggleDisabled(this.$showSourceButton` in `refreshVisibility`. + +## Final steps + +* Update the Demo document to showcase the new note type. + +## Troubleshooting + +### Content does not appear, however it appears as hidden in the DOM + +Type widgets do a check whenever a note is selected to determine whether the widget needs to be displayed or not, based on the note type. Make sure `getType()` is well implemented in the newly added type widget (take great care that the value is returned but also that the note type ID matches the ones registered in the previous steps): + +``` +static getType() { return "foo"; } +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/First steps/mind_map.js b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/First steps/mind_map.js new file mode 100644 index 000000000..9e33e54d9 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/First steps/mind_map.js @@ -0,0 +1,27 @@ +import TypeWidget from "./type_widget.js"; + +const TPL = ` +
+
+`; + +export default class MindMapWidget extends TypeWidget { + static getType() { return "mindMap"; } + + doRender() { + this.$widget = $(TPL); + + super.doRender(); + } + + async doRefresh(note) { + this.$widget.html("

Hello

"); + this.$widget.show(); + } + + async entitiesReloadedEvent({loadResults}) { + if (loadResults.isNoteReloaded(this.noteId)) { + this.refresh(); + } + } +} \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Loading data.md b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Loading data.md new file mode 100644 index 000000000..a7aed7b0f --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Loading data.md @@ -0,0 +1,9 @@ +# Loading data +Data loading can be done in `doRefresh()` since it gets a reference to the note: + +``` +const blob = await note.getBlob(); +const content = blob.getJsonContent(); +``` + +Note that `doRefresh` can sometimes be called by Saving data via spaced update when the user makes a changes, this has to be accounted for. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Note type checklist.md b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Note type checklist.md new file mode 100644 index 000000000..9b81ae39c --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Note type checklist.md @@ -0,0 +1,49 @@ +# Note type checklist +The goal of this checklist is to ensure a good implementation or re-test of a note type. + +## Implementation checklist + +The note type widget must be created according to First steps: + +* Register the note type in the server +* Register the note type in the client context menu +* Create a type widget +* Register the type widget +* Add the default icon mapping +* Add to note type selector +* Add the note to server allowed note types +* Update demo document to include this new note type +* Increase server sync version (see Mindmap gets turned as file). + +## Validation checklist + +### Ensure that the note renders properly + +* When refreshing to a note that is already displayed +* When going to another note and then going back +* When creating a new note of the given type +* Have two tabs of the same note type and switch between them + +### Ensure data persistence + +* Save data when modifying changes via spaced update + +### Ensure data retrieval + +* Go on a note of this type and refresh the page +* Create a new note of this type while on another note of this type and ensure that the content is set properly. + +### Set up a note preview + +For an implementation reference, see SVG rendering. + +* Note preview rendering (go to parent and see note list). +* Include note +* Share +* Note revisions + +### Import/export + +* Export & Import, making sure no data is lost in the process. +* Remove the data folder entirely to test that the demo document is well imported on first setup. + * Ensure that the preview also works (check the preview in the root note). \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/SVG rendering.md b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/SVG rendering.md new file mode 100644 index 000000000..da7648c15 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/SVG rendering.md @@ -0,0 +1,72 @@ +# SVG rendering +For diagrams and similar note types, it makes sense to cache an SVG rendering of the content so that it can be used for: + +* Content preview in note lists (when viewing the list of notes from the parent note). +* Note inclusion +* Share + +## Step 1. Save the SVG content as an attachment + +The first step is to obtain the SVG from the custom widget used. For example, for Mind Elixir there is an `exportSvg` method. + +If the returned value is a `Blob`, then the underlying text can be obtained via `await blob.text()`. + +To save the SVG as an attachment alongside the content, simply modify `getData()`: + +``` +async getData() { + const mind = this.mind; + if (!mind) { + return; + } + + const svgContent = await this.mind.exportSvg().text(); + return { + content: mind.getDataString(), + attachments: [ + { + role: "image", + title: "mindmap-export.svg", + mime: "image/svg+xml", + content: svgContent, + position: 0 + } + ] + }; +} +``` + +You can test this step by making a change to the note and then using the “Note attachments” option from the note menu. + +## Step 2. Adapting the server to serve SVG attachment + +The `src/routes/api/image.ts` route is in charge for serving the image previews of image notes, but also of custom note types such as canvases. + +Alter the `returnImageInt` method as follows: + +1. Add the image type to the guard condition which returns 400 for unsupported note types. +2. Add an `if` statement to render the attachment using the correct name: + +``` +if (image.type === "mindMap") { + renderSvgAttachment(image, res, 'mindmap-export.svg'); +} +``` + +## Step 3. Serve the SVG attachment for note preview + +The client also needs tweaking to allow it to render SVG attachments by calling the previously modified server route. + +The `src/public/app/services/content_renderer.js` file is in charge of handling the previews. To render using the image route, modify `getRenderedContent` to add the new note type to the `if` which calls `renderImage`. + +## Step 4. Serve SVG for share + +By default, `Note type cannot be displayed` will be displayed when trying to access the given note via a share. + +To serve the SVG, open `src/share/content_renderer.ts` and look for `getContent`. Then add to the `if` containing `renderImage` the new note type. + +This is not enough, as attempting to access the shared note will result in a broken image that fails with `Requested note is not a shareable image`. To solve this one, go to `src/share/routes.ts` and add a `renderImageAttachment` statement to `router.get('/share/api/images/[…])`. + +## Step 5. Serve SVG for revisions + +In the revisions list, to display the SVG, go to `src/public/app/widgets/dialogs/revisions.js` and look for the `renderContent` method. Simply add the note type to one of the already existing `if`s, such as the one for `canvas` and `mindMap` or `mermaid` (if the text content of the diagram should also be displayed). \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Saving data via spaced update.md b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Saving data via spaced update.md new file mode 100644 index 000000000..5ad001dca --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Adding a new note type/Saving data via spaced update.md @@ -0,0 +1,27 @@ +# Saving data via spaced update +The data persistence is achieved via the spaced update mechanism which is already present and needs to be integrated within the newly created type widgets. + +First, the class must implement `getData`, in order to retrieve the data from the custom widget in a serialized form. As an example from the mind map implementation: + +``` +async getData() { + const mind = this.mind; + if (!mind) { + return; + } + + return { + content: mind.getDataString() + }; +} +``` + +Here the content is a string containing a JSON. It is also possible to provide attachments here as well, such as SVG rendering to provide a preview of the content. + +Then to trigger an update, register a listener within the custom widget that calls the spaced update, for example: + +``` +mind.bus.addListener("operation", (operation) => { + this.spacedUpdate.scheduleUpdate(); +}); +``` \ No newline at end of file diff --git a/docs/User Guide/User Guide/Scripting/Script API/Backend API.md b/docs/Developer Guide/Developer Guide/Development and architecture/Backlinks.md similarity index 100% rename from docs/User Guide/User Guide/Scripting/Script API/Backend API.md rename to docs/Developer Guide/Developer Guide/Development and architecture/Backlinks.md diff --git a/docs/User Guide/User Guide/Scripting/Script API/Frontend API/FNote.md b/docs/Developer Guide/Developer Guide/Development and architecture/Branch prefixes.md similarity index 100% rename from docs/User Guide/User Guide/Scripting/Script API/Frontend API/FNote.md rename to docs/Developer Guide/Developer Guide/Development and architecture/Branch prefixes.md diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Build information.md b/docs/Developer Guide/Developer Guide/Development and architecture/Build information.md new file mode 100644 index 000000000..509386e08 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Build information.md @@ -0,0 +1,4 @@ +# Build information +* Provides context about when the build was made and the corresponding Git revision. +* The information is displayed to the client when going in the about dialog. +* The build information is hard-coded in `src/services/build.ts`. This file is generated automatically via `npm run update-build-info` which itself is run automatically whenever making a build in the CI, or a [local delivery](../Building%20and%20deployment/Build%20deliveries%20locally.md). \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/attachments.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/attachments.md new file mode 100644 index 000000000..1b462d6f0 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/attachments.md @@ -0,0 +1,2 @@ +# attachments +
Column NameData TypeNullityDefault valueDescription
attachmentIdTextNon-null Unique ID (e.g. qhC1vzU4nwSE)
ownerIdTextNon-null The unique ID of a row in notes.
roleTextNon-null The role of the attachment: image for images that are attached to a note.
mimeTextNon-null The MIME type of the attachment (e.g. image/png)
titleTextNon-null The title of the attachment.
isProtectedIntegerNon-null01 if the entity is protected, 0 otherwise.
positionIntegerNon-null0Not sure where the position is relevant for attachments (saw it with values of 10 and 0).
blobIdTextNullablenullThe corresponding blobId from the blobs table.
dateModifiedTextNon-null Localized modification date (e.g. 2023-11-08 18:43:44.204+0200)
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
utcDateScheduledForErasureTextNullablenull 
isDeletedIntegerNon-null 1 if the entity is deleted, 0 otherwise.
deleteIdTextNullablenull 
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/attributes.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/attributes.md new file mode 100644 index 000000000..5b2604430 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/attributes.md @@ -0,0 +1,2 @@ +# attributes +
Column NameData TypeNullityDefault valueDescription
attributeIdTextNon-null Unique Id of the attribute (e.g. qhC1vzU4nwSE), can also have a special unique ID for Special notes (e.g. _lbToday_liconClass).
noteIdTextNon-null The ID of the note this atttribute belongs to
typeTextNon-null The type of attribute (label or relation).
nameTextNon-null The name/key of the attribute.
valueTextNon-null""
  • For label attributes, a free-form value of the attribute.
  • For relation attributes, the ID of the note the relation is pointing to.
positionIntegerNon-null0The position of the attribute compared to the other attributes. Some predefined attributes such as originalFileName have a value of 1000.
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
isDeletedIntegerNon-null 1 if the entity is deleted, 0 otherwise.
deleteIdTextNullablenull 
isInheritableIntegerNullable0 
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/blobs.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/blobs.md new file mode 100644 index 000000000..64a5fdc28 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/blobs.md @@ -0,0 +1,2 @@ +# blobs +
Column NameData TypeNullityDefault valueDescription
blobIdTextNon-null The unique ID of the blob (e.g. XXbfAJXqWrYnSXcelLFA).
contentTextNullablenull

The content of the blob, can be either:

  • text (for plain text notes or HTML notes).
  • binary (for images and other types of attachments)
dateModifiedTextNon-null Localized modification date (e.g. 2023-11-08 18:43:44.204+0200)
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/branches.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/branches.md new file mode 100644 index 000000000..16be8a81c --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/branches.md @@ -0,0 +1,2 @@ +# branches +
Column NameData TypeNullityDefault valueDescription
branchIdTextNon-null The ID of the branch, in the form of a_b where a is the parentNoteId and b is the noteId.
noteIdTextNon-null The ID of the note.
parentNoteIdTextNon-null The ID of the parent note the note belongs to.
notePositionIntegerNon-null The position of the branch within the same level of hierarchy, the value is usually a multiple of 10.
prefixTextNullable The branch prefix if any, or NULL otherwise.
isExpandedIntegerNon-null0Whether the branch should appear expanded (its children shown) to the user.
isDeletedIntegerNon-null01 if the entity is deleted, 0 otherwise.
deleteIdTextNullablenull 
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/entity_changes.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/entity_changes.md new file mode 100644 index 000000000..85a0b134b --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/entity_changes.md @@ -0,0 +1,2 @@ +# entity_changes +
Column NameData TypeNullityDefault valueDescription
idIntegerNullable A sequential numeric index of the entity change.
entityNameTextNullable The type of entity being changed (attributes, branches, note_reordering, etc.)
entityIdTextNullable The ID of the entity being changed.
hashTextNullable TODO: Describe how the hash is calculated
isErasedIntegerNullable TODO: What does this do?
changeIdTextNullable TODO: What does this do?
componentIdTextNullable TODO: What does this do?
instanceIdTextNullable TODO: What does this do?
isSyncedIntegerNullable TODO: What does this do?
utcDateChangedTextNullable Date of the entity change in UTC format (e.g. 2023-11-08 16:43:44.204Z)
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/etapi_tokens.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/etapi_tokens.md new file mode 100644 index 000000000..66e64fb8c --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/etapi_tokens.md @@ -0,0 +1,2 @@ +# etapi_tokens +
Column NameData TypeNullityDefault valueDescription
etapiTokenIdTextNon-null A unique ID of the token (e.g. aHmLr5BywvfJ).
nameTextNon-null The name of the token, as is set by the user.
tokenHashTextNon-null The token itself.
utcDateCreatedTextNon-null Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
isDeletedIntegerNon-null01 if the entity is deleted, 0 otherwise.
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/notes.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/notes.md new file mode 100644 index 000000000..2a21fdcba --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/notes.md @@ -0,0 +1,2 @@ +# notes +
Column NameData TypeNullityDefault valueDescription
noteIdTextNon-null The unique ID of the note (e.g. 2LJrKqIhr0Pe).
titleTextNon-null"note"The title of the note, as defined by the user.
isProtectedIntegerNon-null01 if the entity is protected, 0 otherwise.
typeTextNon-null"text"The type of note (i.e. text, file, code, relationMap, mermaid, canvas).
mimeTextNon-null"text/html"The MIME type of the note (e.g. text/html).. Note that it can be an empty string in some circumstances, but not null.
isDeletedIntegerNullable01 if the entity is deleted, 0 otherwise.
deleteIdTextNon-nullnull 
dateCreatedTextNon-null Localized creation date (e.g. 2023-11-08 18:43:44.204+0200)
dateModifiedTextNon-null Localized modification date (e.g. 2023-11-08 18:43:44.204+0200)
utcDateCreatedTextNon-null Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
blobIdTextNullablenullThe corresponding ID from blobs. Although it can theoretically be NULL, haven't found any such note yet.
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/options.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/options.md new file mode 100644 index 000000000..ec70482c9 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/options.md @@ -0,0 +1,2 @@ +# options +
Column NameData TypeNullityDefault valueDescription
nameTextNon-null The name of option (e.g. maxContentWidth)
valueTextNon-null The value of the option.
isSyncedIntegerNon-null00 if the option is not synchronized and thus can differ between clients, 1 if the option is synchronized.
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/recent_notes.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/recent_notes.md new file mode 100644 index 000000000..f1897cc1d --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/recent_notes.md @@ -0,0 +1,2 @@ +# recent_notes +
Column NameData TypeNullityDefault valueDescription
noteIdTextNon-null Unique ID of the note (e.g. yRRTLlqTbGoZ).
notePathTextNon-null The path (IDs) to the note from root to the note itself, separated by slashes.
utcDateCreatedTextNon-null Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Database/revisions.md b/docs/Developer Guide/Developer Guide/Development and architecture/Database/revisions.md new file mode 100644 index 000000000..4ea9c893d --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Database/revisions.md @@ -0,0 +1,2 @@ +# revisions +
Column NameData TypeNullityDefault valueDescription
revisionIdTextTextNon-null Unique ID of the revision (e.g. 0GjgUqnEudI8).
noteIdTextNon-null ID of the note this revision belongs to.
typeTextNon-null""The type of note (i.e. text, file, code, relationMap, mermaid, canvas).
mimeTextNon-null""The MIME type of the note (e.g. text/html).
titleTextNon-null The title of the note, as defined by the user.
isProtectedIntegerNon-null01 if the entity is protected, 0 otherwise.
blobIdTextNullablenullThe corresponding ID from blobs. Although it can theoretically be NULL, haven't found any such note yet.
utcDateLastEditedTextNon-null Not sure how it differs from modification date.
utcDateCreatedTextNon-null Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
dateLastEditedTextNon-null Not sure how it differs from modification date.
dateCreatedTextNon-null Localized creatino date (e.g. 2023-08-12 15:10:04.045+0300)
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Deleted notes.md b/docs/Developer Guide/Developer Guide/Development and architecture/Deleted notes.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Demo document.md b/docs/Developer Guide/Developer Guide/Development and architecture/Demo document.md new file mode 100644 index 000000000..72fb72523 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Demo document.md @@ -0,0 +1,19 @@ +# Demo document +The demo document is an exported .zip that resides in `db/demo.zip`. + +During on-boarding, if the user selects that they are a new user then the `demo.zip` is imported into the root note. + +## Modifying the document + +On a dev server, remove all your existing notes in order to ensure a clean setup. Right click → Import to note and select the .zip file in `db/demo.zip`. Make sure to disable “Safe import”. + +After making the necessary modifications, simply export the “Trilium Demo” note as “HTML in ZIP archive” and replace `db/demo.zip` with the newly exported one. + +## Testing the changes + +``` +rm -r data +npm run start-server +``` + +And then do the on-boarding again. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Docker.md b/docs/Developer Guide/Developer Guide/Development and architecture/Docker.md new file mode 100644 index 000000000..f8ec576fb --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Docker.md @@ -0,0 +1,18 @@ +# Docker +To run a Docker build: + +``` +./bin/builder-docker.sh +``` + +To run the built Docker image: + +``` +sudo docker run -p 8081:8080 triliumnext/notes:v0.90.6-beta +``` + +To enter a shell in the Docker container: + +``` +sudo docker run -it --entrypoint=/bin/sh zadam/trilium:0.63-latest +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Hidden notes.md b/docs/Developer Guide/Developer Guide/Development and architecture/Hidden notes.md new file mode 100644 index 000000000..01f1773f6 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Hidden notes.md @@ -0,0 +1,6 @@ +# Hidden notes +## Disallow adding child notes + +1. To enforce at server level go to `services/notes.ts` and look for the `getAndValidateParent` method.  Look for the `params.ignoreForbiddenParents` if statement and add it there. +2. To hide the plus button in the note tree, go to `widgets/note_tree` in the client and look for `enhanceTitle`. Look for the if statement which starts with `!["search", "launcher"].includes(note.type)`. +3. To disable it from the contextual menu, go to `tree_context_menu` and look for the `getMenuItems` method. There look for the `insertNoteAfter` and `insertChildNote` actions and look at their `enabled` conditions. If adding a big note type with lots of child notes, see the pattern of optinos & help (rename and augment the `notOptionsOrHelp` variable. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons.md b/docs/Developer Guide/Developer Guide/Development and architecture/Icons.md new file mode 100644 index 000000000..fe48406a7 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Icons.md @@ -0,0 +1,26 @@ +# Icons +Icons are stored in `images` and in `images/app-icons`. + +## Favicon + +The favicon is served dynamically via `serve-favicon`, using the icon in `images/app-icons/win/icon.ico`. + +## Declarative generation of icons + +All the icons are now built off of the SVGs in the `images` directory using the `bin/create-icons.sh` script. + +## Main images + +These are stored in `images`: + +
NameResolutionDescription
icon-black.svg53x40Used by the global menu button when not hovered.
icon-color.svg53x40Used by the global menu when hovered.
icon-grey.svg53x40Used by the dark theme, in place of icon-black.svg.
+ +## App icons + +
NameResolutionDescription
ios/apple-touch-icon.png180x180Used as apple-touch-icon, but only in login.ejs and set_password.ejs for some reason.
mac/icon.icns512x512Provided as --icon to electron-packager for mac-arm64 and mac-x64 builds.
png/128x128.png128x128Used in linux-x64 build, to provide an icon.png.
png/256x256-dev.png256x256Used by the Electron window icon, if in dev mode.
png/256x256.pngUsed by the Electron window icon, if not in dev mode.
win/icon.ico
  • ICO 16x16
  • ICO 32x32
  • ICO 48x48
  • ICO 64x64
  • ICO 128x128
  • PNG 256x256
  • Used by the win-x64 build.
  • Used by Squirrel Windows installer for: setup icon, app icon, control panel icon
  • Used as the favicon.
win/setup-banner.gif640x480Used by the Squirrel Windows installer during the installation process. Has only one frame.
+ +## Additional locations where the branding is used + +* In the client, more specifically in `src/public/app/widgets/buttons/global_menu.js`, where the SVG content of the icon is directly embedded to allow styling via CSS. +* In the Demo document, as an attachment. +* In the CKEditor build, look for `packages/ckeditor5-build-balloon-block/src/icons/trilium.svg`. Make sure not to have any `fill` overrides in the SVG as the wrong color will be used. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/1_Icons on Mac_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/1_Icons on Mac_image.png new file mode 100644 index 000000000..4fa4deed1 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/1_Icons on Mac_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac.md b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac.md new file mode 100644 index 000000000..ed0a29475 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac.md @@ -0,0 +1,8 @@ +# Icons on Mac +Looks great in Finder: + +
+ +Looks great in Dock: + +
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/1_Adaptive icon_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/1_Adaptive icon_image.png new file mode 100644 index 000000000..4fa4deed1 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/1_Adaptive icon_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/1_Slightly blurry icon on Ma.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/1_Slightly blurry icon on Ma.png new file mode 100644 index 000000000..1a0232adf Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/1_Slightly blurry icon on Ma.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/2_Adaptive icon_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/2_Adaptive icon_image.png new file mode 100644 index 000000000..e42926852 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/2_Adaptive icon_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/2_Slightly blurry icon on Ma.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/2_Slightly blurry icon on Ma.png new file mode 100644 index 000000000..c30743ece Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/2_Slightly blurry icon on Ma.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/3_Adaptive icon_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/3_Adaptive icon_image.png new file mode 100644 index 000000000..99b0ce3d4 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/3_Adaptive icon_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/4_Adaptive icon_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/4_Adaptive icon_image.png new file mode 100644 index 000000000..afcfacc11 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/4_Adaptive icon_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/5_Adaptive icon_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/5_Adaptive icon_image.png new file mode 100644 index 000000000..e99523df8 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/5_Adaptive icon_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/6_Adaptive icon_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/6_Adaptive icon_image.png new file mode 100644 index 000000000..eacecb265 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/6_Adaptive icon_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Adaptive icon.md b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Adaptive icon.md new file mode 100644 index 000000000..61f195705 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Adaptive icon.md @@ -0,0 +1,6 @@ +# Adaptive icon +
Before
After
With new scale
+ +## Scale + +
0.9
0.85
0.8
0.75
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Adaptive icon_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Adaptive icon_image.png new file mode 100644 index 000000000..eeec79a01 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Adaptive icon_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Slightly blurry icon on Ma.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Slightly blurry icon on Ma.png new file mode 100644 index 000000000..c32a45801 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Slightly blurry icon on Ma.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Slightly blurry icon on Mac.md b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Slightly blurry icon on Mac.md new file mode 100644 index 000000000..86082bb5c --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac/Slightly blurry icon on Mac.md @@ -0,0 +1,50 @@ +# Slightly blurry icon on Mac +Slightly blurry in extended preview on Mac + +
+ +In the screenshot, the icon is around 650px whereas the closest image we have is 512px, so that might explain the blur. Adding an `ic10` (`1024x1024`, aka `512x512@2x` to see what happens). + +Before: + +``` +File: ../images/app-icons/mac/icon.icns + ic09: 62069 bytes, png: 512x512 +``` + +After: + +``` +File: ../images/app-icons/mac/icon.icns + icp4: 1140 bytes, png: 16x16 + icp5: 1868 bytes, png: 32x32 + ic07: 9520 bytes, png: 128x128 + ic09: 62069 bytes, png: 512x512 + ic10: 180442 bytes, png: 512x512@2x +``` + +Even with a 1024x1024 icon, the image is still blurry. + +Comparing the `.icns` file from the Electron build reveals that the `.icns` file has been tampered with: + +
The electron.icns from the resulting buildThe icon source
File: images/app-icons/mac/electron.icns
+  icp4: 1140 bytes, png: 16x16
+  icp5: 1868 bytes, png: 32x32
+  ic07: 9520 bytes, png: 128x128
+  ic09: 62069 bytes, png: 512x512
+  ic10: 180442 bytes, png: 512x512@2x
File: images/app-icons/mac/icon.icns
+  icp4: 1648 bytes, png: 16x16
+  icp5: 4364 bytes, png: 32x32
+  ic07: 26273 bytes, png: 128x128
+  ic09: 206192 bytes, png: 512x512
+  ic10: 716034 bytes, png: 512x512@2x
+ +The bluriness might come from the image itself: [https://stackoverflow.com/questions/54030521/convert-svg-to-png-with-sharp-edges](https://stackoverflow.com/questions/54030521/convert-svg-to-png-with-sharp-edges)  + +Rendering with Inkscape (left) vs ImageMagick (right): + +
+ +Now in macOS it's also rendering quite nicely: + +
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac_image.png b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac_image.png new file mode 100644 index 000000000..f587c31cf Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Icons on Mac_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Removed icons.md b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Removed icons.md new file mode 100644 index 000000000..6ec6a45eb --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Icons/Removed icons.md @@ -0,0 +1,12 @@ +# Removed icons +The following icons were removed: + +## Main images + +These are stored in `images`: + +
NameResolutionDescription
icon-black.png36x36Does not appear to be used.
icon-color.png36x36Used only by some tests in test-etapi.
icon-grey.png36x36Does not appear to be used.
icon.svg210x297Does not appear to be used.
+ +## App icons + +
NameResolutionDescription
png/16x16-bw.png16x16Do not appear to be used.
png/16x16.png
png/24x24.png24x24
png/32x32.png32x32
png/48x48.png48x48
png/64x64.png64x64
png/96x96.png96x96
png/512x512.png512x512Does not appear to be used.
win/setup-banner.xcf GIMP source for win/setup-banner.gif. Provided only for future editing.
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translat.md b/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translat.md new file mode 100644 index 000000000..d4026a474 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translat.md @@ -0,0 +1,94 @@ +# Internationalisation / Translations +During the initial development of Trilium Notes, internationalisation was not considered as it was meant to be an English-only product. + +As the application and the user base grows, it makes sense to be able to reach out as many people as possible by providing translations in their native language. + +The library used is [i18next](https://www.i18next.com/). + +## Where are the translations? + +The translations are formatted as JSON files and they are located in `src/public/translations`. For every supported locale, there is a subdirectory in which there is a `translation.json` file (e.g. `src/public/translations/en/translation.json`). + +### Message keys + +One important aspect is the fact that we are using a key-based approach. This means that each message is identified by an ID rather than a natural-language message (such as the default approach in gettext). + +The key-based approach allows a hierarchical structure. For example, a key of `about.title` would be added in `translation.json` as follows: + +```json +{ + "about": { + "title": "About TriliumNext Notes" + } +} +``` + +Follow the Guidelines when creating a new message. + +### Adding a new locale + +To add a new locale, go to `src/public/translations` with your favorite text editor and copy the `en` directory. + +Rename the copy to the ISO code (e.g. `fr`, `ro`) of the language being translated. + +Translations with a country-language combination, using their corresponding ISO code (e.g. `fr_FR`, `fr_BE`), has not been tested yet. + +### Changing the language + +Since the internationalisation process is in its early stages, there is no user-facing way to switch the language. + +To change the language manually, edit `src/public/app/services/i18n.js` and look for the line containing `lng: "en"`. Replace `en` with the desired language code (from the ones available in `src/public/translations`). + +## Client-side translations + +### Component-level translations + +Most of the client translations are present in the various widgets and layouts. + +Translation support has to be added manually for every file. + +The first step is to add the translation import with a relative import. For example, if we are in the `src/public/app/widgets/dialogs` directory, the import would look as follows: + +```javascript +import { t } from "../../services/i18n.js"; +``` + +Afterwards, simply replace the hard-coded message with: + +```javascript +${t("msgid")} +``` + +where `msgid` is the key of the message being translated. + +### Variables + +In the translation, enclose the variables with `{{` and `}}`: + +``` +{ + "key": "{{what}} is {{how}}" +} +``` + +Then pass the arguments when reading the translation: + +``` +t('key', { what: 'i18next', how: 'great' }) +``` + +### Template-level translations + +Templates are `.ejs` files present in `src/views`, these are used to prepare the root layout for desktop, mobile applications as well as setup (onboarding) and the shared notes view. + +Due to using a different approach, it is not possible yet to translate those files. + +## Server-side translations + +Currently the server-side messages are not translatable. They will be added as a separate step. + +## Locale/language selection + +The language is stored as an option which is synchronized across all devices and the user is able to adjust it via Options → Appearance → Locale. + +The options shown to the user are currently hard-coded in `src/routes/api/options.ts`, where there is a `getSupportedLocales()` function. The `id` field must match the corresponding directory in `src/public/translations` and the `name` must be the localized name of the language (so the name must be in that language, not in English). \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/Guidelines.md b/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/Guidelines.md new file mode 100644 index 000000000..65bdf9673 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/Guidelines.md @@ -0,0 +1,9 @@ +# Guidelines +* Use hierarchy whenever appropriate, try to group the messages by: + * Modals (e.g. `about.foo`, `jump_to_note.foo`) +* Don't duplicate messages that are very widely used. + * One such example is `aria-label="Close"` which should go to a single message such as `modal.close` instead of being duplicated in every modal. +* On the other hand, don't overly generalise messages. A `close` message that is used whenever the “Close” word is encountered is not a good approach since it can potentially cause issues due to lack of context. +* Use [variable interpolation](https://www.i18next.com/translation-function/interpolation) whenever appropriate. + * If you see multiple messages joined together only to apply add a variable such as a user-inputted value, try to join those messages together into a single message containing a variable. + * So instead of `“Number of updates: “ + numUpdates + “.”` use `$(t("number_updates", { numUpdates }))` where the message translation would appear as `Number of updates: {{numUpdates}}.` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/Server translations.md b/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/Server translations.md new file mode 100644 index 000000000..f055fce95 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/Server translations.md @@ -0,0 +1,19 @@ +# Server translations +* Server-side translations are managed by the same library as the client, i18next. +* The translation files reside in the `/translations` directory, following the same convention as the client (`translations/{{lng}}/{{ns}}.json`), where the namespace is `server.json`. So for the Spanish translations we have `translations/es/server.json`. +* Loading of translations is managed by [i18next-fs-backend](https://github.com/i18next/i18next-fs-backend) which loads the translations directly from the file system (unlike HTTP requests like the client), at the path mentioned previously (relative to `package.json`). + +## How to translate a string + +Unlike the client which uses a dedicated client service, the i18next library on the server is used directly, as such: + +```javascript +import { t } from "i18next"; + +const translatedString = t("message.id"); +``` + +## What should be translated + +* Avoid translating server-side logs, as those are supposed to be for debugging and as such there is no benefit in translating them. +* Translate any user-facing message that comes from the server, such as error messages shown in the Electron application, or information such as keyboard shortcuts, note titles, etc. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/i18n-ally.md b/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/i18n-ally.md new file mode 100644 index 000000000..75a8b0cd6 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Internationalisation Translations/i18n-ally.md @@ -0,0 +1,15 @@ +# i18n-ally +[`i18n-ally`](https://github.com/lokalise/i18n-ally) is a VS Code extension that aids in internationalization. + +It is currently integrated in the project and offers features such as: + +* Highlight, autocomplete translations. +* Display translations inline. +* Extract messages into translation. + +### Extracting messages into translation + +1. Open any .js file and select an untranslated string inside a template (`TPL`). +2. Press Ctrl+P and look for “i18n Ally: Extract text into i18n messages” +3. Select the first template. +4. Select the path of translation, taking into consideration the  Guidelines (e.g. `jump_to_note.search-for-note-by-its-name`). \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Launchers.md b/docs/Developer Guide/Developer Guide/Development and architecture/Launchers.md new file mode 100644 index 000000000..f7e5f429e --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Launchers.md @@ -0,0 +1,13 @@ +# Launchers +Launchers are items that are displayed in the launcher bar (left side of the screen). They are of two different types: + +* Visible launchers: are displayed by default to the user, can be moved to the available launchers section to hide them. +* Available launchers: can be manually added by the user from settings into the list of visible launchers. + +## Adding a new launcher + +Regardless of the type, new launchers are added at server level, inside `hidden_subtree.ts` file. + +* To add a new available launcher, look for `_lbAvailableLaunchers` and add a new item to its `children`. +* Similarly, to add a visible launcher, look for `_lbVisibleLaunchers`. + * If you add a visible launcher, it will be available for both new and old users, since the application will identify that there is a new launcher to be added regardless of the user preference. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Live reload.md b/docs/Developer Guide/Developer Guide/Development and architecture/Live reload.md new file mode 100644 index 000000000..dc428c828 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Live reload.md @@ -0,0 +1,20 @@ +# Live reload +## Server live reload + +If running the server using `npm run start-server`, the server will watch for changes in `src/public` and trigger a frontend reload if that occurs. + +## Electron live reload + +Similarly, `npm run start-electron` supports live refresh  as well. + +However, a core difference is that Electron watches `dist/src/public` instead of `src/public` since Electron runs on its own copy of the files. + +To ameliorate that, a separate watch script has been implemented which automatically copies files from `src/public` to `dist/src/public` whenever a change is detected. To run it: + +``` +npm run +``` + +## Technical details + +* This mechanism is managed at server level by watching for changes in`services/ws.ts`. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Note types.md b/docs/Developer Guide/Developer Guide/Development and architecture/Note types.md new file mode 100644 index 000000000..b2388f1dd --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Note types.md @@ -0,0 +1,30 @@ +# Note types +The note type is defined by the `type` column in notes. + +Possible types: + +
Note Typetype valueCorresponding MIME typeContent of the note's blobRelevant attributes
Texttext The HTML of the note. 
Relation Map relationMapapplication/json

A JSON describing the note:

{
+    "notes": [
+        {
+            "noteId": "gFQDL11KEm9G",
+            "x": 142,
+            "y": 405
+        },
+        {
+            "noteId": "8GcjEKyrrCgl",
+            "x": 100.10406374385552,
+            "y": 757.0364424520196
+        }
+    ],
+    "transform": {
+        "scale": 0.3,
+        "x": 480.29766098682165,
+        "y": 116.83892021963081
+    }
+}
None
Render Noterendertext/html or blank.An empty blob.~renderNote pointing to the HTML note to render.
Canvascanvasapplication/json
{
+	"appState": {},
+	"elemenets": {},
+	"files": {},
+	"type": "excalidraw",
+	"version": 2
+}
None
Mermaid Diagrammermaidtext/mermaid or text/plainThe plain text content of the Mermaid diagram.None
Bookbooktext/html or blank.An empty blob.
  • #viewType which can be either grid or list.
  • #expanded

both options are shown to the user via the “Book Properties” ribbon widget.

Web ViewwebViewblankAn empty blob.#webViewSrc pointing to an URL to render.
CodecodeDepends on the language (e.g. text/plain, text/x-markdown, text/x-c++src).The plain text content. 
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Options.md b/docs/Developer Guide/Developer Guide/Development and architecture/Options.md new file mode 100644 index 000000000..2cfff155d --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Options.md @@ -0,0 +1,14 @@ +# Options +## Read an option + +Add the import to the service (make sure the relative path is correct): + +```javascript +import options from "../../services/options.js"; +``` + +Them simply read the option: + +```javascript +this.firstDayOfWeek = options.getInt("firstDayOfWeek"); +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Options/Check box option.md b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Check box option.md new file mode 100644 index 000000000..c127d8c62 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Check box option.md @@ -0,0 +1,37 @@ +# Check box option +In the TPL: + +``` +
+

Background effects

+ +

On the desktop application, it's possible to use a semi-transparent background tinted in the colors of the user's wallpaper to add a touch of color.

+ +
+ +
+
+``` + +In `doRender()`: + +``` +doRender() { + this.$backgroundEffects = this.$widget.find("input.background-effects"); + + this.$backgroundEffects.on("change", () => this.updateCheckboxOption("backgroundEffects", this.$backgroundEffects)); +} +``` + +In `optionsLoaded(options)`: + +``` +async optionsLoaded(options) { + + this.setCheckboxState(this.$backgroundEffects, options.backgroundEffects); + +} +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Options/Creating a new option.md b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Creating a new option.md new file mode 100644 index 000000000..975ef70b3 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Creating a new option.md @@ -0,0 +1,5 @@ +# Creating a new option +1. Go to `options_interface.ts` and add the option to `OptionDefinitions`, specifying its intended data type (boolean, string, number). Note that in the end the option will still be stored as a string, but this aids in type safety across the application. +2. To add a new option with a set default, go to `options_init.ts` in the server and add a new entry in the `defaultOptions`. +3. **Make the option adjustable by the client** + By default options are not adjustable or visible to the client. To do so, modify `routes/api/options.ts` to add the newly added option to `ALLOWED_OPTIONS`. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Options/Displaying the option in setti.md b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Displaying the option in setti.md new file mode 100644 index 000000000..71bab7e34 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Displaying the option in setti.md @@ -0,0 +1,36 @@ +# Displaying the option in settings +Go to `src/public/app/widgets/type_widgets/options` and select a corresponding category, such as `appearance` and edit one of the JS files. + +For example, to create a select: + +First, modify the template (`TPL`), to add the new widget: + +``` +
+ + +
+``` + +Secondly, create a reference to the new element in `doRender()`: + +``` +this.$firstDayOfWeek = this.$widget.find(".first-day-of-week-select"); +``` + +Then in `optionsLoaded` adjust the value to the one set in the database: + +``` +this.$firstDayOfWeek.val(options.firstDayOfWeek); +``` + +To actually update the option, add a listener in `doRender`: + +``` +this.$firstDayOfWeek.on("change", () => { + this.updateOption("firstDayOfWeek", this.$firstDayOfWeek.val()); +}); +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Options/Refresh widget with option cha.md b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Refresh widget with option cha.md new file mode 100644 index 000000000..1650f399d --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Refresh widget with option cha.md @@ -0,0 +1,10 @@ +# Refresh widget with option change +To make a widget react to a change of a given option, simply add the following to the widget: + +```javascript +async entitiesReloadedEvent({loadResults}) { + if (loadResults.getOptionNames().includes("firstDayOfWeek")) { + // Do something. + } +} +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Options/Trigger UI refresh.md b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Trigger UI refresh.md new file mode 100644 index 000000000..7d85a175c --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Options/Trigger UI refresh.md @@ -0,0 +1,12 @@ +# Trigger UI refresh +Call `utils.reloadFrontendApp`, but make sure to wait for the option to be saved first. + +``` +this.$backgroundEffects.on("change", async () => { + + await this.updateCheckboxOption("backgroundEffects", this.$backgroundEffects); + + utils.reloadFrontendApp("background effect change"); + +}); +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Printing.md b/docs/Developer Guide/Developer Guide/Development and architecture/Printing.md new file mode 100644 index 000000000..29c081bcb --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Printing.md @@ -0,0 +1,15 @@ +# Printing +Note printing is handled by `note_detail.js`, in the `printActiveNoteEvent` method. + +The application uses the [`print-this`](https://www.npmjs.com/package/print-this) library to isolate `.note-detail-printable:visible` and prepare it for printing. + +Some scripts like KaTeX are manually injected in the footer, and the CSS to be used is manually defined. The most important one is `print.css`. + +## Syntax highlighting + +Syntax highlighting for code blocks is supported as well: + +* It works by injecting a Highlight.js stylesheet into the print. +* The theme used is hard-coded (the _Visual Studio Light theme_, at the time of writing) in order not to have a dark background in print. +* The Highlight.js library is not needed since the `.note-detail-printable` which is rendered already has the `.hljs` classes added to it in order to achieve the syntax highlighting. +* The user's choice of whether to enable syntax highlighting is also respected. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Protected entities.md b/docs/Developer Guide/Developer Guide/Development and architecture/Protected entities.md new file mode 100644 index 000000000..d6042d6fb --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Protected entities.md @@ -0,0 +1,6 @@ +# Protected entities +The following entities can be made protected, via their `isProtected` flag: + +* attachments +* notes +* revisions \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Revisions.md b/docs/Developer Guide/Developer Guide/Development and architecture/Revisions.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Safe mode.md b/docs/Developer Guide/Developer Guide/Development and architecture/Safe mode.md new file mode 100644 index 000000000..5522f0062 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Safe mode.md @@ -0,0 +1,11 @@ +# Safe mode +Safe mode is triggered by setting the `TRILIUM_SAFE_MODE` environment variable to a truthy value, usually `1`. + +In each artifact there is a `trilium-safe-mode.sh` (or `.bat`) script to enable it. + +What it does: + +* Disables `customWidget` launcher types in `app/widgets/containers/launcher.js`. +* Disables the running of `mobileStartup` or `frontendStartup` scripts. +* Displays the root note instead of the previously saved session. +* Disables the running of `backendStartup`, `hourly`, `daily` scripts and checks for the hidden subtree. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Special notes.md b/docs/Developer Guide/Developer Guide/Development and architecture/Special notes.md new file mode 100644 index 000000000..e69de29bb diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Synchronisation/Content hashing.md b/docs/Developer Guide/Developer Guide/Development and architecture/Synchronisation/Content hashing.md new file mode 100644 index 000000000..4b628a5e3 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Synchronisation/Content hashing.md @@ -0,0 +1,17 @@ +# Content hashing +Entity hashing is done in `content_hash#getEntityHashes`. + +* It works by looking at the `entity_changes` table and going through each of the entity names/types: + * `blobs` + * `attributes` + * `revisions` + * `attachments` + * `notes` + * `branches` + * `etapi_tokens` + * `options` +* For some reason `note_reordering` entities are ignored specifically. +* All the rows in `entity_changes` are then ordered alphabetically, based on their `entityId`. +* Every entity row is then grouped by `entityName` and then by sector. The sector is defined as the first character of the `id`. +* The hash is altered to add the `isErased` value as well since the hash of deleted entries is not updated. +* For each sector, the hash is calculated using `utils.hash`, using SHA1 encoded as Base64. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Syntax highlighting.md b/docs/Developer Guide/Developer Guide/Development and architecture/Syntax highlighting.md new file mode 100644 index 000000000..b04131299 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Syntax highlighting.md @@ -0,0 +1,84 @@ +# Syntax highlighting +## Defining the MIME type + +The first step to supporting a new language for either code blocks or code notes is to define the MIME type. Go to `mime_types.ts` and add a corresponding entry: + +``` +{ title: "Batch file (DOS)", mime: "application/x-bat" } +``` + +## Syntax highlighting for Highlight.js + +### Built-in languages + +Highlight.js supports a lot of languages out of the box, for some of them we just need to enable them by specifying one of the language aliases in the `highlightJs` field in the `mime_types` definition: + +``` +{ title: "Batch file (DOS)", mime: "application/x-bat", highlightJs: "dos" } +``` + +For the full list of supported languages, see [Supported Languages — highlight.js 11.9.0 documentation](https://highlightjs.readthedocs.io/en/latest/supported-languages.html). Look for the “Package” column to see if another library needs to be installed to support it. + +Note that we are using the CDN build which may or may not have all the languages listed as predefined in the “Supported languages” list. To view the real list of supported files, see the `node_modules/@highlightjs/cdn-assets/languages` directory. + +### Custom language + +When the source code for a language is available, one way is to simply copy it to `libraries/highlightjs/{id}.js` where `id` matches the name for `highlightJs`. + +Make sure in the script that the language is registered: + +``` +hljs.registerLanguage('terraform', hljsDefineTerraform); +``` + +Then in `mime_types.ts` make sure to set `highlightJsSource` to `libraries` to load it. + +``` +{ title: "Terraform (HCL)", mime: "text/x-hcl", highlightJs: "terraform", highlightJsSource: "libraries", codeMirrorSource: "libraries/codemirror/hcl.js" }, +``` + +## Syntax highlighting for CodeMirror + +### Custom language + +Generally new languages are not added in the base installation and need to be separately registered. For CodeMirror 5 it seems that (at least for simple languages), the modes are distributed as _simple modes_ and can generally be copy-pasted in `libraries/codemirror`. An example would be: + +``` +(() => { + + CodeMirror.defineSimpleMode("batch", { + + start: [], + + echo: [] + + }); + + + + CodeMirror.defineMIME("application/x-bat", "batch"); + + CodeMirror.modeInfo.push({ + + ext: [ "bat", "cmd" ], + + mime: "application/x-bat", + + mode: "batch", + + name: "Batch file" + + }); + +})(); + + +``` + +Note that changing `modeInfo` is crucial, otherwise syntax highlighting will not work. The `mime` field is mandatory, even if `mimes` is used instead. + +Afterwards, register it in `mime_types.ts`, specifying `codeMirrorSource` to point to the newly created file: + +``` +{ title: "Batch file (DOS)", mime: "application/x-bat", highlightJs: "dos", codeMirrorSource: "libraries/codemirror/batch.js" } +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Development and architecture/Themes.md b/docs/Developer Guide/Developer Guide/Development and architecture/Themes.md new file mode 100644 index 000000000..5d89c2c2e --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Development and architecture/Themes.md @@ -0,0 +1,17 @@ +# Themes +## Server-side + +* There are three themes embedded in the application: + * `light`, located in `src\public\stylesheets\theme-light.css` + * `dark`, located in `src\public\stylesheets\theme-dark.css` + * `next`, located in `src\public\stylesheets\theme-next.css`. +* The default theme is set only once, when the database is created and is managed by `options_init#initNotSyncedOptions`. + * In the original implementation: On Electron, the choice between `light` and `dark` is done based on the OS preference. Otherwise, the theme is always `dark`. + * Now, we always choose `next` as the default theme. +* The theme is served via `src\routes\index.ts`, in the `getThemeCssUrl` method. + +## Client-side + +* The predefined themes are hard-coded in the client in `src\public\app\widgets\type_widgets\options\appearance\theme.js`. +* The user-defined themes are obtained via a call to the server: `options/user-themes`. +* The theme retrieval is done via a request. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.md new file mode 100644 index 000000000..5af483058 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Documentation.md @@ -0,0 +1,73 @@ +# Documentation +
+ +There are multiple types of documentation for Trilium: + +* The _User Guide_ represents the user-facing documentation. This documentation can be browsed by users directly from within Trilium, by pressing F1. +* The _Developer's Guide_ represents a set of Markdown documents that present the internals of Trilium, for developers. +* _Release Notes_, this contains the change log for each released or soon-to-be-released version. The release notes are used automatically by the CI when releasing a version. +* The _Script API_, which is an automatically generated documentation for the front-end and back-end APIs for scripts. + +## Editing documentation + +There are two ways to modify documentation: + +* Using a special mode of Trilium. +* By manually editing the files. + +### Using `docs:edit` + +To edit the documentation using Trilium, set up a working development environment and run the following commands: + +* On most operating systems, `npm run electron:switch` followed by `npm run docs:edit` +* On NixOS, `npm run docs:edit-nix`. + +> [!NOTE] +> `npm run docs:edit` acts very similar to `npm run electron:start` in the sense that you cannot both be editing documentation and starting a server. Using both `npm run electron:start` and `docs:edit` is possible, since they are using the same Electron instance. + +How it works: + +* At startup, the documentation from `docs/` is imported from Markdown into a in-memory session (the initialization of the database is already handled by the application). +* Each modification will trigger after 10s an export from the in-memory Trilium session back to Markdown, including the meta file. + +### Manual editing + +Apart from the User Guide, it's generally feasible to make small modifications directly using a Markdown editor or VS Code, for example. + +When making manual modifications, avoid: + +* Uploading pictures, since images are handled as Trilium attachments which are stored in the meta file. +* Changing the file or directory structure in any way, since that is also handled by the meta file. A missing file will most certainly cause a crash at start-up when attempting to edit the docs using Trilium. + +### Reviewing & committing the changes + +Since the documentation is tracked with Git, after making the manual or automatic modifications (wait at least 10s after making the modification) the changes will reflect in Git. + +Make sure to analyze each modified file and report possible issues. + +Important aspects to consider: + +* The Trilium import/export mechanism is not perfect, so if you make some modifications to the documentation using `docs:edit`, at the next import/export/import cycle some whitespace might get thrown in. It's generally safe to commit the changes as-is. +* Since we are importing Markdown, editing HTML and then exporting the HTML back to Markdown there might be some edge cases where the formatting is not properly preserved. Try to identify such cases and report them in order to get them fixed (this will benefit also the users). + +## Location of the documentation + +All documentation is stored in the [Notes](https://github.com/TriliumNext/Notes) repository: + +* `docs/Developer Guide` contains Markdown documentation that can be modified either externally (using a Markdown editor, or internally using Trilium). +* `docs/Release Notes` is also stored in Markdown format and can be freely edited. +* `docs/Script API` contains auto-generated files and thus must not be modified. +* `docs/User Guide` contains also Markdown-only documentation but must generally not be edited externally. + * The reason is that the `docs:edit` feature will not only import/export this documentation, but also generate the corresponding HTML documentation and meta structure in `src/public/app/doc_notes/en/User Guide`. + * It's theoretically possible to edit the Markdown files externally and then run `docs:edit` and trigger a change in order to build the documentation, but that would not be a very productive workflow. + +## Updating the Script API + +As mentioned previously, the Script API is not manually editable since it is auto-generated using TypeDoc. + +To update the API documentation, simply run `npm run docs:build`. Compare the changes (if any) and commit them. + +Note that in order to simulate the environment a script would have, some fake source files (in the sense that they are only used for documentation) are being used as entrypoints for the documentation: + +* For back-end scripts, the script is located in `src/services/backend_script_entrypoint.ts`. +* For front-end scripts, the script is located in `src/public/app/services/frontend_script_entrypoint.ts`. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Documentation/Documentation references in th.md b/docs/Developer Guide/Developer Guide/Documentation/Documentation references in th.md new file mode 100644 index 000000000..61a585f12 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Documentation/Documentation references in th.md @@ -0,0 +1,23 @@ +# Documentation references in the application +## Hard-coded links + +Hard-coded links are present throughout the application, either in dialogs or in the source code as comments. + +You can identify these links by searching for: + +``` +https://triliumnext.github.io/Docs/Wiki/ +``` + +## Help buttons + +There is a pattern of “?” buttons throughout the application which make use of the `data-help-page` attribute. Whenever these buttons are pressed, the user is redirected to the corresponding wiki page by prepending the wiki root URL to the `data-help-page` attribute. + +Since the current wiki has a different structure than the original, for example to link to [https://github.com/TriliumNext/Docs/blob/main/Wiki/tree-concepts.md](https://github.com/TriliumNext/Docs/blob/main/Wiki/tree-concepts.md) the `data-help-page` attribute must be set to `tree-concepts.md`. + +For links to headings, simply add the heading after the `.md`: `tree-concepts.md#prefix` + +You can identify those by looking for: + +* `.attr("data-help-page"` +* `data-help-page="` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Documentation_image.png b/docs/Developer Guide/Developer Guide/Documentation_image.png new file mode 100644 index 000000000..542bb7858 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Documentation_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Installation/Download latest nightly and in.md b/docs/Developer Guide/Developer Guide/Installation/Download latest nightly and in.md new file mode 100644 index 000000000..4d6b313ac --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Installation/Download latest nightly and in.md @@ -0,0 +1,12 @@ +# Download latest nightly and install it +On Ubuntu: + +``` +#!/usr/bin/env bash + +name=TriliumNextNotes-linux-x64-nightly.deb +rm -f $name* +wget https://github.com/TriliumNext/Notes/releases/download/nightly/$name +sudo apt-get install ./$name +rm $name +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Notes for old development/Build deliveries locally.clone.md b/docs/Developer Guide/Developer Guide/Notes for old development/Build deliveries locally.clone.md new file mode 100644 index 000000000..72ed24768 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Notes for old development/Build deliveries locally.clone.md @@ -0,0 +1,2 @@ +# Build deliveries locally +This is a clone of a note. Go to its [primary location](../Building%20and%20deployment/Build%20deliveries%20locally.md). \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Notes for old development/Releasing a version.clone.md b/docs/Developer Guide/Developer Guide/Notes for old development/Releasing a version.clone.md new file mode 100644 index 000000000..148f6c404 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Notes for old development/Releasing a version.clone.md @@ -0,0 +1,2 @@ +# Releasing a version +This is a clone of a note. Go to its [primary location](../Building%20and%20deployment/Releasing%20a%20version.md). \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Notes for old development/Running a development build.clone.md b/docs/Developer Guide/Developer Guide/Notes for old development/Running a development build.clone.md new file mode 100644 index 000000000..ca867a1d7 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Notes for old development/Running a development build.clone.md @@ -0,0 +1,2 @@ +# Running a development build +This is a clone of a note. Go to its [primary location](../Building%20and%20deployment/Running%20a%20development%20build.md). \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies.md b/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies.md new file mode 100644 index 000000000..606b9c8e6 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies.md @@ -0,0 +1,2 @@ +# Updating dependencies +
DependencyName in library_loaderThings to check for a basic sanity check Protected by unit tests
better-sqlite3 See bettersqlite binaries.  
jsdom 
  • Note map
  • Clipper
  • Note similarity
Protected by typings, should catch any potential changes in API.Yes
async-mutex 
  • Sync
  
axios 
  • Can't be directly tested, as it's exposed only via the backend script API.
  
sax 
  • EverNote imports
  
  • ws
  • debounce
 
  • Check any action is reported from server to client (e.g. delete a note).
  
ejs 
  • Onboarding / first setup
  
dayjs 
  • Day notes
  
semver 
  • Application should start.
  
https-proxy-agent ???  
sax 
  • EverNote import
  
ini 
  • Affects config, generally if the application starts then it should be OK.
  
jsplumbRELATION_MAP
  • Relation map note type
  
jquery.mark.es6MARKJS
  • In search, when highlighting the text that matched.
  • In search in HTML, which might not actually be used since it seems to have been replaced by CKEditor's own find & replace dialog.
  
knockout.js 
  • Used in rendering the login and main layout of the application.
  
normalize.min.css 
  • Used in shared notes.
  
wheel-zoom.min.jsWHEEL_ZOOM
  • When opening a image that is in attachment.
  • When opening a stand-alone image note.
  • When zooming in a mermaid chart.
  
fancytree 
  • The note tree should be fully functional.
  
bootstrap 
  • Check mostly the on-boarding pages, when there is no database.
  
electron-debug 
  • Run electron using npm run start-electron and check that the debug hotkeys are still working (Ctrl+Shift+I on Windows/Linux, Cmd+Alt+I for dev tools, Cmd/Ctrl+R for reload).
  
electron-dl    
eslint    
marked 
  • Importing a markdown note.
 Yes
force-graph 
  • Note map
  
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/Node.js, Electron and `better-.md b/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/Node.js, Electron and `better-.md new file mode 100644 index 000000000..1081e5ea9 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/Node.js, Electron and `better-.md @@ -0,0 +1,8 @@ +# Node.js, Electron and `better-sqlite3` +## Node.js, Electron and `better-sqlite3` + +`better-sqlite3` requires a native module in order to work. In order to ease the installation process, prebuilt binaries are provided by the library developers. + +Trilium Next started with version [8.4.0](https://github.com/WiseLibs/better-sqlite3/releases/tag/v8.4.0) for `better-sqlite3` + +
better-sqlite3 versionSQLite versionNode.js prebuildsElectron.js prebuilds
8.4.0<3.43.0v20???
8.5.0v20v25
8.5.1 v26
8.5.2v20 (macOS + arm64)
8.6.03.43.0 
8.7.03.43.1 
9.0.03.43.2 v27
9.1.03.44.0 
9.1.1macOS + Alpine
9.2.03.44.2 
9.2.1 / 9.2.2 v28
9.3.03.45.0 
9.4.03.45.1 
9.4.1Windows arm, arm64
9.4.2 <v29
9.4.3 <v29
9.4.4 v29
9.4.5Better prebuilds
9.5.03.45.2 
9.6.03.45.3 v30
10.0.0v22
10.1.03.46.0 
11.0.0>21
11.1.0 (prerelease)  v31
11.1.1  
11.1.2  
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/Testing compatibility.md b/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/Testing compatibility.md new file mode 100644 index 000000000..dffa2d177 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/Testing compatibility.md @@ -0,0 +1,2 @@ +# Testing compatibility +
better-sqlite3 version
Change log
SQLite version
Change log
Compatibility with upstream Trilium
8.4.0<3.43.0Compatible, same version.
8.6.03.43.0 
8.7.03.43.1 
9.0.03.43.2 
9.1.0 + 9.1.13.44.0 
9.2.0 + 9.2.1 + 9.2.23.44.2 
9.3.03.45.0 
9.4.0, 9.4.1, 9.4.2, 9.4.3, 9.4.4, 9.4.53.45.1 
9.5.03.45.2 
9.6.0 / 10.0.03.45.3 
10.1.0 / 11.0.0 / 11.1.1 / 11.1.2 / 11.2.0 / 11.2.13.46.0 
11.3.03.46.1 
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/bettersqlite binaries.md b/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/bettersqlite binaries.md new file mode 100644 index 000000000..a9ec99601 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Project maintenance/Updating dependencies/bettersqlite binaries.md @@ -0,0 +1,41 @@ +# bettersqlite binaries +### The native node bindings + +`better-sqlite3` has native Node bindings. With updates of `better-sqlite3`, but also of Electron and Node.js versions, these bindings need to be updated. + +Note that Electron and Node.js versions need different versions of these bindings, since Electron usually packs a different version of Node.js. + +During development, `npm install` tries to build or reuse prebuilt natives for the current Node.js version. This makes `npm run start-server` work out of the box. Trying to run `npm run start-electron` with these versions generally causes an error such as this: + +``` +Uncaught Exception: +Error: The module '/Users/elian/Projects/Notes/node_modules/better-sqlite3/build/Release/better_sqlite3.node' +was compiled against a different Node.js version using +NODE_MODULE_VERSION 108. This version of Node.js requires +NODE_MODULE_VERSION 116. Please try re-compiling or re-installing +the module (for instance, using `npm rebuild` or `npm install`). +``` + +### How the natives are handled + +Locally, this can be fixed by rebuilding the binaries, which is what `npm run switch-electron` does, which uses `electron-rebuild` under the hood. + +When the deliveries are built (see Build deliveries locally), it is not feasible to rebuild the dependencies since we are building for multiple platforms. Luckily, `better-sqlite3` provides these prebuilt binaries from us, available as artifacts on [their GitHub releases page](https://github.com/WiseLibs/better-sqlite3/releases/).  + +The build script manages the natives for `better-sqlite3` by keeping a copy of the `.node` file for every platform in `bin/better-sqlite3`. + +Whenever the version of `better-sqlite3` changes, the `.node` files must also be renewed based on their releases page. To simplify this process, a script was created in `bin/better-sqlite3/update.sh`. + +## How to update the natives + +The update script needs to know the version of Electron or Node.js for which to download the prebuilt binaries. + +If you get errors during download, check on the [releases page](https://github.com/WiseLibs/better-sqlite3/releases/) to ensure that this particular combination of Electron/Node actually exists for the given release. + +To determine the `NODE_MODULE_VERSION` that is required, look for `This version of Node.js requires` +`NODE_MODULE_VERSION` in the error when starting Trilium via: + +* `npm run start-electron` (or run any Electron [delivery](../../Building%20and%20deployment/Build%20deliveries%20locally.md)), case in which the `ELECTRON_VERSION` variable needs to be changed. +* `npm run start-server` (or run the Linux server delivery), case in which the `NODE_VERSION` variable needs to be changed. + +Check which files got changed after running the update script and for each platform that got changed, test it locally via Build deliveries locally or via the CI. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Scripting/Server-side imports.md b/docs/Developer Guide/Developer Guide/Scripting/Server-side imports.md new file mode 100644 index 000000000..81290602e --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Scripting/Server-side imports.md @@ -0,0 +1,16 @@ +# Server-side imports +Trilium Notes allowed the use of Common.js module imports inside backend scripts, such as: + +``` +const isBetween = require('dayjs/plugin/isBetween') +api.dayjs.extend(isBetween) +``` + +For TriliumNext, the backend has been switched to use ESM which has a slightly more complicated syntax. Instead of `require` we now have `import` but which is asynchronous so it will require an `await`: + +``` +const isBetween = (await import("dayjs/plugin/isBetween")).default; +api.dayjs.extend(isBetween); +``` + +Note that `.default` is also usually needed to obtain the same behaviour as a CJS import. When in doubt, use `console.log` to see the output of the value returned by `await import`. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Scripting/Widgets.md b/docs/Developer Guide/Developer Guide/Scripting/Widgets.md new file mode 100644 index 000000000..cbd08854f --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Scripting/Widgets.md @@ -0,0 +1,33 @@ +# Widgets +To create a basic widget, simply create a code note with type “JS frontend”. Add the `#widget` label in order for it to be loaded at startup. + +``` +const template = `
`; + +class MyWidget extends api.BasicWidget { + get position() { return 1; } + get parentWidget() { return "left-pane" } + + doRender() { + this.$widget = $(template); + return this.$widget; + } +} + +module.exports = new MyWidget(); +``` + +`parentWidget()` can be given the following values: + +* `left-pane` - This renders the widget on the left side of the screen where the note tree lives. +* `center-pane` - This renders the widget in the center of the layout in the same location that notes and splits appear. +* `note-detail-pane` - This renders the widget _with_ the note in the center pane. This means it can appear multiple times with splits. +* `right-pane` - This renders the widget to the right of any opened notes. + +* * * + +Reference: + +* [https://trilium.rocks/X7pxYpiu0lgU](https://trilium.rocks/X7pxYpiu0lgU) +* [https://github.com/zadam/trilium/wiki/Widget-Basics](https://github.com/zadam/trilium/wiki/Widget-Basics) +* [https://github.com/zadam/trilium/wiki/Frontend-Basics](https://github.com/zadam/trilium/wiki/Frontend-Basics) \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Scripting/Widgets/CSS.md b/docs/Developer Guide/Developer Guide/Scripting/Widgets/CSS.md new file mode 100644 index 000000000..e93d63ad7 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Scripting/Widgets/CSS.md @@ -0,0 +1,15 @@ +# CSS +In `doRender()`: + +``` +this.cssBlock(`#my-widget { + position: absolute; + bottom: 40px; + left: 60px; + z-index: 1; +}`) +``` + +* * * + +Reference: [https://trilium.rocks/X7pxYpiu0lgU](https://trilium.rocks/X7pxYpiu0lgU) \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Scripting/Widgets/Right pane widget.md b/docs/Developer Guide/Developer Guide/Scripting/Widgets/Right pane widget.md new file mode 100644 index 000000000..c038765dd --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Scripting/Widgets/Right pane widget.md @@ -0,0 +1,32 @@ +# Right pane widget +* `doRender` must not be overridden, instead `doRenderBody()` has to be overridden. +* `parentWidget()` must be set to `“rightPane”`. +* `widgetTitle()` getter can optionally be overriden, otherwise the widget will be displayed as “Untitled widget”. + +``` +const template = `
Hi
`; + +class ToDoListWidget extends api.RightPanelWidget { + + get widgetTitle() { + return "Title goes here"; + } + + get parentWidget() { return "right-pane" } + + doRenderBody() { + this.$body.empty().append($(template)); + } + + async refreshWithNote(note) { + this.toggleInt(false); + this.triggerCommand("reEvaluateRightPaneVisibility"); + this.toggleInt(true); + this.triggerCommand("reEvaluateRightPaneVisibility"); + } +} + +module.exports = new ToDoListWidget(); +``` + +The implementation is in `src/public/app/widgets/right_panel_widget.js`. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Building the editor.md b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Building the editor.md new file mode 100644 index 000000000..1d51e55d9 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Building the editor.md @@ -0,0 +1,21 @@ +# Building the editor +First, make sure Environment setup is set up. + +## Trigger the build + +``` +cd packages/ckeditor5-build-trilium +yarn build +``` + +This will trigger a change in the `build` directory. + +## Copy the build artifact to the main repo + +Go to `packages/ckeditor5-build-balloon-trilium/build` and copy `ckeditor.js` and `ckeditor.js.map` to `libraries/ckeditor` in the `Notes` repository. + +An example shell command to copy it: + +``` +cp build/ckeditor.* ~/Projects/TriliumNext/Notes/libraries/ckeditor/ +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Differences from upstream.md b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Differences from upstream.md new file mode 100644 index 000000000..2d72bd669 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Differences from upstream.md @@ -0,0 +1,22 @@ +# Differences from upstream +* Embeds [`~~isaul32/ckeditor5-math~~`](https://github.com/isaul32/ckeditor5-math)  ckeditor5-math, which is a third-party plugin for adding math support. CKEditor itself also has a [math plugin](https://ckeditor.com/docs/ckeditor5/latest/features/math-equations.html) with MathType and ChemType but it's premium-only. +* Zadam left a TODO in `findandreplaceUI`: `// FIXME: keyboard shortcut doesn't work:` [`https://github.com/ckeditor/ckeditor5/issues/10645`](https://github.com/ckeditor/ckeditor5/issues/10645) +* `packages\ckeditor5-build-balloon-block\src\mention_customization.js` introduces note insertion via `@` character. + +
Affected fileAffected methodChanged inReason for change
packages/ckeditor5-mention/src/mentionui.tscreateRegExp()6db05043be24bacf9bd51ea46408232b01a1b232 (added back)Allows triggering the autocomplete for labels and attributes in the attribute editor.
init()55a63a1934efb9a520fcc2d69f3ce55ac22aca39Allows dismissing @-mention permanently after pressing ESC, otherwise it would automatically show up as soon as a space was entered.
+ +## Checking the old repo + +Use the following command to identify commits from Zadam: + +``` +git log --oneline --author="adam" --all +``` + +It's best to run the command from zadam's fork of `trilium-ckeditor5` instead of the TriliumNext once since it might not contain all the unmerged branches. + +To show a filtered diff of a commit: + +``` +git show d42e772783 -- ':!*yarn.lock' ':!*packages/ckeditor5-build-balloon-block/build/*' ':!*package.json' +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Environment setup.md b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Environment setup.md new file mode 100644 index 000000000..46bb10792 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Environment setup.md @@ -0,0 +1,26 @@ +# Environment setup +## Clone the repository + +To set up the repository: + +``` +git clone https://github.com/TriliumNext/trilium-ckeditor5.git +``` + +## Install dependencies + +First, install root dependencies: + +``` +cd trilium-ckeditor5 +yarn install +``` + +Secondly, install the Trilium build dependencies: + +``` +cd packages/ckeditor5-build-trilium +yarn install +``` + +To trigger the build, see Building the editor. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Updating to a newer version of.md b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Updating to a newer version of.md new file mode 100644 index 000000000..ac2ea361d --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Updating to a newer version of.md @@ -0,0 +1,65 @@ +# Updating to a newer version of CKEditor +## Before updating + +Make sure that all the plugins are compatible with this version:  Versions and external plugins. If not, they will need to be updated to the same version as the one you are updating, by altering their `package.json`. + +If the plugin is external to the Trilium organisation, it needs to be forked first. + +## Environment setup + +The first step is to add the CKEditor source as a remote. This only needs to be done once. + +``` +git remote add upstream ssh://git@github.com/ckeditor/ckeditor5.git +git fetch upstream +``` + +## Update steps + +Due to how the repository is structured, updates to the CKEditor are a bit difficult. + +1. `git fetch upstream` +2. Pick a version and merge with it: `git merge -X theirs v99.2.0` +3. When there are complicated conflicts, sometimes it's easier to take everything from the target version instead, for a given path: `git checkout v99.2.0 -- "packages/ckeditor5-list/**"`. +4. Go in `packages/ckeditor5-build-trilium/package.json` and run `node sync-version.js` to update the `package.json` with the new versions. Review and commit the change. +5. Follow again the dependency setup in Environment setup, as they have changed. +6. [Run the build](Building%20the%20editor.md) and check that it works. + +## Final steps + +1. Start the TriliumNext server +2. If updated to a newer version of CKEditor, check type `CKEDITOR_VERSION` in the browser/Electron console to ensure that the correct version is used. +3. Do a basic sanity check as well. +4. Commit and push the change on both sides (in the `trilium-ckeditor5` repo and in the `Notes` repo). + +## Troubleshooting client side errors + +These errors might show up when testing the Trilium app: + +``` +ReferenceError: CKEditor is not defined +``` + +Usually this is a side effect of another error, check the logs carefully to see if there is any other related error (perhaps a `CKEditorError`). + +* * * + +``` +Uncaught error: Message: CKEditorError: ckeditor-duplicated-modules +``` + +Most likely cause is one of the external plugins is incompatible with this version. + +For example, to disable the Math plugin, go to `packages/ckeditor5-build-trilium/src/config.ts` and modify: + +```diff +-import Math from '@triliumnext/ckeditor5-math/src/math'; +-import AutoformatMath from '@triliumnext/ckeditor5-math/src/autoformatmath'; + +export const COMMON_PLUGINS = [ +- Math, +- AutoformatMath, +] +``` + +In this case, make sure to align the version of all the external plugins with the one you are updating to, usually by forking the external plugin and updating its versions. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Versions and external plugins.md b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Versions and external plugins.md new file mode 100644 index 000000000..14e023654 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Sub-projects/CKEditor/Versions and external plugins.md @@ -0,0 +1,4 @@ +# Versions and external plugins +## External plugins + +
trilium-ckeditor543.2.0 
ckeditor5-math See ckeditor5-math.
   
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math.md b/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math.md new file mode 100644 index 000000000..598042ceb --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math.md @@ -0,0 +1,30 @@ +# ckeditor5-math +
ckeditor5-math in action.
+ +A fork of [isaul32/ckeditor5-math](https://github.com/isaul32/ckeditor5-math), which is the CKEditor5 plugin which adds the math functionality. The fork was created to handle #297: Insert Math appears to be broken. + +## Development environment + +* Tested on Node.js 20. +* The package manager is yarn 1 (v1.22.22 is known to be working fine for it at the time of writing). +* Committing is protected by `husky` which runs `eslint` to ensure that the code is clean. + +Important commands: + +* To check if the code has any formatting issues: `yarn lint` +* To start a live preview: `yarn start` +* To run the tests: `yarn test` + * Note that this requires Chromium, on NixOS this can be achieved by running a `nix-shell -p chromium`, and running `CHROME_BIN=$(which chromium) yarn test` inside it. + +## 📦 Packages + +The built artifact of the plugin is released by the CI and available on the [GitHub NPM registry](https://github.com/TriliumNext/ckeditor5-math/pkgs/npm/ckeditor5-math). + +Note that due to limitations on GitHub's registry, it is not possible to install this package without setting up a personal access token (even though the package itself is public). See [missing note] for more information. + +## ⬆️ Integrating with CKEditor + +1. Release a new version: Release management & continuous integration +2. In `trilium-ckeditor5`, go to `packages/ckeditor5-build-trilium/package.json` in the CKEditor repository and change the dependency of `@triliumnext/ckeditor5-math` to the newly released version. +3. Run `yarn install`. +4. Proceed with Building the editor to integrate everything into TriliumNext and then commit the change. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math/Release management & continuou.md b/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math/Release management & continuou.md new file mode 100644 index 000000000..e0603cf84 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math/Release management & continuou.md @@ -0,0 +1,16 @@ +# Release management & continuous integration +To automate the release process, a GitHub workflow has been added which builds the package and releases it over to GitHub NPM registry. + +The workflow publishes a release whenever a tag with the correct format is pushed. + +The steps are as follows: + +1. Ensure that the source code is clean and ready for a release. +2. Go to `package.json` and bump the `version` field. +3. Commit the changes. +4. Tag the commit with `v1.2.3`, with the correct version number. +5. Push the changes. + +Then follow the CI and it should indicate success. Afterwards, check the [package](https://github.com/TriliumNext/ckeditor5-math/pkgs/npm/ckeditor5-math)section to ensure that the package is in the “Recent Versions” section. + +If the changes could benefit upstream, consider opening a pull request with the changes there as well. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math/Updating with upstream.md b/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math/Updating with upstream.md new file mode 100644 index 000000000..ff322a427 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math/Updating with upstream.md @@ -0,0 +1,21 @@ +# Updating with upstream +If there was a change in the upstream repository ([isaul32/ckeditor5-math](https://github.com/isaul32/ckeditor5-math)), it can be integrated as follows: + +1. Add the upstream as remote (`git remote add upstream ssh://git@github.com/isaul32/ckeditor5-math.git`). +2. Fetch the changes: `git fetch upstream` +3. Merge with a tag: `git merge v43.1.2` +4. Solve the conflict in `package.json` by: + 1. Taking the same version as the upcoming one and appending `-hotfix1`. + 2. Keeping the `@triliumnext/ckeditor5-math` name. +5. Install dependencies: `yarn install` +6. Check that the build works via `yarn prepublishOnly`. +7. Commit the changes, push them. +8. Release a version with Release management & continuous integration. + +## CI job not triggered after pushing all the upstream tags + +If the CI job was not triggered, you might have accidentally pushed a lot of tags using `git push --tags`. Manually delete the tag and push it again: + +```diff +git push -d origin v43.1.2-hotfix1 && git push --tags +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math_image.png b/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math_image.png new file mode 100644 index 000000000..51184b130 Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Sub-projects/ckeditor5-math_image.png differ diff --git a/docs/Developer Guide/Developer Guide/Testing.md b/docs/Developer Guide/Developer Guide/Testing.md new file mode 100644 index 000000000..6963f0207 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Testing.md @@ -0,0 +1,33 @@ +# Testing +## Unit testing and integration testing + +Using `vitest`, there are some unit and integration tests done for both the client and the server. + +These tests can be found by looking for the corresponding `.spec.ts` in the same directory as the source file. + +

To run the server-side tests:

npm run server:test

To view the code coverage for the server:

npm run server:coverage

Afterwards, a friendly HTML report can be found in /coverage/index.html.

To run the client-side tests:

npm run client:test

To view the code coverage for the client:

npm run client:coverage

Afterwards, a friendly HTML report can be found in /src/public/app/coverage/index.html.

+ +To run both client and server-side tests: + +``` +npm run test +``` + +Note that some integration tests rely on an in-memory database in order to function.  + +### REST API testing for the server + +Some original work was done by Zadam in `/test-etapi`, using `.http` files. + +New effort using `vitest` and `supertest` to initialize the Express server and run assertions without having to make actual requests to the server. + +An important aspect is that we have access to the Express `app` which allows for interesting assertions such as checking the state of the server, registering debug middleware and so on. + +One example is `src/share/routes.spec.ts`. + +These integration tests are run alongside unit tests. + +## End-to-end testing + +* This tests both the client and the server, by running the server and then using Playwright to query the state of the page. +* These can be found in `/e2e`. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Testing/Integration testing/1_Setting up authentication_.png b/docs/Developer Guide/Developer Guide/Testing/Integration testing/1_Setting up authentication_.png new file mode 100644 index 000000000..020472c6d Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Testing/Integration testing/1_Setting up authentication_.png differ diff --git a/docs/Developer Guide/Developer Guide/Testing/Integration testing/Running tests.md b/docs/Developer Guide/Developer Guide/Testing/Integration testing/Running tests.md new file mode 100644 index 000000000..52663cd80 --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Testing/Integration testing/Running tests.md @@ -0,0 +1,38 @@ +# Running tests +## First-time run + +Before starting Playwright, it has to be installed locally via: + +``` +npx playwright install +``` + +## Starting the integration test server + +There are two types of integration test servers: + +* `npm run integration-mem-db` will run a server with dev mode disabled. + * This is usually what the end user will see when accessing a server instance. + * It will not test the Electron/desktop side of the application. + * Changes to the public scripts will not take effect until running `npm run webpack`. +* `npm run integration-mem-db-dev` will run a server with dev mode enabled. + * This is usually what a dev sees when running `npm run start-server`. + * The difference with the production one is that the assets are loaded directly from files and as such it does not require `npm run webpack` to see changes. + +Either options will open up a server on [localhost:8082](http://localhost:8082) that can be accessed either manually via the browser or via Playwright. + +When asked for a password, the password is `demo1234`. + +## Starting the interactive test runner + +After starting the integration test server, to run the Playwright UI, run in the terminal: + +``` +npx playwright test --ui +``` + +It is also possible to run the interactive code generator instead: + +``` +npx playwright codegen +``` \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Testing/Integration testing/Setting up authentication.md b/docs/Developer Guide/Developer Guide/Testing/Integration testing/Setting up authentication.md new file mode 100644 index 000000000..fa140503a --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Testing/Integration testing/Setting up authentication.md @@ -0,0 +1,12 @@ +# Setting up authentication +There is a setup test that stores the authentication token so that it can be reused throughout all the tests. + +If tests fail due to being stuck on login, then it must be run. + +To run it manually press “all” near the “Status:” text on top-left of the window + +
+ +Then check “setup” and look for `auth.setup.ts` and press its corresponding Run button: + +
\ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Testing/Integration testing/Setting up authentication_.png b/docs/Developer Guide/Developer Guide/Testing/Integration testing/Setting up authentication_.png new file mode 100644 index 000000000..4b260dfbc Binary files /dev/null and b/docs/Developer Guide/Developer Guide/Testing/Integration testing/Setting up authentication_.png differ diff --git a/docs/Developer Guide/Developer Guide/Testing/Integration testing/Test database.md b/docs/Developer Guide/Developer Guide/Testing/Integration testing/Test database.md new file mode 100644 index 000000000..2ad34d2ee --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Testing/Integration testing/Test database.md @@ -0,0 +1,34 @@ +# Test database +The integration tests do not use the same database as `npm run start-server`. Instead, the database is located `integration-tests/db/document.db`. + +## In-memory database + +Even though we are running our own database, there is still the problem of one test affecting the content for the others or accidentally removing important test notes. + +To avoid this, the integration test server (run via `integration-mem-db`) loads the database from `integration-test` into memory and operates from there. That means that any changes done on the integration test server (port 8082) will not be persisted between restarts of the server. + +Another benefit of having the database in memory for tests is that they can run in parallel without the risk on interfering with each other. + +## How to make changes to the database + +As mentioned previously, the database itself can be edited manually in order to add content that is relevant to the tests. + +In order to do so, run a separate integration test server with: + +``` +npm run integration-edit-db +``` + +This will open up a server on port 8081 which can be used to alter the integration test DB. After finishing the desired changes, it's ideal to close the server to prevent any interferences with further running of tests. + +## The database is tracked by Git + +This is intentional, meaning that any change to the database will mark the file as changed in Git as well. Some tests require a specific note and it would be too wasteful to have to recreate it via Playwright each time. Instead the content is added manually and then the tests operate directly on the said notes. + +In order to make the database easier to track, SQLite WAL was disabled but only for the integration database. This means that only the `.db` file is present and needs to be committed. + +## Cleaning up the database + +It's recommended to clean up any deleted notes to avoid unnecessary changes being committed. To do so go to Recent Changes in the launcher and select “Erase deleted notes now”. + +It's also a good idea to go to Options → Advanced → Vacuum database to clean up it. \ No newline at end of file diff --git a/docs/Developer Guide/Developer Guide/Troubleshooting/Error [TransformError] The pac.md b/docs/Developer Guide/Developer Guide/Troubleshooting/Error [TransformError] The pac.md new file mode 100644 index 000000000..82158440d --- /dev/null +++ b/docs/Developer Guide/Developer Guide/Troubleshooting/Error [TransformError] The pac.md @@ -0,0 +1,40 @@ +# Error [TransformError]: The package "@esbuild/linux-x64" could not be found, and is needed by esbuild. +Full log: + +``` +> trilium@0.91.1-beta start-server +> cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 nodemon src/main.ts + +[nodemon] 3.1.9 +[nodemon] to restart at any time, enter `rs` +[nodemon] watching path(s): src/**/* translations/**/* +[nodemon] watching extensions: ts,js,json +[nodemon] starting `tsx src/main.ts` + +node:internal/process/promises:391 + triggerUncaughtException(err, true /* fromPromise */); + ^ +Error [TransformError]: The package "@esbuild/linux-x64" could not be found, and is needed by esbuild. + +If you are installing esbuild with npm, make sure that you don't specify the +"--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature +of "package.json" is used by esbuild to install the correct binary executable +for your current platform. + at generateBinPath (/home/elian/Projects/TriliumNext/Notes/node_modules/esbuild/lib/main.js:1752:15) + at esbuildCommandAndArgs (/home/elian/Projects/TriliumNext/Notes/node_modules/esbuild/lib/main.js:1822:33) + at ensureServiceIsRunning (/home/elian/Projects/TriliumNext/Notes/node_modules/esbuild/lib/main.js:1979:25) + at transform (/home/elian/Projects/TriliumNext/Notes/node_modules/esbuild/lib/main.js:1880:37) + at file:///home/elian/Projects/TriliumNext/Notes/node_modules/tsx/dist/index-DlKgSVBb.mjs:16:2755 + at applyTransformers (file:///home/elian/Projects/TriliumNext/Notes/node_modules/tsx/dist/index-DlKgSVBb.mjs:16:1266) + at transform (file:///home/elian/Projects/TriliumNext/Notes/node_modules/tsx/dist/index-DlKgSVBb.mjs:16:2702) + at load (file:///home/elian/Projects/TriliumNext/Notes/node_modules/tsx/dist/esm/index.mjs?1734213798404:2:2245) + at async nextLoad (node:internal/modules/esm/hooks:868:22) + at async Hooks.load (node:internal/modules/esm/hooks:451:20) +``` + +The solution is to remove `node_modules` and reinstall all dependencies: + +``` +rm -r node_modules +npm install +``` \ No newline at end of file diff --git a/docs/FJ4VR6G2M6VD.html b/docs/FJ4VR6G2M6VD.html deleted file mode 100644 index 9d7ac0869..000000000 --- a/docs/FJ4VR6G2M6VD.html +++ /dev/null @@ -1,831 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Special notes - - -
-
- - - - -

Special notes

- - - - - - -

This note has no content.

- -
- - - - - - -
- - diff --git a/docs/FSZoX3cJlJE7.html b/docs/FSZoX3cJlJE7.html deleted file mode 100644 index 45b704d1e..000000000 --- a/docs/FSZoX3cJlJE7.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - options - - -
-
- - - - -

options

- - - - -
-
Column NameData TypeNullityDefault valueDescription
nameTextNon-null The name of option (e.g. maxContentWidth)
valueTextNon-null The value of the option.
isSyncedIntegerNon-null00 if the option is not synchronized and thus can differ between clients, 1 if the option is synchronized.
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
-
- - - -
- - - - - - -
- - diff --git a/docs/GMta9hBHsXHQ.html b/docs/GMta9hBHsXHQ.html deleted file mode 100644 index f1cee5cd8..000000000 --- a/docs/GMta9hBHsXHQ.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Node.js, Electron and `better-sqlite3` - - -
-
- - - - -

Node.js, Electron and `better-sqlite3`

- - - - -
-

better-sqlite3 requires a native module in order to work. In order to ease the installation process, prebuilt binaries are provided by the library developers.

Trilium Next started with version 8.4.0 for better-sqlite3

better-sqlite3 versionSQLite versionNode.js prebuildsElectron.js prebuilds
8.4.0<3.43.0v20???
8.5.0v20v25
8.5.1 v26
8.5.2v20 (macOS + arm64)
8.6.03.43.0 
8.7.03.43.1 
9.0.03.43.2 v27
9.1.03.44.0 
9.1.1macOS + Alpine
9.2.03.44.2 
9.2.1 / 9.2.2 v28
9.3.03.45.0 
9.4.03.45.1 
9.4.1Windows arm, arm64
9.4.2 <v29
9.4.3 <v29
9.4.4 v29
9.4.5Better prebuilds
9.5.03.45.2 
9.6.03.45.3 v30
10.0.0v22
10.1.03.46.0 
11.0.0>21
11.1.0 (prerelease)  v31
11.1.1  
11.1.2  
-
- - - -
- - - - - - -
- - diff --git a/docs/IuxV242YGaN5.html b/docs/IuxV242YGaN5.html deleted file mode 100644 index c9c418a23..000000000 --- a/docs/IuxV242YGaN5.html +++ /dev/null @@ -1,831 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Deleted notes - - -
-
- - - - -

Deleted notes

- - - - - - -

This note has no content.

- -
- - - - - - -
- - diff --git a/docs/KRC2O84LekPz.html b/docs/KRC2O84LekPz.html deleted file mode 100644 index 56a2ea347..000000000 --- a/docs/KRC2O84LekPz.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - i18n-ally - - -
-
- - - - -

i18n-ally

- - - - -
-

i18n-ally is a VS Code extension that aids in internationalization.

It is currently integrated in the project and offers features such as:

  • Highlight, autocomplete translations.
  • Display translations inline.
  • Extract messages into translation.

Extracting messages into translation

  1. Open any .js file and select an untranslated string inside a template (TPL).
  2. Press Ctrl+P and look for “i18n Ally: Extract text into i18n messages”
  3. Select the first template.
  4. Select the path of translation, taking into consideration the Guidelines (e.g. jump_to_note.search-for-note-by-its-name).
-
- - - -
- - - - - - -
- - diff --git a/docs/KbwD5mDpD4CV.html b/docs/KbwD5mDpD4CV.html deleted file mode 100644 index 58b06cdea..000000000 --- a/docs/KbwD5mDpD4CV.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Protected entities - - -
-
- - - - -

Protected entities

- - - - -
-

The following entities can be made protected, via their isProtected flag:

-
- - - -
- - - - - - -
- - diff --git a/docs/MUGBo4n67kBI.html b/docs/MUGBo4n67kBI.html deleted file mode 100644 index 54ce1b705..000000000 --- a/docs/MUGBo4n67kBI.html +++ /dev/null @@ -1,835 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Environment setup - - -
-
- - - - -

Environment setup

- - - - -
-

To set up the repository:

git clone https://github.com/TriliumNext/trilium-ckeditor5.git
-cd trilium-ckeditor5.git
-yarn install

To trigger the build run:

yarn build
-
- - - -
- - - - - - -
- - diff --git a/docs/PHqgH8FCfcod.html b/docs/PHqgH8FCfcod.html deleted file mode 100644 index e7bd1f015..000000000 --- a/docs/PHqgH8FCfcod.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Documentation - - -
-
- - - - -

Documentation

- - - - -
-

Development notes are published on triliumnext.github.io/Notes by the CI using GitHub Pages.

The GitHub Pages deployment works by taking the files from the Notes repository, in the docs directory.

How it works

There is a script that uses wget to download all the files from a share, that means:

  1. You must have a local instance of Trilium Notes server.
  2. You must have the documentation imported, up to date and shared.

Note that currently the documentation source file is not distributed (the note export), until a way is found to automate this process. Contact eliandoran should you require to obtain a copy of the documentation.

Setting up .env file

Go to bin/docs and copy .env.example to .env and edit it:

  1. Change the SHARE_PROTOCOL to either http or https depending on your setup.
  2. Change SHARE_HOST to match the domain name or the URL to the host (without the protocol or any slashes).

Generally ROOT_NOTE_ID should not be changed since the note ID must match if the files were imported correctly.

Triggering a build

Run:

./bin/docs/prepare.sh

This will attempt to download all the notes from the share URL and put them in docs, rewritten for GitHub Pages.

Commit the results and follow the normal development process to push them.

-
- - - -
- - - - - - -
- - diff --git a/docs/QSkfVssHIngA.html b/docs/QSkfVssHIngA.html deleted file mode 100644 index a0b3a9fbd..000000000 --- a/docs/QSkfVssHIngA.html +++ /dev/null @@ -1,831 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Revisions - - -
-
- - - - -

Revisions

- - - - - - -

This note has no content.

- -
- - - - - - -
- - diff --git a/docs/QXCi6Y1SYulw.html b/docs/QXCi6Y1SYulw.html deleted file mode 100644 index 1f760cea8..000000000 --- a/docs/QXCi6Y1SYulw.html +++ /dev/null @@ -1,881 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - Adding a new client library - - -
-
- - - - -

Adding a new client library

- - - - -
-

In the past some libraries have been copy-pasted (and adapted if needed) to the repository. However, new libraries must be obtained exclusively through npm.

The first step is to install the desired library. As an example we are going to install i18next:

npm i i18next

Step 1. Understanding the structure of the import

After installing the dependency, it's important to know how it's structured. You can do this by looking at the directory structure of the newly imported dependency:

$ tree node_modules/i18next
-node_modules/i18next
-├── dist
-│   ├── cjs
-│   │   └── i18next.js
-│   ├── esm
-│   │   ├── i18next.bundled.js
-│   │   ├── i18next.js
-│   │   └── package.json
-│   └── umd
-│       ├── i18next.js
-│       └── i18next.min.js
-├── i18next.js
-├── i18next.min.js
-├── index.d.mts
-├── index.d.ts
-├── index.js
-├── index.v4.d.ts
-├── LICENSE
-├── package.json
-├── README.md
-└── typescript
-    ├── helpers.d.ts
-    ├── options.d.ts
-    ├── t.d.ts
-    └── t.v4.d.ts

Generally you should be looking for a .min.js file. Note that the esm and cjs variants generally don't work, we are looking for the classic, no module dependency.

Step 2. Exposing the library from the server

The library must be delivered by the server and this is done via src/routes/assets.ts. In the register function, add a new entry near the bottom of the function:

app.use(`/${assetPath}/node_modules/i18next/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next/')));

Step 3. Adding it to the library loader

The library loader is a client module which is in charge of downloading the library from the server and importing it. The loader is located in src/public/app/services/library_loader.js.

To add a new library, start by creating a constant for it, with the value pointing to the minified JS identified at the first step:

const I18NEXT = {
-    js: [
-        "node_modules/i18next/i18next.min.js"
-    ]
-};

Then add it to the export default section:

 export default {
-     requireCss,
-     requireLibrary,
-     CKEDITOR,
-     CODE_MIRROR,
-     ESLINT,
-     RELATION_MAP,
-     PRINT_THIS,
-     CALENDAR_WIDGET,
-     KATEX,
-     WHEEL_ZOOM,
-     FORCE_GRAPH,
-     MERMAID,
-     EXCALIDRAW,
--    MARKJS
-+    MARKJS,
-+    I18NEXT
- }

Step 4. Using the library

To import the library, simply use the following mechanism:

import library_loader from "./library_loader.js";
-
-await library_loader.requireLibrary(library_loader.I18NEXT);

Make sure to replace I18NEXT with the library that was created at the previous steps.

Note that because we are not using a module management mechanism such as ES Modules or Common.js modules, the requireLibrary method does not actually return anything. 

To benefit from the library, it must export on its own an object in window.

In the case of i18next, it sets window.i18next and that can be used directly:

i18next.init({});

Step 5. Adding Electron support

For Electron, the node_modules are copied as a separate step by bin/copy-dist.ts.

Scroll all the way down to the nodeModulesFolder and append an entry for the newly added libraries.

-
- - - -
- - - - - - -
- - diff --git a/docs/QYMncZf5Bu3D.html b/docs/QYMncZf5Bu3D.html deleted file mode 100644 index d57d258a3..000000000 --- a/docs/QYMncZf5Bu3D.html +++ /dev/null @@ -1,833 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - revisions - - -
-
- - - - -

revisions

- - - - -
-
Column NameData TypeNullityDefault valueDescription
revisionIdTextTextNon-null Unique ID of the revision (e.g. 0GjgUqnEudI8).
noteIdTextNon-null ID of the note this revision belongs to.
typeTextNon-null""The type of note (i.e. text, file, code, relationMap, mermaid, canvas).
mimeTextNon-null""The MIME type of the note (e.g. text/html).
titleTextNon-null The title of the note, as defined by the user.
isProtectedIntegerNon-null01 if the entity is protected, 0 otherwise.
blobIdTextNullablenullThe corresponding ID from blobs. Although it can theoretically be NULL, haven't found any such note yet.
utcDateLastEditedTextNon-null Not sure how it differs from modification date.
utcDateCreatedTextNon-null Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
dateLastEditedTextNon-null Not sure how it differs from modification date.
dateCreatedTextNon-null Localized creatino date (e.g. 2023-08-12 15:10:04.045+0300)
-
- - - -
- - - - - - -
- - diff --git a/docs/Release Notes/!!!meta.json b/docs/Release Notes/!!!meta.json new file mode 100644 index 000000000..c9e9b98a2 --- /dev/null +++ b/docs/Release Notes/!!!meta.json @@ -0,0 +1,596 @@ +{ + "formatVersion": 2, + "appVersion": "0.92.7", + "files": [ + { + "isClone": false, + "noteId": "hD3V4hiu2VW4", + "notePath": [ + "hD3V4hiu2VW4" + ], + "title": "Release Notes", + "notePosition": 1, + "prefix": null, + "isExpanded": false, + "type": "book", + "mime": "", + "attributes": [ + { + "type": "label", + "name": "sorted", + "value": "", + "isInheritable": false, + "position": 10 + }, + { + "type": "label", + "name": "expanded", + "value": "", + "isInheritable": false, + "position": 60 + }, + { + "type": "label", + "name": "sortNatural", + "value": "", + "isInheritable": false, + "position": 50 + }, + { + "type": "label", + "name": "sortDirection", + "value": "desc", + "isInheritable": false, + "position": 20 + }, + { + "type": "label", + "name": "viewType", + "value": "grid", + "isInheritable": false, + "position": 40 + } + ], + "attachments": [], + "dirFileName": "Release Notes", + "children": [ + { + "isClone": false, + "noteId": "VN3xnce1vLkX", + "notePath": [ + "hD3V4hiu2VW4", + "VN3xnce1vLkX" + ], + "title": "v0.92.8-beta", + "notePosition": 10, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.92.8-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "WRaBfQqPr6qo", + "notePath": [ + "hD3V4hiu2VW4", + "WRaBfQqPr6qo" + ], + "title": "v0.92.7", + "notePosition": 20, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "label", + "name": "language", + "value": "en", + "isInheritable": false, + "position": 40 + } + ], + "format": "markdown", + "dataFileName": "v0.92.7.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "a2rwfKNmUFU1", + "notePath": [ + "hD3V4hiu2VW4", + "a2rwfKNmUFU1" + ], + "title": "v0.92.6", + "notePosition": 30, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.92.6.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "fEJ8qErr0BKL", + "notePath": [ + "hD3V4hiu2VW4", + "fEJ8qErr0BKL" + ], + "title": "v0.92.5-beta", + "notePosition": 40, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.92.5-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "kkkZQQGSXjwy", + "notePath": [ + "hD3V4hiu2VW4", + "kkkZQQGSXjwy" + ], + "title": "v0.92.4", + "notePosition": 50, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.92.4.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "vAroNixiezaH", + "notePath": [ + "hD3V4hiu2VW4", + "vAroNixiezaH" + ], + "title": "v0.92.3-beta", + "notePosition": 60, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.92.3-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "mHEq1wxAKNZd", + "notePath": [ + "hD3V4hiu2VW4", + "mHEq1wxAKNZd" + ], + "title": "v0.92.2-beta", + "notePosition": 70, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.92.2-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "IykjoAmBpc61", + "notePath": [ + "hD3V4hiu2VW4", + "IykjoAmBpc61" + ], + "title": "v0.92.1-beta", + "notePosition": 80, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.92.1-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "dq2AJ9vSBX4Y", + "notePath": [ + "hD3V4hiu2VW4", + "dq2AJ9vSBX4Y" + ], + "title": "v0.92.0-beta", + "notePosition": 90, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.92.0-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "3a8aMe4jz4yM", + "notePath": [ + "hD3V4hiu2VW4", + "3a8aMe4jz4yM" + ], + "title": "v0.91.6", + "notePosition": 100, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.91.6.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "8djQjkiDGESe", + "notePath": [ + "hD3V4hiu2VW4", + "8djQjkiDGESe" + ], + "title": "v0.91.5", + "notePosition": 110, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.91.5.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "OylxVoVJqNmr", + "notePath": [ + "hD3V4hiu2VW4", + "OylxVoVJqNmr" + ], + "title": "v0.91.4-beta", + "notePosition": 120, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.91.4-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "tANGQDvnyhrj", + "notePath": [ + "hD3V4hiu2VW4", + "tANGQDvnyhrj" + ], + "title": "v0.91.3-beta", + "notePosition": 130, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.91.3-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "hMoBfwSoj1SC", + "notePath": [ + "hD3V4hiu2VW4", + "hMoBfwSoj1SC" + ], + "title": "v0.91.2-beta", + "notePosition": 140, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.91.2-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "a2XMSKROCl9z", + "notePath": [ + "hD3V4hiu2VW4", + "a2XMSKROCl9z" + ], + "title": "v0.91.1-beta", + "notePosition": 150, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.91.1-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "yqXFvWbLkuMD", + "notePath": [ + "hD3V4hiu2VW4", + "yqXFvWbLkuMD" + ], + "title": "v0.90.12", + "notePosition": 160, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.12.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "veS7pg311yJP", + "notePath": [ + "hD3V4hiu2VW4", + "veS7pg311yJP" + ], + "title": "v0.90.11-beta", + "notePosition": 170, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.11-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "sq5W9TQxRqMq", + "notePath": [ + "hD3V4hiu2VW4", + "sq5W9TQxRqMq" + ], + "title": "v0.90.10-beta", + "notePosition": 180, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.10-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "yFEGVCUM9tPx", + "notePath": [ + "hD3V4hiu2VW4", + "yFEGVCUM9tPx" + ], + "title": "v0.90.9-beta", + "notePosition": 190, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.9-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "o4wAGqOQuJtV", + "notePath": [ + "hD3V4hiu2VW4", + "o4wAGqOQuJtV" + ], + "title": "v0.90.8", + "notePosition": 200, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "relation", + "name": "includeNoteLink", + "value": "i4A5g9iOg9I0", + "isInheritable": false, + "position": 10 + }, + { + "type": "relation", + "name": "includeNoteLink", + "value": "G4PAi554kQUr", + "isInheritable": false, + "position": 20 + } + ], + "format": "markdown", + "dataFileName": "v0.90.8.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "i4A5g9iOg9I0", + "notePath": [ + "hD3V4hiu2VW4", + "i4A5g9iOg9I0" + ], + "title": "v0.90.7-beta", + "notePosition": 210, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.7-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "ThNf2GaKgXUs", + "notePath": [ + "hD3V4hiu2VW4", + "ThNf2GaKgXUs" + ], + "title": "v0.90.6-beta", + "notePosition": 220, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.6-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "G4PAi554kQUr", + "notePath": [ + "hD3V4hiu2VW4", + "G4PAi554kQUr" + ], + "title": "v0.90.5-beta", + "notePosition": 230, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.5-beta.md", + "attachments": [ + { + "attachmentId": "fYtz4wC6u6wN", + "title": "image.png", + "role": "image", + "mime": "image/jpg", + "position": 10, + "dataFileName": "v0.90.5-beta_image.png" + } + ] + }, + { + "isClone": false, + "noteId": "zATRobGRCmBn", + "notePath": [ + "hD3V4hiu2VW4", + "zATRobGRCmBn" + ], + "title": "v0.90.4", + "notePosition": 240, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.4.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "sCDLf8IKn3Iz", + "notePath": [ + "hD3V4hiu2VW4", + "sCDLf8IKn3Iz" + ], + "title": "v0.90.3", + "notePosition": 250, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.3.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "VqqyBu4AuTjC", + "notePath": [ + "hD3V4hiu2VW4", + "VqqyBu4AuTjC" + ], + "title": "v0.90.2-beta", + "notePosition": 260, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.2-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "RX3Nl7wInLsA", + "notePath": [ + "hD3V4hiu2VW4", + "RX3Nl7wInLsA" + ], + "title": "v0.90.1-beta", + "notePosition": 270, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.1-beta.md", + "attachments": [] + }, + { + "isClone": false, + "noteId": "GyueACukPWjk", + "notePath": [ + "hD3V4hiu2VW4", + "GyueACukPWjk" + ], + "title": "v0.90.0-beta", + "notePosition": 280, + "prefix": null, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [], + "format": "markdown", + "dataFileName": "v0.90.0-beta.md", + "attachments": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.0-beta.md b/docs/Release Notes/Release Notes/v0.90.0-beta.md new file mode 100644 index 000000000..00daf4c0c --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.0-beta.md @@ -0,0 +1,36 @@ +# v0.90.0-beta +**Note:** This version is currently not meant for public use, but for internal testing. The reason is that it might be quite unstable. Nevertheless, feel free to test if you understand the risks. + +### What's new compared to the latest version of Trilium Notes (0.63.7)? + +Theoretically, nothing. This version is based on Trilium Notes 0.63.7, but it introduces a significant refactoring of the code: the server has been ported from JavaScript to TypeScript. + +To the end user, nothing should change, except that some things might have been broken in the process. + +For the first release of TriliumNext, we simply need to check if there are any regressions by using it in day-to-day activities. Feel free to [report any issues](https://github.com/TriliumNext/Notes/issues/new/choose). + +### What do I need to do in order to start? + +For the desktop application, simply download it from the releases page and extract it in a similar fashion to how the original Trilium Notes is installed. + +Regarding data, please note that **TriliumNext Notes shares the same database as Trilium Notes.** A manual database backup is strongly encouraged: + +* On Windows, open Windows Explorer and type `%appdata%` in the address bar. Look for `trilium-data` and simply copy and paste it. +* On Linux, the data directory is in `~/.local/share/trilium-data`. + +Generally your existing notes should be quite safe (there are no database migrations or API changes, only the consistency checks could have been impacted), haven't noticed any issues when testing. + +Additionally, since the sync version has not changed either, you should be able to mix the client and the server between Trilium Notes and TriliumNext Notes. + +The server is also packaged and available in the release. For the Docker build, the Docker image is built automatically and is available on GitHub's Docker registry. + +### Why v0.90.0 + +The current release from [zadam/trilium](https://github.com/zadam/trilium/releases/tag/v0.63.7) is 0.63.7. + +If we reset the version number to 0.1, there are a few downsides: + +* This might cause issues with migration and updates checking. +* The fact that TriliumNext 0.1.0 is based off of Trilium 0.63.7 can be rather confusing. + +At the same time we would not want to bump directly to the next version as we would directly enter in conflict with future releases of Trilium. As such, we are bumping it to 0.90 instead. \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.1-beta.md b/docs/Release Notes/Release Notes/v0.90.1-beta.md new file mode 100644 index 000000000..3e89c7bbb --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.1-beta.md @@ -0,0 +1,36 @@ +# v0.90.1-beta +The key highlight of this version is the large number of library updates, bringing them to the latest version. + +## ⚙️ Windows Installer + +A Squirrel-based installer for the Windows 64-bit platform is now provided with each release. + +Simply download the installer and run it and the application should be installed automatically. + +## 🐞 Bugfixes + +The following regressions due to the conversion to TypeScript has been solved, compared to v0.90.0: + +* [Searching note content fails](https://github.com/TriliumNext/Notes/issues/211) +* [Canvas: "Copy image reference to clipboard" no longer working](https://github.com/TriliumNext/Notes/pull/227) +* [v.0.90.0-beta random errors when loading notes](https://github.com/TriliumNext/Notes/issues/238) +* [Frontend JS code exeution error](https://github.com/TriliumNext/Notes/issues/244) +* [Sync failed: Cannot read properties of undefined (reading 'utcDateChanged')](https://github.com/TriliumNext/Notes/issues/210) + +## ⬆️ Library updates + +### Client-side library updates + +
LibraryOld versionNew version
axios1.6.71.7.2
excalidraw0.17.30.17.6
katex0.16.90.16.11
mermaid10.9.010.9.1
react, react-dom18.2.018.3.1
+ +### Server-side library updates + +
LibraryOld versionNew version
sanitize-url6.0.47.1.0
archiver7.0.07.0.1
marked12.0.013.0.2
sanitize-html1.6.71.7.2
turndown7.1.27.2.0
yauzl3.1.23.1.3
express4.18.34.19.2
express-rate-limit7.2.07.3.1
jsdom24.0.024.1.0
ws8.16.08.18.0
ejs3.1.93.1.10
dayjs1.11.101.11.12
semver7.6.07.6.3
async-mutex0.4.10.5.0
https-proxy-agent7.0.47.0.5
sax1.3.01.4.1
ini3.0.14.1.3
debounce1.2.12.1.0
+ +## ✨ Technical improvements + +* Updated from Node 18.8.2 to 20.15.1. +* Reduced the binary size (see [#252](https://github.com/TriliumNext/Notes/pull/252)). +* Removed redundant `open` dependency. +* Updated internal tooling (`rimraf`, `webpack`, `nodemon`, `jsdoc`). +* Updated TypeScript to latest. \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.10-beta.md b/docs/Release Notes/Release Notes/v0.90.10-beta.md new file mode 100644 index 000000000..bf228c040 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.10-beta.md @@ -0,0 +1,35 @@ +# v0.90.10-beta +## 💡 Key highlights + +* Syntax highlight in code blocks in editable and read-only text notes (via Highlight.js), heavily based on [antoniotejada](https://github.com/antoniotejada)'s [Trilium-SyntaxHighlightWidget](https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget). + +## 🐞 Bugfixes + +* Code note overlapping with note list. +* Fix error when running a script in 0.90.9-beta. +* Font section in Appearance settings blinking when settings were being updated. +* [Crop fileName and prevent cutting into the extension](https://github.com/TriliumNext/Notes/pull/541) / Canvas note exported to html can't be view due to title name is 13-15 digits long by @SiriusXT +* Duplicate note count in delete relation modal. +* Docnotes (e.g. launcher configuration descriptions) not showing on Electron/desktop builds. + +## ✨ Improvements + +* Adjustable word-wrap for code blocks in text notes. +* Adjustable theme for code blocks in text notes, plus slightly improved design. +* The application should now be more highly tolerant to errors caused by custom widgets and scripts, not causing the UI to also crash (see [#511](https://github.com/TriliumNext/Notes/issues/511)). +* [Close tabs to the right](https://github.com/TriliumNext/Notes/pull/542) by @SiriusXT +* [Automatically trigger autocomplete on focus](https://github.com/TriliumNext/Notes/pull/534) by @SiriusXT + +## 🌍 Internationalization + +* Translate weekday and month names for daily notes. +* Update server translations when switching language. +* Translate search note prefix. +* Translate sync test messages. + +## ⬆️ Library updates + +* mind-elixir: 4.2.3 → 4.2.4 +* mermaid: 11.3.0 → 11.4.0 +* i18next: 23.16.2 -> 23.16.4 +* and other internal development tooling updates. \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.11-beta.md b/docs/Release Notes/Release Notes/v0.90.11-beta.md new file mode 100644 index 000000000..d1d00ba0e --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.11-beta.md @@ -0,0 +1,32 @@ +# v0.90.11-beta +## 💡 Key highlights + +* Now it is possible to have a fixed toolbar for editing text notes instead of the standard floating one, see [Classic editor for text notes (with fixed toolbar)](https://github.com/TriliumNext/Notes/pull/571) for more information. + +## 🐞 Bugfixes + +* [Double input after spaces on Android](https://github.com/TriliumNext/Notes/issues/568) +* [Hyperlinks with custom protocols not working](https://github.com/TriliumNext/Notes/issues/122) by @SiriusXT +* [Internal Link: Two Tooltips are displayed](https://github.com/TriliumNext/Notes/issues/525) +* Fixed loading of syntax highlighting themes for server and Docker builds. + +## ✨ Improvements + +* [Insert inline images in text notes](https://github.com/TriliumNext/Notes/issues/531) (also grouped the image alignment buttons in subcategories since there were too many of them). +* [Explicitly manage the "latest" tag, and have it point to the same tag as "stable"](https://github.com/TriliumNext/Notes/pull/545) by @perfectra1n +* [Make attachments open in a new tab/browser](https://github.com/TriliumNext/Notes/pull/559) by @SiriusXT +* [mouse scroll wheel direction for zoom level](https://github.com/TriliumNext/Notes/pull/555) by @rom1dep +* Apply syntax highlight to preview of code notes as well. +* [More reliably check for version updates](https://github.com/TriliumNext/Notes/pull/574) by @perfectra1n +* README improvements by @perfectra1n + +## 🌍 Internationalization + +* Preliminary support for the German language by @j13055 +* Improved French translations by @Potjoe-97 +* Improved Spanish translations by @hasecilu + +## ⬆️ Library updates + +* mind-elixir: 4.2.4 -> 4.3.1 +* client: force-graph: 1.45.0 -> 1.46.0 \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.12.md b/docs/Release Notes/Release Notes/v0.90.12.md new file mode 100644 index 000000000..ff9727771 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.12.md @@ -0,0 +1,131 @@ +# v0.90.12 +## 💡 Key highlights + +* Now it is possible to have a fixed toolbar for editing text notes instead of the standard floating one, see [Classic editor for text notes (with fixed toolbar)](https://github.com/TriliumNext/Notes/pull/571) for more information. +* Syntax highlight in code blocks in editable and read-only text notes (via Highlight.js), heavily based on [antoniotejada](https://github.com/antoniotejada)'s [Trilium-SyntaxHighlightWidget](https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget). + +## Changes since the last beta release + +### 🐞 Bugfixes + +* [Shell (Bash) Syntax Highlight](https://github.com/TriliumNext/Notes/issues/583) +* [0 Max content width causes editor issues](https://github.com/TriliumNext/Notes/issues/593) +* [Share icon not visible in note icon picker](https://github.com/TriliumNext/Notes/issues/603) + +### ✨ Improvements + +* Add find & replace button to fixed toolbar +* [Add more link protocol support](https://github.com/TriliumNext/Notes/pull/589) by @SiriusXT +* [Add a text replacement feature to the find\_widget](https://github.com/TriliumNext/Notes/pull/576) by @SiriusXT +* [Replace the editor type combo box with radio buttons](https://github.com/TriliumNext/Notes/pull/587) by @adoriandoran +* [Add box icons to note menu & attachments](https://github.com/TriliumNext/Notes/pull/609) by @SiriusXT +* [Improve the "Existing backups" section](https://github.com/TriliumNext/Notes/pull/615) by @adoriandoran +* [Trigger full text search when Ctrl + Enter is pressed in note autocomplete](https://github.com/TriliumNext/Notes/pull/585) by @SiriusXT +* [Improve context menus](https://github.com/TriliumNext/Notes/pull/618) (+ [Replace (?) with information icon](https://github.com/TriliumNext/Notes/issues/613)) by @adoriandoran +* [Add Options Launcher](https://github.com/TriliumNext/Notes/issues/619) +* [Change note clone icon indicator from star to link icon](https://github.com/TriliumNext/Notes/issues/565) +* [Add "Reopen last tab" and "Copy tab to new window" to tab management](https://github.com/TriliumNext/Notes/pull/651) by @SiriusXT + +### 🌍 Internationalization + +* Improved Spanish translations by @hasecilu +* Improved German translations by @j13055 +* [Improve note revision wording and consistency](https://github.com/TriliumNext/Notes/pull/612) by @meichthys + +### ⬆️ Library updates and technical improvements + +* [Add renovate GitHub Action and JSON config](https://github.com/TriliumNext/Notes/pull/607) by @perfectra1n + +## From `v0.90.11-beta` + +### 🐞 Bugfixes + +* [Double input after spaces on Android](https://github.com/TriliumNext/Notes/issues/568) +* [Hyperlinks with custom protocols not working](https://github.com/TriliumNext/Notes/issues/122) by @SiriusXT +* [Internal Link: Two Tooltips are displayed](https://github.com/TriliumNext/Notes/issues/525) +* Fixed loading of syntax highlighting themes for server and Docker builds. + +### ✨ Improvements + +* [Insert inline images in text notes](https://github.com/TriliumNext/Notes/issues/531) (also grouped the image alignment buttons in subcategories since there were too many of them). +* [Explicitly manage the "latest" tag, and have it point to the same tag as "stable"](https://github.com/TriliumNext/Notes/pull/545) by @perfectra1n +* [Make attachments open in a new tab/browser](https://github.com/TriliumNext/Notes/pull/559) by @SiriusXT +* [mouse scroll wheel direction for zoom level](https://github.com/TriliumNext/Notes/pull/555) by @rom1dep +* Apply syntax highlight to preview of code notes as well. +* [More reliably check for version updates](https://github.com/TriliumNext/Notes/pull/574) by @perfectra1n +* README improvements by @perfectra1n + +### 🌍 Internationalization + +* Preliminary support for the German language by @j13055 +* Improved French translations by @Potjoe-97 +* Improved Spanish translations by @hasecilu + +### ⬆️ Library updates + +* mind-elixir: 4.2.4 -> 4.3.1 +* client: force-graph: 1.45.0 -> 1.46.0 + +## From `v0.90.10-beta` + +### 🐞 Bugfixes + +* Code note overlapping with note list. +* Fix error when running a script in 0.90.9-beta. +* Font section in Appearance settings blinking when settings were being updated. +* [Crop fileName and prevent cutting into the extension](https://github.com/TriliumNext/Notes/pull/541) / Canvas note exported to html can't be view due to title name is 13-15 digits long by @SiriusXT +* Duplicate note count in delete relation modal. +* Docnotes (e.g. launcher configuration descriptions) not showing on Electron/desktop builds. + +### ✨ Improvements + +* Adjustable word-wrap for code blocks in text notes. +* Adjustable theme for code blocks in text notes, plus slightly improved design. +* The application should now be more highly tolerant to errors caused by custom widgets and scripts, not causing the UI to also crash (see [#511](https://github.com/TriliumNext/Notes/issues/511)). +* [Close tabs to the right](https://github.com/TriliumNext/Notes/pull/542) by @SiriusXT +* [Automatically trigger autocomplete on focus](https://github.com/TriliumNext/Notes/pull/534) by @SiriusXT + +### 🌍 Internationalization + +* Translate weekday and month names for daily notes. +* Update server translations when switching language. +* Translate search note prefix. +* Translate sync test messages. + +### ⬆️ Library updates + +* mind-elixir: 4.2.3 → 4.2.4 +* mermaid: 11.3.0 → 11.4.0 +* i18next: 23.16.2 -> 23.16.4 +* and other internal development tooling updates. + +## From `v0.90.9-beta` + +### 🐞 Bugfixes + +* [Promoted boolean attributes no long showing checkbox when the value is true](https://github.com/TriliumNext/Notes/issues/503) +* [Import of .htm keeps htm in title while html does not](https://github.com/TriliumNext/Notes/issues/500) + +### ✨ Improvements + +* [Syntax highlighting in read-only mode code notes](https://github.com/TriliumNext/Notes/issues/504) (also for “View source”). +* [Server 404 logs are now one-line instead of a full stack trace](https://github.com/TriliumNext/Notes/issues/505) + +### 🌍 Internationalization + +* Translated the toast notifications, errors and confirmation boxes. +* Translated the launcher context menu. + +### ⬆️ Library updates + +* i18next: 23.16.0 -> 23.16.2 +* mind-elixir: 4.2.0 -> 4.2.2 +* vanilla-js-wheel-zoom: 9.0.2 -> 9.0.4 +* cookie-parser: 1.4.6 → 1.4.7 +* image-type: 4.1.0 → 5.2.0 +* express, express-rate-limit, express-session updated to latest. +* cookie-parser: 1.4.6 → 1.4.7 +* marked: 14.1.2 → 14.1.3 +* sanitize-html: 2.13.0 → 2.13.1 +* force-graph: 1.43.5 → 1.45.0 +* and others (jasmine, debounce) \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.2-beta.md b/docs/Release Notes/Release Notes/v0.90.2-beta.md new file mode 100644 index 000000000..9c0af0417 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.2-beta.md @@ -0,0 +1,20 @@ +# v0.90.2-beta +## 🐞 Bugfixes + +* [(Bug report) Initial sync doesn't finish](https://github.com/TriliumNext/Notes/issues/266) + +## ✨ Technical Improvements + +Important changes: + +* The biggest change is that the server has been ported from Common.js to ES Modules. Note that a change of this proportion is bound to cause some quirks throughout the application, bug reports are welcome. +* Updated Electron from 25.9.8 to 31.2.1 ([#231](https://github.com/TriliumNext/Notes/pull/231)) + +Additionally: + +* Updated CKEditor from 41.0.0 to 41.4.2. +* Started adding support for internationalization ([#248](https://github.com/TriliumNext/Notes/pull/248)). The application will soon be able to be translated into multiple languages. +* Improved error management for scripting: + * If a critical unexpected error occurs from a widget, a toast is shown explaining the situation and advising to enter safe mode, as opposed to a blank page. + * If a basic widget fails to render, a toast is shown instead of crashing the application. +* Toast messages now support newlines (by adding a `\n` to the message) for slightly better formatting. \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.3.md b/docs/Release Notes/Release Notes/v0.90.3.md new file mode 100644 index 000000000..aafb68ea5 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.3.md @@ -0,0 +1,50 @@ +# v0.90.3 +This is the first public release of TriliumNext considered stable. + +## ❔ Why TriliumNext? + +TriliumNext has started as a fork of [Trilium Notes](https://github.com/zadam/trilium) at the beginning of 2024. The reason for the work is that the upstream project has entered [maintenance phase](https://github.com/zadam/trilium/issues/4620) and we would like to extend the application. + +The work so far has focused more on the technical aspects because most of the work has been done by @zadam and handing over a project of this size is non-trivial. Some more technical work will be done in the upcoming versions after which the project can focus on improving the user experience as much as possible. + +As a short overview of what's planned next from a user-facing point of view: + +* Support for multiple languages. +* Improving the existing theme and decluttering the UI. +* Mobile improvements. +* Exploring additional editors such as a MarkDown-based editor. + +## ⬆️ Porting from Trilium Notes? + +There is no change in the database structure. + +TriliumNext Notes can be run instead of the original Trilium Notes and it should work out of the box, since it will reuse the same database. + +It should also be possible to downgrade back to Trilium Notes if required, without any changes or loss of data. + +Similarly goes for the server, it should work out of the box. It is possible to mix and match between Trilium Notes and TriliumNext Notes. + +## 🐞 How stable is the version + +Generally you should not encounter any breaking bugs as the prior versions have been tested and daily-driven for a few weeks now. + +Should you encounter any issue, feel free to report them on [our GitHub issues](https://github.com/TriliumNext/Notes/issues). + +## ✨ Key highlights + +* Fixed (from v0.90.2-beta) + * Fixed [Error importing zip file](https://github.com/TriliumNext/Notes/issues/281) + * Fixed Alt+Left and Alt+Right navigation would not work under Electron. + * Added a fresh new icon to represent our ongoing effort to improve Trilium. +* v0.90.2-beta + * Fixed some issues with the sync. + * Ported the server from Common.js to ES modules. + * Updated the CKEditor from 41.0.0 to 41.4.2. + * Updated Electron from 25.9.8 (marked as end-of-life) to 31.2.1. + * Started adding support for internationalization ([#248](https://github.com/TriliumNext/Notes/pull/248)). The application will soon be able to be translated into multiple languages. + * Improved error management for scripting +* v0.90.1-beta + * Introduced a Windows installer instead of the .zip installation. + * Bug fixes related to the TypeScript port of the server. +* v0.90.0-beta + * On a technical side, the server was rewritten in TypeScript. This should improve the stability of both current and future developments thanks to the language's type safety. It will also make the development slightly easier. \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.4.md b/docs/Release Notes/Release Notes/v0.90.4.md new file mode 100644 index 000000000..cb49828a0 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.4.md @@ -0,0 +1,21 @@ +# v0.90.4 +This release focuses mostly on improving the experience with the Docker containers. + +## Docker ARM builds + +* [ARM builds for Docker were reintroduced](https://github.com/TriliumNext/Notes/issues/302) and are available on both [Docker Hub](https://hub.docker.com/r/triliumnext/notes) and [GHCR](https://github.com/TriliumNext/Notes/pkgs/container/notes)starting with this release. + * Note that only `ARMv7` and `ARM64/v8` architectures are supported for now. + * `ARMv6` support was dropped due to incompatibility issues with Node 20. + +## 🐞 Bugfixes + +* [Docker container marked as not healthy](https://github.com/TriliumNext/Notes/issues/296) +* [Find/Replace dialog doesn't match theme](https://github.com/TriliumNext/Notes/issues/304) +* [Tray icon is missing on windows](https://github.com/TriliumNext/Notes/issues/311) +* [Error when Duplicating subtree of note that contains broken internal trilium link](https://github.com/TriliumNext/Notes/issues/308) +* [Update available points to Trilium download instead of TriliumNext](https://github.com/TriliumNext/Notes/issues/313) + +## Additional changes + +* [Update `docker-compose.yml`](https://github.com/TriliumNext/Notes/pull/309) by slashtechno +* Updated links throughout the application to point to the rendered [TriliumNext Wiki](https://triliumnext.github.io/Docs) \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.5-beta.md b/docs/Release Notes/Release Notes/v0.90.5-beta.md new file mode 100644 index 000000000..5634ce676 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.5-beta.md @@ -0,0 +1,66 @@ +# v0.90.5-beta +This release brings a few quality-of-life improvements, as well as bugfixes. The main highlight, however, is the increased support for localization as well as a new note type. + +## 🌍 Internationalization + +Preliminary support for internationalization has been added, thanks to the efforts of `@Nriver`. More specifically, the following languages now have a partial translation: + +* Spanish by `@hasecilu` +* Chinese by `@Nriver` +* Romanian. + +Note that only the client has been translated so far and there are still a lot of tasks to handle before the application is fully translated. + +## 💡 New note type: Mind map + +Mind maps are usually a fast method to write down ideas and do brainstorming with a team. TriliumNext introduces this new note type with the help of [Mind Elixir](https://mind-elixir.com/), an open-source library. + +Note that the integration is still in its infancy, so there might be bugs and a lack of feature until it is stabilized. The library itself supports quite a few features that are not implemented yet in Trilium: math expressions using KaTeX, images, links. Those might be implemented along the way, provided they are needed by users. + +
+ +> **Note**: For the note type to fully work (such as shared notes), it is ideal to update the server instance as well, if you are using one. + +## ⚙️ Builds + +The internal build tooling has been updated, resulting in the following changes: + +* For macOS users there is now a `.dmg` installation method as well. `@JYC333` + * There is also an ARM-native version for macOS that can be used, however it will require [additional steps to get it running](https://github.com/TriliumNext/Notes/issues/329) due to the lack of notarization (to bypass the “TriliumNext Notes.app” is damaged error). +* For both Windows and Linux we now have `amd64` builds as well. + * Please note these versions are not being actively tested due to lack of equipment, so feel free to raise any issues you might be encountering. + +On the Docker side, [brought back Alpine-based Docker containers for amd64](https://github.com/TriliumNext/Notes/pull/366) by `@perfectrain`. + +### 🐞 Bugfixes + +* [v0.90.4 docker does not read USER\_UID and USER\_GID from environment](https://github.com/TriliumNext/Notes/issues/331) +* [Invalid CSRF token on Android phone](https://github.com/TriliumNext/Notes/issues/318) +* [Excess spacing in lists](https://github.com/TriliumNext/Notes/issues/341) +* [scrollbar-color makes the scrollbar appear natively styled](https://github.com/TriliumNext/Notes/issues/350) +* Invisible scrollbar on Firefox +* [Issue with note title text box border](https://github.com/TriliumNext/Notes/issues/358) +* [Focus not set to input field when clicking `Include Note` from Block Editor](https://github.com/TriliumNext/Notes/issues/365) +* [Fix a bug of find widget](https://github.com/TriliumNext/Notes/pull/377) by `@SiriusXT` +* ['A JavaScript error occurred in the main process' when launching Trilium](https://github.com/TriliumNext/Notes/issues/368) (improved error handling). +* [Note Tooltip isn't removed when clicking on internal trilium link in read-only mode](https://github.com/TriliumNext/Notes/issues/375) +* [Calendar dropdown won't close if click/right-click other button that open notes from launcher bar](https://github.com/TriliumNext/Notes/issues/384) + +### ✨ Improvements + +* [Improved the calendar button in the launch bar](https://github.com/TriliumNext/Notes/issues/374), adding support for easier month and year selection. +* [Make first day of week configurable](https://github.com/TriliumNext/Notes/issues/247) (supports Sunday and Monday) + * Can be adjusted in Options → Appearance → Localization → First day of the week. + * The option is synced with the server and the client updates immediately. +* Removed hard-coded libraries such as FancyTree and Bootstrap. This will later allow us to upgrade to the latest versions. `@JYC333` +* [Hide Electron-specific settings in the web version](https://github.com/TriliumNext/Notes/issues/345) +* [Add a toggle to promote the current note to a template](https://github.com/TriliumNext/Notes/issues/348) +* Disable share toggle when in options +* [Open New window from taskbar](https://github.com/TriliumNext/Notes/pull/373) by `@SiriusXT` +* Pressing F2 to edit the branch prefix will now work only in the note tree to avoid issues with other interactive elements such as the mind map, but also since the option itself is not the most used ones to require a global shortcut. + +## New Contributors + +* [@JYC333](https://github.com/JYC333) made their first contribution in [#294](https://github.com/TriliumNext/Notes/pull/294) +* [@hasecilu](https://github.com/hasecilu) made their first contribution in [#349](https://github.com/TriliumNext/Notes/pull/349) +* [@SiriusXT](https://github.com/SiriusXT) made their first contribution in [#377](https://github.com/TriliumNext/Notes/pull/377) \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.5-beta_image.png b/docs/Release Notes/Release Notes/v0.90.5-beta_image.png new file mode 100644 index 000000000..b4963d431 Binary files /dev/null and b/docs/Release Notes/Release Notes/v0.90.5-beta_image.png differ diff --git a/docs/Release Notes/Release Notes/v0.90.6-beta.md b/docs/Release Notes/Release Notes/v0.90.6-beta.md new file mode 100644 index 000000000..423c0d6ec --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.6-beta.md @@ -0,0 +1,2 @@ +# v0.90.6-beta +This is a Docker-only re-release of [v0.90.5-beta](https://github.com/TriliumNext/Notes/releases/tag/v0.90.6-beta) that **adds back the amd64 container image** which was previously not available due to a race condition on our build mechanism. For now, this means that the Alpine container mentioned in the previous release is no longer available, as we have fallen back to Debian Slim. \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.7-beta.md b/docs/Release Notes/Release Notes/v0.90.7-beta.md new file mode 100644 index 000000000..79a3be12a --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.7-beta.md @@ -0,0 +1,52 @@ +# v0.90.7-beta +## ⚠️ Important notes + +* 0.90.5-beta & 0.90.6-beta have an incompatibility with older sync servers if using mind maps, causing them to get turned to a file. If you are impacted by this, see [mindmap note suddenly show with file note](https://github.com/TriliumNext/Notes/issues/467#issuecomment-2402853189). +* Sync version has been increased from 32 to 33 to prevent issues with mindmap notes. This means that the server also needs to be updated to this version, otherwise sync will be refused. + +## 🐞 Bugfixes + +* [Insert Math appears to be broken](https://github.com/TriliumNext/Notes/issues/297) +* [Override the z-index of Bootstrap tooltips](https://github.com/TriliumNext/Notes/pull/472) by [dousha](https://github.com/dousha) +* [Clicking an entry in the calendar opens the note twice](https://github.com/TriliumNext/Notes/issues/417) +* [mindmap note suddenly show with file note](https://github.com/TriliumNext/Notes/issues/467) +* [Import md with jpeg: broken jpeg](https://github.com/TriliumNext/Notes/pull/458) by [`perfectra1n`](https://github.com/perfectra1n) + +## ✨ Improvements + +* [Icon improvements](https://github.com/TriliumNext/Notes/pull/392) by `@SiriusXT`. +* [Open in file manager of Trilium's data directory](https://github.com/TriliumNext/Notes/pull/389) by `@SiriusXT`. +* [i18n Fallback to English for null characters](https://github.com/TriliumNext/Notes/pull/414) by `@SiriusXT`. +* [Use matrix strategy for CI/CD](https://github.com/TriliumNext/Notes/pull/402#top) (Alpine is back!) by `perfectra1n`. +* [Floating buttons can be displayed again after being closed](https://github.com/TriliumNext/Notes/pull/432) by `@SiriusXT`. +* [Revisions number limit](https://github.com/TriliumNext/Notes/pull/391) by [SiriusXT](https://github.com/SiriusXT). +* [Searching with orderBy doesn't work with dated attributes](https://github.com/TriliumNext/Notes/pull/451) by [jaimeferj](https://github.com/jaimeferj). +* [Use the electron Clipboard module when using "Copy image to clipboard"](https://github.com/TriliumNext/Notes/pull/452) by @perfectra1n. +* [MIME type not being used when creating new note correctly, upon zip import](https://github.com/TriliumNext/Notes/pull/458) by @perfectra1n. +* [fix blurry PWA icon](https://github.com/TriliumNext/Notes/pull/465) by [quantum5](https://github.com/quantum5) + +## 🌍 Internationalization + +* Translated more of the client (e.g. note types, tree context menu, switches in the ribbon). +* Started translating the server (e.g. first setup, keyboard actions, shared pages). +* Improved coverage for Spanish by [hasecilu](https://github.com/hasecilu). +* Improved coverage for Chinese by [Nriver](https://github.com/Nriver/). +* Improved coverage for Romanian. + +## Library updates + +* [Upgrade bootstrap from v4 to v5](https://github.com/TriliumNext/Notes/pull/381) by @JYC333 + * This is a heavy UI library update, so there might be quirks here and there. + * Various improvements and bugfixes by @JYC333 and @SiriusXT +* Mermaid: 10.9.1 → 11.3.0 +* Mind Elixir: 4.0.5 → 4.1.5 +* JSDOM: 24.1.1 → 25.0.0 +* Day.js: 1.11.12 → 1.11.13 +* ESLint: 9.9.0 → 9.10.0 +* Marked: 13.0.2 → 14.1.2 +* Ini: 4.1.3 -> 5.0.0 +* Axios: 1.7.2 → 1.7.7 +* i18next: 23.14.0 → 23.15.2 +* express 4.19.2 → 4.21.0 +* better-sqlite3: 11.1.2 → 11.3.0 +* and other development tools. \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.8.md b/docs/Release Notes/Release Notes/v0.90.8.md new file mode 100644 index 000000000..4d0dba238 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.8.md @@ -0,0 +1,41 @@ +# v0.90.8 +## 💡 Key highlights + +* A new note type was introduced called “Mind Map” using the MindElixir library. +* Sync version has been increased from 32 to 33 to prevent issues with mindmap notes. This means that the server also needs to be updated to this version, otherwise sync will be refused. +* Internationalization support (Spanish, Chinese, Romanian, French). +* Various bugfixes (see below). + +## New to v0.90.8 + +## 🐞 Bugfixes + +* [There are horizontal lines under all hyperlinks](https://github.com/TriliumNext/Notes/issues/485) + +## ✨ Improvements + +* [Introduce `stable` tag on containers](https://github.com/TriliumNext/Notes/pull/489) by @perfectra1n + +### 🌍 Internationalization + +* Added French translations by @Potjoe-97 +* Translation improvements for Spanish by @hasecilu +* Translation improvements for Chinese by @Nriver +* Improved coverage for Romanian. + +### ⬆️ Library updates + +* mind-elixir: 4.1.5 -> 4.2.0 +* i18next: 23.15.2 -> 23.16.0 + +## From v0.90.7-beta + +
 
+ +## From v0.90.6-beta + +* Adds back the `amd64` container image + +## From v0.90-5-beta + +
 
\ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.90.9-beta.md b/docs/Release Notes/Release Notes/v0.90.9-beta.md new file mode 100644 index 000000000..8819f7944 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.90.9-beta.md @@ -0,0 +1,29 @@ +# v0.90.9-beta +## 🐞 Bugfixes + +* [Promoted boolean attributes no long showing checkbox when the value is true](https://github.com/TriliumNext/Notes/issues/503) +* [Import of .htm keeps htm in title while html does not](https://github.com/TriliumNext/Notes/issues/500) + +## ✨ Improvements + +* [Syntax highlighting in read-only mode code notes](https://github.com/TriliumNext/Notes/issues/504) (also for “View source”). +* [Server 404 logs are now one-line instead of a full stack trace](https://github.com/TriliumNext/Notes/issues/505) + +## 🌍 Internationalization + +* Translated the toast notifications, errors and confirmation boxes. +* Translated the launcher context menu. + +## ⬆️ Library updates + +* i18next: 23.16.0 -> 23.16.2 +* mind-elixir: 4.2.0 -> 4.2.2 +* vanilla-js-wheel-zoom: 9.0.2 -> 9.0.4 +* cookie-parser: 1.4.6 → 1.4.7 +* image-type: 4.1.0 → 5.2.0 +* express, express-rate-limit, express-session updated to latest. +* cookie-parser: 1.4.6 → 1.4.7 +* marked: 14.1.2 → 14.1.3 +* sanitize-html: 2.13.0 → 2.13.1 +* force-graph: 1.43.5 → 1.45.0 +* and others (jasmine, debounce) \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.91.1-beta.md b/docs/Release Notes/Release Notes/v0.91.1-beta.md new file mode 100644 index 000000000..b1375a286 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.91.1-beta.md @@ -0,0 +1,85 @@ +# v0.91.1-beta +## 💡 Key highlights + +* The launcher bar can now be placed at the top instead of the left of the screen, with a full-width tab bar. See [#654](https://github.com/TriliumNext/Notes/pull/654) for more information. +* [A new theme is introduced called “TriliumNext"](https://github.com/TriliumNext/Notes/pull/661) by @adoriandoran and @eliandoran. Settings on this theme are now displayed in a card layout. Redesigned tree action buttons. +* [Native title bar buttons](https://github.com/TriliumNext/Notes/pull/702) when native title bar is off for Windows and macOS. +* On Windows, on the TriliumNext theme there are window transparency effects if running under Windows, see [Mica (Windows transparency effects)](https://github.com/TriliumNext/Notes/pull/717) for screenshots. Unfortunately, it is plagued by a few bugs with Electron (the library we are using for the desktop application), see the link for more information. +* Updated Docker builds to Node 22. **Be on the lookout for any potential issues, especially for less-tested platforms such as ARM.** + +## 🐞 Bugfixes + +* [Syntax highlight in code blocks only in edit mode](https://github.com/TriliumNext/Notes/issues/668) +* To do lists not preserved on safe import. +* [File type video with emoji in name will break the preview](https://github.com/TriliumNext/Notes/issues/757) +* [Attribute "jump to" for internal links not working anymore](https://github.com/TriliumNext/Notes/issues/732) + +## ✨ Improvements + +* [Add label definition type for standalone time](https://github.com/TriliumNext/Notes/pull/653) by @mm21 +* [Remove resizer from backend log text area](https://github.com/TriliumNext/Notes/pull/670) by @meichthys +* Use CodeMirror for backend log +* Support for ELK layout in Mermaid diagrams (sponsored by @perfectra1n). See the relevant “ELK layout engine” in Mermaid diagrams for more information. +* [Make exact matches rise higher up in search](https://github.com/TriliumNext/Notes/pull/678) by @perfectra1n +* [Change layout of promoted attributes](https://github.com/TriliumNext/Notes/pull/538) +* [Add full text search in autocomplete](https://github.com/TriliumNext/Notes/pull/659) by @SiriusXT +* [Importing single HTML file: prefer html title over filename](https://github.com/TriliumNext/Notes/pull/598) by @maphew +* [Support page breaks for printing](https://github.com/TriliumNext/Notes/pull/692) +* [user configurable list of allowed html tags in import](https://github.com/TriliumNext/Notes/pull/601) by @maphew +* General HTML support; now the editor supports more HTML tags and displays them appropriately. + + * Currently the import function is the only way to benefit from them, or modifying the source code manually by changing the note type. +* Change default icons for “Go to Previous Note” and “Go to next note” launcher buttons. +* Move toggle sidebar button near tab bar on horizontal layout. +* Mind map notes now are full-width by default (same as Canvas, for example). +* Tabs can now display the icon notes instead of only workspace icons (this is the default behaviour of the TrilumNext theme, can be added to any other theme via `--tab-note-icons: true;` to `:root`). +* [New Features for note map](https://github.com/TriliumNext/Notes/pull/700) by @CobriMediaJulien +* [Add supported link protocols](https://github.com/TriliumNext/Notes/pull/694) by @SiriusXT +* [add Mind Elixir plugin @mind-elixir/node-menu](https://github.com/TriliumNext/Notes/issues/723) +* [Format dates and times](https://github.com/TriliumNext/Notes/pull/741) by @adoriandoran +* [Expose cheerio in backend script api](https://github.com/TriliumNext/Notes/pull/758) by @kleutzinger +* [Format note paths](https://github.com/TriliumNext/Notes/pull/759) by @adoriandoran +* [add remark about UFW issues](https://github.com/TriliumNext/Notes/pull/767) by @pano9000 +* [Code Block language support for Terraform (HCL)](https://github.com/TriliumNext/Notes/issues/739) +* [Display the fixed toolbar on multiple lines](https://github.com/TriliumNext/Notes/issues/729) (adjustable in settings) +* [Hide `internalLink` from `Jump To Note` dialog](https://github.com/TriliumNext/Notes/issues/713) + +## 🌍 Internationalization + +* [Chinese translation improvements (& some new messages translated)](https://github.com/TriliumNext/Notes/pull/673) by @Nriver +* [Add translation for doc notes](https://github.com/TriliumNext/Notes/pull/677) by @Nriver +* [Spanish improvements](https://github.com/TriliumNext/Notes/pull/695/files) by @hasecilu +* [Traditional Chinese support](https://github.com/TriliumNext/Notes/pull/698) by @dwong33 +* Translate import toast messages. +* Translate hidden notes (including options). +* Romanian improvements. +* [Brazillian Portuguese](https://github.com/TriliumNext/Notes/pull/740) by @Nertonm work in progress (only server translations for now) +* Translate note autocomplete. + +## ⬆️ Library updates + +* i18next, i18next-http-backend, i18next-fs-backend +* force-graph v1.47.0 +* express 4.2.12 +* mermaid 11.4.1 +* axios 1.7.9 +* katex 0.16.14 +* https-proxy-agent 7.0.6 +* better-sqlite3 11.6.0 +* electron 31.3.1 -> 33.2.1 +* jimp 0.22.12 -> 1.6.0 +* mind-elixir 4.3.3 +* Development tools + * electron-forge + * Docker Node.js updated to v20.18.1 + * GitHub Actions workflow actions + * webpack v5.97.1 + * TypeScript + types + * yargs + * helmet + * marked 15.0.3 + * is-svg 5.1.0 + * image-type 5.2.0 + * eslint v9.16.0 + * jsdom v25.0.1 + * compression v1.7.5 \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.91.2-beta.md b/docs/Release Notes/Release Notes/v0.91.2-beta.md new file mode 100644 index 000000000..7347c41d2 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.91.2-beta.md @@ -0,0 +1,36 @@ +# v0.91.2-beta +## 🐞 Bugfixes + +* [Can not toggle notes by clicking on the note's icon in the navigation bar](https://github.com/TriliumNext/Notes/issues/812) +* [Cannot arrow down to "full search" when no search results are returned in quick search](https://github.com/TriliumNext/Notes/issues/798) +* [Toolbar tooltips no longer shown](https://github.com/TriliumNext/Notes/issues/795) +* [Two help pages will be opened when the help button is clicked](https://github.com/TriliumNext/Notes/issues/570) + +## ✨ Improvements + +* [fix typo Trillium](https://github.com/TriliumNext/Notes/pull/799) by @pano9000 +* [Libraries in Excalidraw are broken](https://github.com/TriliumNext/Notes/pull/787) by @CobriMediaJulien +* [Color scheme selection](https://github.com/TriliumNext/Notes/pull/800) by @adoriandoran +* [Style Next: Restyle the "Jump to Note" dialog](https://github.com/TriliumNext/Notes/pull/802) by @adoriandoran +* Exporting a Markdown file will now try to preserve syntax highlighting +* [Auto-show left panel when configuring launchbar](https://github.com/TriliumNext/Notes/issues/779) +* [Accessibility: explicitly associate label and input elements](https://github.com/TriliumNext/Notes/pull/813) by @pano9000 + +## 🌍 Internationalization + +* Spanish improvements by @hasecilu +* [localize hardcoded English aria-labels](https://github.com/TriliumNext/Notes/pull/801) by @pano9000 +* Translate new note title + +## ⬆️ Library updates + +* typedoc: v0.27.5 +* highlightjs: v11.11.0 +* marked: v15.0.4 +* express-rate-limit to v7.5.0 +* chokidar: 4.0.3 +* katex: v0.16.18 +* sanitize-html: v2.14.0 +* webpack-cli: v5.1.4 → v6.0.1 +* i18next: v24.2.0 +* @braintree/sanitize-url: v7.1.1 \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.91.3-beta.md b/docs/Release Notes/Release Notes/v0.91.3-beta.md new file mode 100644 index 000000000..cb1cb2b2b --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.91.3-beta.md @@ -0,0 +1,101 @@ +# v0.91.3-beta +## 💡 Key highlights + +* Quite a few mobile improvements have been done (**kindly waiting for bug reports**) + * On mobile the horizontal layout (with the launcher bar displayed at the top of the screen instead of on the left side) is now enforced. + * This allows for more real estate for the content of the note and simplifies the mobile layout. + * The launch bar has also been moved at the bottom, to be inline with modern application layouts. + * Restructured the tree as a sidebar which is triggered via a button on the left side of the title bar. + * The sidebar can also be triggered by swiping to the right on the left side of the screen. _Still some quirks to address on both iOS and Android due to their weird back button gesture_. + * Improved the positioning of the bottom bar and of the editor toolbar. + * Tabs have been enabled. Currently we are using the same implementation as on desktop, which might have a few quirks on mobile. + * Jump to note is now available. + * The mobile view now has its own launch bar configuration with its own launch bar buttons. For now only a few have been enabled. **Feel free to request any button from the desktop should you require it.** + * Now it's possible to insert footnotes in CKEditor, thanks to a fork of [ThomasAitken/ckeditor5-footnotes](https://github.com/ThomasAitken/ckeditor5-footnotes). + * It's also possible to create inline Mermaid diagrams into text notes. + +## Known issues + +* On mobile, opening in a new tab activates the new tab but does not refresh the tab bar. + +## 🐞 Bugfixes + +* Prevent HTML from rendering in launcher bar. +* [Calendar overflows off right of view when in mobile view](https://github.com/TriliumNext/Notes/issues/783) +* Note tree context menu not shown on long press on iOS. +* [Advanced tree menu is only accessible in the mobile view via long-press](https://github.com/TriliumNext/Notes/issues/785) +* [NotFoundError after trying to paste filepath into note, restart required](https://github.com/TriliumNext/Notes/issues/881) +* login: fix "flash of unstyled content" by @pano9000 +* [Limit search function doesn't work](https://github.com/TriliumNext/Notes/issues/920) +* [fix ck-editor checkboxes not showing checkmark while printing](https://github.com/TriliumNext/Notes/pull/908) by @pano9000 + +## ✨ Improvements + +* [Syntax Highlighting for Batch scripts](https://github.com/TriliumNext/Notes/issues/830) +* Mobile improvements + + * Translucent top bar mobile layout on iOS + * Display formatting toolbar above keyboard. +* Fonts + + * Grouped the font selection by font type (sans-serif, monospace, etc.). + * Added an option to use the system font (e.g. “Segoe UI” for Windows). +* Display the content of JSON attachments and improve the style of attachment code blocks. +* Translucent top bar on desktop layout for iPad +* ['Show Help' and 'About Trillium Notes' menu options are now available in the mobile view](https://github.com/TriliumNext/Notes/issues/666) +* Back/forward buttons have been enabled for web builds as well, mostly for mobile view. +* [support for RFC 5870 geo-URIs](https://github.com/TriliumNext/Notes/pull/891) by @0Raptor +* login: add Trilium icon and improve style by @pano9000 +* allow disabling mention autocomplete by pressing escape (forward port of @zadam’s work) +* [Restyle the help dialog](https://github.com/TriliumNext/Notes/pull/903) by @adoriandoran +* Added back ESLint support for backend notes +* Exporting JavaScript code blocks in text notes to Markdown now sets the right language tag. + +## 🌍 Internationalization + +* Spanish translation improvements by @hasecilu +* Chinese translation improvements by @Nriver +* [make tags translatable](https://github.com/TriliumNext/Notes/pull/857) by @pano9000 +* [make duplicate notes suffix translatable](https://github.com/TriliumNext/Notes/pull/859) by @pano9000 +* improve translatability of database\_backed\_up\_to string by @pano9000 +* translate some buttons in the note tree +* translate a few note map buttons + +## ⬆️ Technical Improvements + +* Library updates + + * force-graph to v1.47.2 + * @highlightjs/cdn-assets to v11.11.1 + * typedoc to v0.27.6 + * jquery.fancytree to v2.38.4 + * katex to v0.16.19 + * @types/node to v22.10.5 + * marked to v15.0.5 + * mind-elixir to v4.3.6 + * better-sqlite3 to v11.8.0 + * CKEditor to 41.3.2 + * jsdom to v26 + * i18next to v24.2.1 + * draggabilly to v3.0.0 + * electron to 33.3.1. + * Node.js for Docker containers: v22.13.0 + * ts-loader: v9.5.2 +* [use existing randomSecureToken function](https://github.com/TriliumNext/Notes/pull/866) by @pano9000 +* use named exports for the utils functions by @pano9000 +* use Set instead of Arrays for faster lookups by @pano9000 +* remove unused 'request' by @pano9000 +* utils/formatDownloadTitle: simplify function by @pano9000 +* remove unused tree-kill dependency by @pano9000 +* [Add timezone and localtime mounts to docker-compose](https://github.com/TriliumNext/Notes/pull/892) by @perfectra1n +* login: simplify JS by @pano9000 +* set password: various smaller fixes by @pano9000 +* use ejs partial for injecting window.glob by @pano9000 +* add prettier as devDep and scripts by @pano9000 +* add override for \*.json tab width to match .editorconfig by @pano9000 +* update deprecated electron packages by @pano9000 +* Add server logging for CKEditor state changes by @process +* refactor(data\_dir): simplify logic and make code robust and testable by @pano9000 +* replace csurf with csrf-csrf by @pano9000 +* refactor(backend\_log): improve getBackendLog by @pano9000 +* fix(views): replace deprecated meta tag by @pano9000 \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.91.4-beta.md b/docs/Release Notes/Release Notes/v0.91.4-beta.md new file mode 100644 index 000000000..7ca46aea0 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.91.4-beta.md @@ -0,0 +1,60 @@ +# v0.91.4-beta +To do before release: + +* Ensure Excalidraw works on desktop build. + +## 💡 Key highlights + +* We now provide binaries to run the server on Linux on ARM without Docker (e.g. on a Raspberry Pi, thanks to @perfectra1n ). +* [Introducing a map note type](https://github.com/TriliumNext/Notes/pull/1017) +* Add ability to set Trilium configuration variables via ENV variables by @pano9000 and @perfectra1n + +## 🐞 Bugfixes + +* [Share: Fix going from child note to parent share root](https://github.com/TriliumNext/Notes/pull/963) +* [Context Menu Keyboard Commands wrap to next line](https://github.com/TriliumNext/Notes/issues/976) +* [Keyboard shortcuts in tree context menu are not in line with menu item](https://github.com/TriliumNext/Notes/issues/685) +* [Canvas/Excalidraw note slows down considerably with many images](https://github.com/TriliumNext/Notes/issues/967) +* [tab context menu on mobile is not accessible](https://github.com/TriliumNext/Notes/issues/969) +* [Code Notes Settings: the "Available MIME Type" list gets corrupted](https://github.com/TriliumNext/Notes/issues/988) +* [Tree Panel: the preferred width resets under certain conditions](https://github.com/TriliumNext/Notes/issues/990) +* [Mind map: the branching side preference is not persisted](https://github.com/TriliumNext/Notes/issues/986) +* HTML Import Strips away "valid" h1 tags by @pano9000 +* [share.js broken on share pages](https://github.com/TriliumNext/Notes/issues/1029) by @pano9000 + +## ✨ Improvements + +* [Add space between "delete all revisions" and ? buttons on Note revision dialog](https://github.com/TriliumNext/Notes/issues/974) +* Improved launch bar on mobile: context menu to move between available and visible, or reset the configuration. +* Enable fixed editing toolbar by default for new users. + +## 🌍 Internationalization + +* Translated some missing messages in Romanian. + +## ⬆️ Technical improvements + +* **Reached zero vulnerabilities in dependencies according to** `**npm audit**` +* Update Electron to 34 +* update dependency fs-extra to v11.3.0 +* update dependency force-graph to v1.49.0 +* update dependency katex to v0.16.21 +* update dependency better-sqlite3 to v11.8.1 +* [set more secure csrf related settings](https://github.com/TriliumNext/Notes/pull/961) by @pano9000 +* get rid of ts-node by @pano9000 +* Fix default ivLength in dump-db tool by @Nriver +* add vitest as test framework and port current tests (& various test improvements) by @pano9000 +* get rid of Webpack Critical dependency warning by @pano9000 +* fix flaky getPlatformAppDataDir test on Windows by @pano9000 +* refactor and add tests for \`services/import/mime\` by @pano9000 +* refactor: compress images by @j9t +* Bump Electron to v34.0.1 +* Bump i18next-http-backend to v3.0.2 +* Bump i18next to v24.2.2 +* Bump electron-forge monorepo to v7.6.1 +* Bump @mind-elixir/node-menu to v1.0.4 +* Docker: update node.js to v22.13.1 +* webpack: add Configuration type +* webpack: add missing share.js entry point +* npm audit fix by @pano9000 +* port desktop and mobile entrypoints by @pano9000 \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.91.5.md b/docs/Release Notes/Release Notes/v0.91.5.md new file mode 100644 index 000000000..40a15152a --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.91.5.md @@ -0,0 +1,301 @@ +# v0.91.5 +## 💡 Key highlights + +* We now provide binaries to run the server on Linux on ARM without Docker (e.g. on a Raspberry Pi, thanks to @perfectra1n ). +* [Introducing a map note type](https://github.com/TriliumNext/Notes/pull/1017) +* Add ability to set Trilium configuration variables via ENV variables by @pano9000 and @perfectra1n +* Quite a few mobile improvements have been done (**kindly waiting for bug reports**) + + * On mobile the horizontal layout (with the launcher bar displayed at the top of the screen instead of on the left side) is now enforced. + * This allows for more real estate for the content of the note and simplifies the mobile layout. + * The launch bar has also been moved at the bottom, to be inline with modern application layouts. + * Restructured the tree as a sidebar which is triggered via a button on the left side of the title bar. + * The sidebar can also be triggered by swiping to the right on the left side of the screen. _Still some quirks to address on both iOS and Android due to their weird back button gesture_. + * Improved the positioning of the bottom bar and of the editor toolbar. + * Tabs have been enabled. Currently we are using the same implementation as on desktop, which might have a few quirks on mobile. + * Jump to note is now available. + * The mobile view now has its own launch bar configuration with its own launch bar buttons. For now only a few have been enabled. **Feel free to request any button from the desktop should you require it.** + * Now it's possible to insert footnotes in CKEditor, thanks to a fork of [ThomasAitken/ckeditor5-footnotes](https://github.com/ThomasAitken/ckeditor5-footnotes). + * It's also possible to create inline Mermaid diagrams into text notes. +* The launcher bar can now be placed at the top instead of the left of the screen, with a full-width tab bar. See [#654](https://github.com/TriliumNext/Notes/pull/654) for more information. +* [A new theme is introduced called “TriliumNext"](https://github.com/TriliumNext/Notes/pull/661) by @adoriandoran and @eliandoran. Settings on this theme are now displayed in a card layout. Redesigned tree action buttons. +* [Native title bar buttons](https://github.com/TriliumNext/Notes/pull/702) when native title bar is off for Windows and macOS. +* On Windows, on the TriliumNext theme there are window transparency effects if running under Windows, see [Mica (Windows transparency effects)](https://github.com/TriliumNext/Notes/pull/717) for screenshots. Unfortunately, it is plagued by a few bugs with Electron (the library we are using for the desktop application), see the link for more information. +* Updated Docker builds to Node 22. **Be on the lookout for any potential issues, especially for less-tested platforms such as ARM.** + +## New in this release (v0.91.5) + +### 🐞 Bugfixes + +* [Import Dialog "Safe Import" Tooltip is cut off](https://github.com/TriliumNext/Notes/issues/1003) +* [Backend Log is not showing on mobile view](https://github.com/TriliumNext/Notes/issues/1058) +* [initial server setup form cannot be sent with enter key](https://github.com/TriliumNext/Notes/issues/94) by @pano9000 + +### ✨ Improvements + +* [Preserve highlighted text's background color when printing](https://github.com/TriliumNext/Notes/issues/905) + +### 🌍 Internationalization + +* … + +### 🛠️ Technical updates + +* update dependency @types/node to v22.12.0 +* Use new type field for GitHub issues by @pano9000 +* chore(client/ts): port setup entrypoint by @pano9000 +* refactor(server/utils): turn isMac/isWin/isElectron/isDev into boolean by @pano9000 +* chore(issue\_templates): add simple Task template by @pano9000 + +## From v0.91.4-beta + +### 🐞 Bugfixes + +* [Share: Fix going from child note to parent share root](https://github.com/TriliumNext/Notes/pull/963) +* [Context Menu Keyboard Commands wrap to next line](https://github.com/TriliumNext/Notes/issues/976) +* [Keyboard shortcuts in tree context menu are not in line with menu item](https://github.com/TriliumNext/Notes/issues/685) +* [Canvas/Excalidraw note slows down considerably with many images](https://github.com/TriliumNext/Notes/issues/967) +* [tab context menu on mobile is not accessible](https://github.com/TriliumNext/Notes/issues/969) +* [Code Notes Settings: the "Available MIME Type" list gets corrupted](https://github.com/TriliumNext/Notes/issues/988) +* [Tree Panel: the preferred width resets under certain conditions](https://github.com/TriliumNext/Notes/issues/990) +* [Mind map: the branching side preference is not persisted](https://github.com/TriliumNext/Notes/issues/986) +* HTML Import Strips away "valid" h1 tags by @pano9000 +* [share.js broken on share pages](https://github.com/TriliumNext/Notes/issues/1029) by @pano9000 + +### ✨ Improvements + +* [Add space between "delete all revisions" and ? buttons on Note revision dialog](https://github.com/TriliumNext/Notes/issues/974) +* Improved launch bar on mobile: context menu to move between available and visible, or reset the configuration. +* Enable fixed editing toolbar by default for new users. + +### 🌍 Internationalization + +* Translated some missing messages in Romanian. + +### ⬆️ Technical improvements + +* **Reached zero vulnerabilities in dependencies according to** `**npm audit**` +* Update Electron to 34 +* update dependency fs-extra to v11.3.0 +* update dependency force-graph to v1.49.0 +* update dependency katex to v0.16.21 +* update dependency better-sqlite3 to v11.8.1 +* [set more secure csrf related settings](https://github.com/TriliumNext/Notes/pull/961) by @pano9000 +* get rid of ts-node by @pano9000 +* Fix default ivLength in dump-db tool by @Nriver +* add vitest as test framework and port current tests (& various test improvements) by @pano9000 +* get rid of Webpack Critical dependency warning by @pano9000 +* fix flaky getPlatformAppDataDir test on Windows by @pano9000 +* refactor and add tests for \`services/import/mime\` by @pano9000 +* refactor: compress images by @j9t +* Bump Electron to v34.0.1 +* Bump i18next-http-backend to v3.0.2 +* Bump i18next to v24.2.2 +* Bump electron-forge monorepo to v7.6.1 +* Bump @mind-elixir/node-menu to v1.0.4 +* Docker: update node.js to v22.13.1 +* webpack: add Configuration type +* webpack: add missing share.js entry point +* npm audit fix by @pano9000 +* port desktop and mobile entrypoints by @pano9000 + +## From v0.91.3-beta + +### 🐞 Bugfixes + +* Prevent HTML from rendering in launcher bar. +* [Calendar overflows off right of view when in mobile view](https://github.com/TriliumNext/Notes/issues/783) +* Note tree context menu not shown on long press on iOS. +* [Advanced tree menu is only accessible in the mobile view via long-press](https://github.com/TriliumNext/Notes/issues/785) +* [NotFoundError after trying to paste filepath into note, restart required](https://github.com/TriliumNext/Notes/issues/881) +* login: fix "flash of unstyled content" by @pano9000 +* [Limit search function doesn't work](https://github.com/TriliumNext/Notes/issues/920) +* [fix ck-editor checkboxes not showing checkmark while printing](https://github.com/TriliumNext/Notes/pull/908) by @pano9000 + +### ✨ Improvements + +* [Syntax Highlighting for Batch scripts](https://github.com/TriliumNext/Notes/issues/830) +* Mobile improvements + + * Translucent top bar mobile layout on iOS + * Display formatting toolbar above keyboard. +* Fonts + + * Grouped the font selection by font type (sans-serif, monospace, etc.). + * Added an option to use the system font (e.g. “Segoe UI” for Windows). +* Display the content of JSON attachments and improve the style of attachment code blocks. +* Translucent top bar on desktop layout for iPad +* ['Show Help' and 'About Trillium Notes' menu options are now available in the mobile view](https://github.com/TriliumNext/Notes/issues/666) +* Back/forward buttons have been enabled for web builds as well, mostly for mobile view. +* [support for RFC 5870 geo-URIs](https://github.com/TriliumNext/Notes/pull/891) by @0Raptor +* login: add Trilium icon and improve style by @pano9000 +* allow disabling mention autocomplete by pressing escape (forward port of @zadam’s work) +* [Restyle the help dialog](https://github.com/TriliumNext/Notes/pull/903) by @adoriandoran +* Added back ESLint support for backend notes +* Exporting JavaScript code blocks in text notes to Markdown now sets the right language tag. + +### 🌍 Internationalization + +* Spanish translation improvements by @hasecilu +* Chinese translation improvements by @Nriver +* [make tags translatable](https://github.com/TriliumNext/Notes/pull/857) by @pano9000 +* [make duplicate notes suffix translatable](https://github.com/TriliumNext/Notes/pull/859) by @pano9000 +* improve translatability of database\_backed\_up\_to string by @pano9000 +* translate some buttons in the note tree +* translate a few note map buttons + +### ⬆️ Technical Improvements + +* Library updates + + * force-graph to v1.47.2 + * @highlightjs/cdn-assets to v11.11.1 + * typedoc to v0.27.6 + * jquery.fancytree to v2.38.4 + * katex to v0.16.19 + * @types/node to v22.10.5 + * marked to v15.0.5 + * mind-elixir to v4.3.6 + * better-sqlite3 to v11.8.0 + * CKEditor to 41.3.2 + * jsdom to v26 + * i18next to v24.2.1 + * draggabilly to v3.0.0 + * electron to 33.3.1. + * Node.js for Docker containers: v22.13.0 + * ts-loader: v9.5.2 +* [use existing randomSecureToken function](https://github.com/TriliumNext/Notes/pull/866) by @pano9000 +* use named exports for the utils functions by @pano9000 +* use Set instead of Arrays for faster lookups by @pano9000 +* remove unused 'request' by @pano9000 +* utils/formatDownloadTitle: simplify function by @pano9000 +* remove unused tree-kill dependency by @pano9000 +* [Add timezone and localtime mounts to docker-compose](https://github.com/TriliumNext/Notes/pull/892) by @perfectra1n +* login: simplify JS by @pano9000 +* set password: various smaller fixes by @pano9000 +* use ejs partial for injecting window.glob by @pano9000 +* add prettier as devDep and scripts by @pano9000 +* add override for \*.json tab width to match .editorconfig by @pano9000 +* update deprecated electron packages by @pano9000 +* Add server logging for CKEditor state changes by @process +* refactor(data\_dir): simplify logic and make code robust and testable by @pano9000 +* replace csurf with csrf-csrf by @pano9000 +* refactor(backend\_log): improve getBackendLog by @pano9000 +* fix(views): replace deprecated meta tag by @pano9000 + +## From v0.91.2-beta + +### 🐞 Bugfixes + +* [Can not toggle notes by clicking on the note's icon in the navigation bar](https://github.com/TriliumNext/Notes/issues/812) +* [Cannot arrow down to "full search" when no search results are returned in quick search](https://github.com/TriliumNext/Notes/issues/798) +* [Toolbar tooltips no longer shown](https://github.com/TriliumNext/Notes/issues/795) +* [Two help pages will be opened when the help button is clicked](https://github.com/TriliumNext/Notes/issues/570) + +### ✨ Improvements + +* [fix typo Trillium](https://github.com/TriliumNext/Notes/pull/799) by @pano9000 +* [Libraries in Excalidraw are broken](https://github.com/TriliumNext/Notes/pull/787) by @CobriMediaJulien +* [Color scheme selection](https://github.com/TriliumNext/Notes/pull/800) by @adoriandoran +* [Style Next: Restyle the "Jump to Note" dialog](https://github.com/TriliumNext/Notes/pull/802) by @adoriandoran +* Exporting a Markdown file will now try to preserve syntax highlighting +* [Auto-show left panel when configuring launchbar](https://github.com/TriliumNext/Notes/issues/779) +* [Accessibility: explicitly associate label and input elements](https://github.com/TriliumNext/Notes/pull/813) by @pano9000 + +### 🌍 Internationalization + +* Spanish improvements by @hasecilu +* [localize hardcoded English aria-labels](https://github.com/TriliumNext/Notes/pull/801) by @pano9000 +* Translate new note title + +### ⬆️ Library updates + +* typedoc: v0.27.5 +* highlightjs: v11.11.0 +* marked: v15.0.4 +* express-rate-limit to v7.5.0 +* chokidar: 4.0.3 +* katex: v0.16.18 +* sanitize-html: v2.14.0 +* webpack-cli: v5.1.4 → v6.0.1 +* i18next: v24.2.0 +* @braintree/sanitize-url: v7.1.1 + +## From v0.91.1-beta + +### 🐞 Bugfixes + +* [Syntax highlight in code blocks only in edit mode](https://github.com/TriliumNext/Notes/issues/668) +* To do lists not preserved on safe import. +* [File type video with emoji in name will break the preview](https://github.com/TriliumNext/Notes/issues/757) +* [Attribute "jump to" for internal links not working anymore](https://github.com/TriliumNext/Notes/issues/732) + +### ✨ Improvements + +* [Add label definition type for standalone time](https://github.com/TriliumNext/Notes/pull/653) by @mm21 +* [Remove resizer from backend log text area](https://github.com/TriliumNext/Notes/pull/670) by @meichthys +* Use CodeMirror for backend log +* Support for ELK layout in Mermaid diagrams (sponsored by @perfectra1n). See the relevant “ELK layout engine” in [missing note] for more information. +* [Make exact matches rise higher up in search](https://github.com/TriliumNext/Notes/pull/678) by @perfectra1n +* [Change layout of promoted attributes](https://github.com/TriliumNext/Notes/pull/538) +* [Add full text search in autocomplete](https://github.com/TriliumNext/Notes/pull/659) by @SiriusXT +* [Importing single HTML file: prefer html title over filename](https://github.com/TriliumNext/Notes/pull/598) by @maphew +* [Support page breaks for printing](https://github.com/TriliumNext/Notes/pull/692) +* [user configurable list of allowed html tags in import](https://github.com/TriliumNext/Notes/pull/601) by @maphew +* General HTML support; now the editor supports more HTML tags and displays them appropriately. + + * Currently the import function is the only way to benefit from them, or modifying the source code manually by changing the note type. +* Change default icons for “Go to Previous Note” and “Go to next note” launcher buttons. +* Move toggle sidebar button near tab bar on horizontal layout. +* Mind map notes now are full-width by default (same as Canvas, for example). +* Tabs can now display the icon notes instead of only workspace icons (this is the default behaviour of the TrilumNext theme, can be added to any other theme via `--tab-note-icons: true;` to `:root`). +* [New Features for note map](https://github.com/TriliumNext/Notes/pull/700) by @CobriMediaJulien +* [Add supported link protocols](https://github.com/TriliumNext/Notes/pull/694) by @SiriusXT +* [add Mind Elixir plugin @mind-elixir/node-menu](https://github.com/TriliumNext/Notes/issues/723) +* [Format dates and times](https://github.com/TriliumNext/Notes/pull/741) by @adoriandoran +* [Expose cheerio in backend script api](https://github.com/TriliumNext/Notes/pull/758) by @kleutzinger +* [Format note paths](https://github.com/TriliumNext/Notes/pull/759) by @adoriandoran +* [add remark about UFW issues](https://github.com/TriliumNext/Notes/pull/767) by @pano9000 +* [Code Block language support for Terraform (HCL)](https://github.com/TriliumNext/Notes/issues/739) +* [Display the fixed toolbar on multiple lines](https://github.com/TriliumNext/Notes/issues/729) (adjustable in settings) +* [Hide `internalLink` from `Jump To Note` dialog](https://github.com/TriliumNext/Notes/issues/713) + +### 🌍 Internationalization + +* [Chinese translation improvements (& some new messages translated)](https://github.com/TriliumNext/Notes/pull/673) by @Nriver +* [Add translation for doc notes](https://github.com/TriliumNext/Notes/pull/677) by @Nriver +* [Spanish improvements](https://github.com/TriliumNext/Notes/pull/695/files) by @hasecilu +* [Traditional Chinese support](https://github.com/TriliumNext/Notes/pull/698) by @dwong33 +* Translate import toast messages. +* Translate hidden notes (including options). +* Romanian improvements. +* [Brazillian Portuguese](https://github.com/TriliumNext/Notes/pull/740) by @Nertonm work in progress (only server translations for now) +* Translate note autocomplete. + +### ⬆️ Library updates + +* i18next, i18next-http-backend, i18next-fs-backend +* force-graph v1.47.0 +* express 4.2.12 +* mermaid 11.4.1 +* axios 1.7.9 +* katex 0.16.14 +* https-proxy-agent 7.0.6 +* better-sqlite3 11.6.0 +* electron 31.3.1 -> 33.2.1 +* jimp 0.22.12 -> 1.6.0 +* mind-elixir 4.3.3 +* Development tools + * electron-forge + * Docker Node.js updated to v20.18.1 + * GitHub Actions workflow actions + * webpack v5.97.1 + * TypeScript + types + * yargs + * helmet + * marked 15.0.3 + * is-svg 5.1.0 + * image-type 5.2.0 + * eslint v9.16.0 + * jsdom v25.0.1 + * compression v1.7.5 \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.91.6.md b/docs/Release Notes/Release Notes/v0.91.6.md new file mode 100644 index 000000000..27e831bef --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.91.6.md @@ -0,0 +1,5 @@ +# v0.91.6 +## 🐞 Bugfixes + +* [Full text search not working if there are empty mindmaps](https://github.com/TriliumNext/Notes/issues/1107) +* [Shortcut for Clipboard Pasting not working on Mac](https://github.com/TriliumNext/Notes/issues/1087) \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.92.0-beta.md b/docs/Release Notes/Release Notes/v0.92.0-beta.md new file mode 100644 index 000000000..5d350f3b3 --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.92.0-beta.md @@ -0,0 +1,83 @@ +# v0.92.0-beta +## 💡 Key highlights + +* [Trilium can now export notes as PDF directly, on the desktop version.](https://github.com/TriliumNext/Notes/pull/1091) +* RPM packages for Linux by @pano9000 +* [Flatpak packages for Linux](https://github.com/TriliumNext/Notes/pull/1130) (not yet published to FlatHub) by @pano9000 +* There is now an in-app help that is still work in progress, but it can be triggered by pressing F1. On some note types (e.g. geo map) there is a contextual help button. +* Zen Mode (minimal UI). See in-app help for more details. + +## 🐞 Bugfixes + +* [js error Parsing error: The keyword 'const' is reserved](https://github.com/zadam/trilium/issues/4696) by @lly-c232733 +* [Full Text Search button in quick launch search bar does not work](https://github.com/TriliumNext/Notes/issues/973) by @SiriusXT +* An obscure bug when expanding a note with custom sort where some of the notes did not have the attribute would cause notes to jump around. +* [Weight Tracker doesn't work on new install](https://github.com/zadam/trilium/issues/4892) +* [Markdown export: Fix strikethrough](https://github.com/TriliumNext/Notes/issues/117) +* [TypeScript code files are detected as video/mp2t](https://github.com/TriliumNext/Notes/issues/1142) files by @pano9000 +* disallow text selection in dropdown-menus by @pano9000 +* [Password window remains after opening encrypted notes](https://github.com/TriliumNext/Notes/issues/1078) by @dousha +* [Error when using code blocks in Markdown code notes](https://github.com/TriliumNext/Notes/issues/1164) +* [Numbered bullet is different in Note Revision view](https://github.com/TriliumNext/Notes/issues/1177) +* Missing `etapi.openapi.yaml`. +* [Pressing Enter to "Add link" does not work anymore](https://github.com/TriliumNext/Notes/issues/1100) (thanks to @St0rml) +* [Cannot cancel sharing the root note or the root of a workspace when it's hoisted](https://github.com/TriliumNext/Notes/issues/518) by @dousha +* [Enabling "Enable background effects" does not properly work with dark themes](https://github.com/TriliumNext/Notes/issues/1209) + +## ✨ Improvements + +* [Better styling for various widgets (buttons, input boxes) on the TriliumNext theme](https://github.com/TriliumNext/Notes/pull/1074) & various TriliumNext theme improvements by @adoriandoran +* System tray icon improvements: translations, new buttons ("New note", “Open today's journal note”, “Bookmarks” and “Recent Notes”), and icons. +* Custom Windows installer icon by @Sarah-Hussein +* [Geo map: it's now possible to add .gpx notes as children for the map. Look for the help button in the geo map for more information.](https://github.com/TriliumNext/Notes/issues/1095) +* Geo map: Enable Retina detection for sharper tiles on supported devices. +* Electron: Add "Office" as category for Desktop file by @pano9000 +* Improvements to the note tooltip, including [making the note title clickable](https://github.com/TriliumNext/Notes/issues/1063). +* Render PDFs in full width by default. +* allow setting custom cookiePath by @pano9000 +* [Swagger UI endpoint](https://github.com/TriliumNext/Notes/pull/1144) by @perfectra1n +* [Add support for \`mid:\` URI](https://github.com/TriliumNext/Notes/issues/1160) +* Raw files can now be served in shared tree by changing the URL instead of setting an attribute to the note. See documentation on Shared Notes in the in-app help (press F1). +* [allow setting custom session cookie expiration](https://github.com/TriliumNext/Notes/pull/1156) by @pano9000 +* [friendly number handling for note erasure timeouts](https://github.com/TriliumNext/Notes/pull/1163) by @pano9000 + +## Mobile improvements + +* Configure launch bar now has an always visible tree instead of the sidebar. It's far from perfect, but it should be more usable than the previous implementation. +* The note title is now smaller. +* Added back a few launcher bar items: + * New Note + * Calendar + * [Open Today's Journal Note](https://github.com/TriliumNext/Notes/issues/1105) +* [Recent changes are now available as well as a launch bar item](https://github.com/TriliumNext/Notes/issues/1161). +* Fixed switching and dragging tabs not working. + +## 🌍 Internationalization + +* Spanish improvements by @hasecilu + +## 🛠️ Technical improvements + +* Remove dependency on `semver`. +* Update test dependencies. +* make desktop.ejs easier to read by @pano9000 +* server/utils: add tests and smaller refactors / fixes by @pano9000 +* refactor: electron forge config by @pano9000 +* improve server build release file names by @pano9000 +* Improved the development experience by setting up caches (server & Electron) & auto-reload for Electron +* protected\_session: input improvements by @pano9000 +* remove unused jasmine by @pano9000 +* update dependency electron to v34.2.0 +* update dependency prettier to v3.5.1 +* update dependency mind-elixir to v4.3.7 +* update dependency marked to v15.0.7 +* update dependency typedoc to v0.27.7 +* update dependency compression to v1.8.0 +* update dependency webpack to v5.98.0 +* update node.js to v22.14.0 +* simplify login function and get rid of deprecated usage of expires by @pano9000 +* Automated OpenAPI spec generation by @FliegendeWurst +* remove leftover @types/jasmine by @pano9000 +* fix and enable ex-flaky tests in services/search.spec.ts by @pano9000 +* npm scripts namespacing by @pano9000 +* "unpack" log messages before printing by @pano9000 \ No newline at end of file diff --git a/docs/Release Notes/Release Notes/v0.92.1-beta.md b/docs/Release Notes/Release Notes/v0.92.1-beta.md new file mode 100644 index 000000000..3e79112bc --- /dev/null +++ b/docs/Release Notes/Release Notes/v0.92.1-beta.md @@ -0,0 +1,51 @@ +# v0.92.1-beta +## 💡 Key highlights + +* There are now stricter rules when it comes to importing HTML, where we only allow very few styles (colors, borders, etc.). Should you encounter any issues when importing, try disabling “Safe import” and report any issues you might have. + +## 🐞 Bugfixes + +* Geomap: Viewport and zoom not restored properly when switching between two geomaps. +* [Imported Evernote Enex file overlaps Trilium UI](https://github.com/TriliumNext/Notes/issues/931) + +## ✨ Improvements + +* Web view now renders in browser using an `