Repository: vnotex/vnote Branch: master Commit: 7c59d0d061d3 Files: 1239 Total size: 13.0 MB Directory structure: gitextract_d9rrwo1t/ ├── .clang-format ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows/ │ ├── ci-linux.yml │ ├── ci-macos.yml │ └── ci-win.yml ├── .gitignore ├── .gitmodules ├── AGENTS.md ├── CMakeLists.txt ├── COPYING.LESSER ├── README.md ├── README_zh_CN.md ├── SECURITY.md ├── changes.md ├── libs/ │ └── CMakeLists.txt ├── package/ │ ├── QtWebEngineProcess.entitlements.xml │ ├── entitlements.xml │ ├── lgpl-3.0.rtf │ └── qt.conf ├── privacy_policy.md ├── scripts/ │ ├── init.cmd │ ├── init.sh │ ├── pre-commit │ └── update_version.py ├── src/ │ ├── CMakeLists.txt │ ├── CPackLinuxDeployQt.cmake.in │ ├── CPackMacDeployQt.cmake.in │ ├── Packaging.cmake │ ├── application.cpp │ ├── application.h │ ├── commandlineoptions.cpp │ ├── commandlineoptions.h │ ├── core/ │ │ ├── CMakeLists.txt │ │ ├── buffer/ │ │ │ ├── buffer.cpp │ │ │ ├── buffer.h │ │ │ ├── bufferprovider.cpp │ │ │ ├── bufferprovider.h │ │ │ ├── filebufferprovider.cpp │ │ │ ├── filebufferprovider.h │ │ │ ├── filetypehelper.cpp │ │ │ ├── filetypehelper.h │ │ │ ├── ibufferfactory.h │ │ │ ├── markdownbuffer.cpp │ │ │ ├── markdownbuffer.h │ │ │ ├── markdownbufferfactory.cpp │ │ │ ├── markdownbufferfactory.h │ │ │ ├── mindmapbuffer.cpp │ │ │ ├── mindmapbuffer.h │ │ │ ├── mindmapbufferfactory.cpp │ │ │ ├── mindmapbufferfactory.h │ │ │ ├── nodebufferprovider.cpp │ │ │ ├── nodebufferprovider.h │ │ │ ├── pdfbuffer.cpp │ │ │ ├── pdfbuffer.h │ │ │ ├── pdfbufferfactory.cpp │ │ │ ├── pdfbufferfactory.h │ │ │ ├── textbuffer.cpp │ │ │ ├── textbuffer.h │ │ │ ├── textbufferfactory.cpp │ │ │ ├── textbufferfactory.h │ │ │ └── urlbasedbufferprovider.h │ │ ├── buffermgr.cpp │ │ ├── buffermgr.h │ │ ├── clipboarddata.cpp │ │ ├── clipboarddata.h │ │ ├── configmgr.cpp │ │ ├── configmgr.h │ │ ├── coreconfig.cpp │ │ ├── coreconfig.h │ │ ├── editorconfig.cpp │ │ ├── editorconfig.h │ │ ├── events.h │ │ ├── exception.h │ │ ├── externalfile.cpp │ │ ├── externalfile.h │ │ ├── file.cpp │ │ ├── file.h │ │ ├── filelocator.h │ │ ├── fileopenparameters.h │ │ ├── global.cpp │ │ ├── global.h │ │ ├── historyitem.cpp │ │ ├── historyitem.h │ │ ├── historymgr.cpp │ │ ├── historymgr.h │ │ ├── htmltemplatehelper.cpp │ │ ├── htmltemplatehelper.h │ │ ├── iconfig.h │ │ ├── location.h │ │ ├── logger.cpp │ │ ├── logger.h │ │ ├── mainconfig.cpp │ │ ├── mainconfig.h │ │ ├── markdowneditorconfig.cpp │ │ ├── markdowneditorconfig.h │ │ ├── mindmapeditorconfig.cpp │ │ ├── mindmapeditorconfig.h │ │ ├── namebasedserver.h │ │ ├── noncopyable.h │ │ ├── notebook/ │ │ │ ├── bundlenotebook.cpp │ │ │ ├── bundlenotebook.h │ │ │ ├── bundlenotebookfactory.cpp │ │ │ ├── bundlenotebookfactory.h │ │ │ ├── externalnode.cpp │ │ │ ├── externalnode.h │ │ │ ├── historyi.h │ │ │ ├── inotebookfactory.h │ │ │ ├── node.cpp │ │ │ ├── node.h │ │ │ ├── nodeparameters.cpp │ │ │ ├── nodeparameters.h │ │ │ ├── nodevisual.cpp │ │ │ ├── nodevisual.h │ │ │ ├── notebook.cpp │ │ │ ├── notebook.h │ │ │ ├── notebookdatabaseaccess.cpp │ │ │ ├── notebookdatabaseaccess.h │ │ │ ├── notebookparameters.cpp │ │ │ ├── notebookparameters.h │ │ │ ├── notebooktagmgr.cpp │ │ │ ├── notebooktagmgr.h │ │ │ ├── tag.cpp │ │ │ ├── tag.h │ │ │ ├── tagi.h │ │ │ ├── vxnode.cpp │ │ │ ├── vxnode.h │ │ │ ├── vxnodefile.cpp │ │ │ └── vxnodefile.h │ │ ├── notebookbackend/ │ │ │ ├── inotebookbackend.cpp │ │ │ ├── inotebookbackend.h │ │ │ ├── inotebookbackendfactory.h │ │ │ ├── localnotebookbackend.cpp │ │ │ ├── localnotebookbackend.h │ │ │ ├── localnotebookbackendfactory.cpp │ │ │ └── localnotebookbackendfactory.h │ │ ├── notebookconfigmgr/ │ │ │ ├── bundlenotebookconfigmgr.cpp │ │ │ ├── bundlenotebookconfigmgr.h │ │ │ ├── inotebookconfigmgr.cpp │ │ │ ├── inotebookconfigmgr.h │ │ │ ├── inotebookconfigmgrfactory.h │ │ │ ├── notebookconfig.cpp │ │ │ ├── notebookconfig.h │ │ │ ├── vxnodeconfig.cpp │ │ │ ├── vxnodeconfig.h │ │ │ ├── vxnotebookconfigmgr.cpp │ │ │ ├── vxnotebookconfigmgr.h │ │ │ ├── vxnotebookconfigmgrfactory.cpp │ │ │ └── vxnotebookconfigmgrfactory.h │ │ ├── notebookmgr.cpp │ │ ├── notebookmgr.h │ │ ├── pdfviewerconfig.cpp │ │ ├── pdfviewerconfig.h │ │ ├── quickaccesshelper.cpp │ │ ├── quickaccesshelper.h │ │ ├── sessionconfig.cpp │ │ ├── sessionconfig.h │ │ ├── singleinstanceguard.cpp │ │ ├── singleinstanceguard.h │ │ ├── templatemgr.cpp │ │ ├── templatemgr.h │ │ ├── texteditorconfig.cpp │ │ ├── texteditorconfig.h │ │ ├── theme.cpp │ │ ├── theme.h │ │ ├── thememgr.cpp │ │ ├── thememgr.h │ │ ├── versioncontroller/ │ │ │ ├── dummyversioncontroller.cpp │ │ │ ├── dummyversioncontroller.h │ │ │ ├── dummyversioncontrollerfactory.cpp │ │ │ ├── dummyversioncontrollerfactory.h │ │ │ ├── iversioncontroller.h │ │ │ ├── iversioncontrollerfactory.h │ │ │ ├── versioncontrollerserver.cpp │ │ │ └── versioncontrollerserver.h │ │ ├── vnotex.cpp │ │ ├── vnotex.h │ │ ├── webresource.h │ │ ├── widgetconfig.cpp │ │ └── widgetconfig.h │ ├── data/ │ │ ├── core/ │ │ │ ├── Info.plist │ │ │ ├── core.qrc │ │ │ ├── fun.vnote.app.VNote.metainfo.xml │ │ │ ├── icons/ │ │ │ │ ├── vnote.icns │ │ │ │ └── vnote.rc │ │ │ ├── translations/ │ │ │ │ ├── qdialogbuttonbox_zh_CN.qm │ │ │ │ ├── qtbase_ja.qm │ │ │ │ ├── qtbase_zh_CN.qm │ │ │ │ ├── qtv_ja.qm │ │ │ │ ├── qtv_zh_CN.qm │ │ │ │ ├── qwebengine_zh_CN.qm │ │ │ │ ├── vnote_ja.ts │ │ │ │ └── vnote_zh_CN.ts │ │ │ ├── vnote.desktop │ │ │ └── vnotex.json │ │ └── extra/ │ │ ├── dicts/ │ │ │ ├── en_US.aff │ │ │ └── en_US.dic │ │ ├── docs/ │ │ │ ├── en/ │ │ │ │ ├── about_vnotex.txt │ │ │ │ ├── external_programs.md │ │ │ │ ├── features_tips.txt │ │ │ │ ├── get_started.txt │ │ │ │ ├── markdown_guide.md │ │ │ │ ├── shortcuts.md │ │ │ │ └── welcome.md │ │ │ └── zh_CN/ │ │ │ ├── about_vnotex.txt │ │ │ ├── external_programs.md │ │ │ ├── features_tips.txt │ │ │ ├── get_started.txt │ │ │ ├── markdown_guide.md │ │ │ ├── shortcuts.md │ │ │ └── welcome.md │ │ ├── extra.qrc │ │ ├── syntax-highlighting/ │ │ │ ├── syntax/ │ │ │ │ ├── 4dos.xml │ │ │ │ ├── abap.xml │ │ │ │ ├── abc.xml │ │ │ │ ├── actionscript.xml │ │ │ │ ├── ada.xml │ │ │ │ ├── adblock.xml │ │ │ │ ├── agda.xml │ │ │ │ ├── ahdl.xml │ │ │ │ ├── ahk.xml │ │ │ │ ├── alert.xml │ │ │ │ ├── ample.xml │ │ │ │ ├── ansforth94.xml │ │ │ │ ├── ansic89.xml │ │ │ │ ├── ansys.xml │ │ │ │ ├── apache.xml │ │ │ │ ├── apparmor.xml │ │ │ │ ├── asciidoc.xml │ │ │ │ ├── asm-avr.xml │ │ │ │ ├── asm-dsp56k.xml │ │ │ │ ├── asm-m68k.xml │ │ │ │ ├── asm6502.xml │ │ │ │ ├── asn1.xml │ │ │ │ ├── asp.xml │ │ │ │ ├── awk.xml │ │ │ │ ├── bash.xml │ │ │ │ ├── bibtex.xml │ │ │ │ ├── bitbake.xml │ │ │ │ ├── bmethod.xml │ │ │ │ ├── boo.xml │ │ │ │ ├── brightscript.xml │ │ │ │ ├── c.xml │ │ │ │ ├── carto-css.xml │ │ │ │ ├── ccss.xml │ │ │ │ ├── cg.xml │ │ │ │ ├── cgis.xml │ │ │ │ ├── changelog.xml │ │ │ │ ├── chicken.xml │ │ │ │ ├── cil.xml │ │ │ │ ├── cisco.xml │ │ │ │ ├── clipper.xml │ │ │ │ ├── clist.xml │ │ │ │ ├── clojure.xml │ │ │ │ ├── cmake.xml │ │ │ │ ├── coffee.xml │ │ │ │ ├── coldfusion.xml │ │ │ │ ├── commonlisp.xml │ │ │ │ ├── component-pascal.xml │ │ │ │ ├── context.xml │ │ │ │ ├── cpp.xml │ │ │ │ ├── crk.xml │ │ │ │ ├── cs.xml │ │ │ │ ├── css.xml │ │ │ │ ├── cubescript.xml │ │ │ │ ├── cue.xml │ │ │ │ ├── curry.xml │ │ │ │ ├── d.xml │ │ │ │ ├── debianchangelog.xml │ │ │ │ ├── debiancontrol.xml │ │ │ │ ├── desktop.xml │ │ │ │ ├── diff.xml │ │ │ │ ├── djangotemplate.xml │ │ │ │ ├── dockerfile.xml │ │ │ │ ├── dosbat.xml │ │ │ │ ├── dot.xml │ │ │ │ ├── doxyfile.xml │ │ │ │ ├── doxygen.xml │ │ │ │ ├── doxygenlua.xml │ │ │ │ ├── dtd.xml │ │ │ │ ├── e.xml │ │ │ │ ├── eiffel.xml │ │ │ │ ├── elixir.xml │ │ │ │ ├── elm.xml │ │ │ │ ├── email.xml │ │ │ │ ├── erlang.xml │ │ │ │ ├── euphoria.xml │ │ │ │ ├── fasm.xml │ │ │ │ ├── fastq.xml │ │ │ │ ├── ferite.xml │ │ │ │ ├── fgl-4gl.xml │ │ │ │ ├── fgl-per.xml │ │ │ │ ├── fish.xml │ │ │ │ ├── flatbuffers.xml │ │ │ │ ├── fortran-fixed.xml │ │ │ │ ├── fortran-free.xml │ │ │ │ ├── freebasic.xml │ │ │ │ ├── fsharp.xml │ │ │ │ ├── fstab.xml │ │ │ │ ├── ftl.xml │ │ │ │ ├── gap.xml │ │ │ │ ├── gcc.xml │ │ │ │ ├── gcode.xml │ │ │ │ ├── gdb-bt.xml │ │ │ │ ├── gdb.xml │ │ │ │ ├── gdbinit.xml │ │ │ │ ├── gdl.xml │ │ │ │ ├── gettext.xml │ │ │ │ ├── git-ignore.xml │ │ │ │ ├── git-rebase.xml │ │ │ │ ├── gitolite.xml │ │ │ │ ├── glosstex.xml │ │ │ │ ├── glsl.xml │ │ │ │ ├── gnuassembler.xml │ │ │ │ ├── gnuplot.xml │ │ │ │ ├── go.xml │ │ │ │ ├── grammar.xml │ │ │ │ ├── groovy.xml │ │ │ │ ├── haml.xml │ │ │ │ ├── hamlet.xml │ │ │ │ ├── haskell.xml │ │ │ │ ├── haxe.xml │ │ │ │ ├── html.xml │ │ │ │ ├── hunspell-aff.xml │ │ │ │ ├── hunspell-dat.xml │ │ │ │ ├── hunspell-dic.xml │ │ │ │ ├── hunspell-idx.xml │ │ │ │ ├── idconsole.xml │ │ │ │ ├── idl.xml │ │ │ │ ├── ilerpg.xml │ │ │ │ ├── inform.xml │ │ │ │ ├── ini.xml │ │ │ │ ├── intelhex.xml │ │ │ │ ├── isocpp.xml │ │ │ │ ├── j.xml │ │ │ │ ├── jam.xml │ │ │ │ ├── java.xml │ │ │ │ ├── javadoc.xml │ │ │ │ ├── javascript-react.xml │ │ │ │ ├── javascript.xml │ │ │ │ ├── jcl.xml │ │ │ │ ├── jira.xml │ │ │ │ ├── json.xml │ │ │ │ ├── jsp.xml │ │ │ │ ├── julia.xml │ │ │ │ ├── k.xml │ │ │ │ ├── kbasic.xml │ │ │ │ ├── kconfig.xml │ │ │ │ ├── kdesrc-buildrc.xml │ │ │ │ ├── kotlin.xml │ │ │ │ ├── latex.xml │ │ │ │ ├── ld.xml │ │ │ │ ├── ldif.xml │ │ │ │ ├── less.xml │ │ │ │ ├── lex.xml │ │ │ │ ├── lilypond.xml │ │ │ │ ├── literate-curry.xml │ │ │ │ ├── literate-haskell.xml │ │ │ │ ├── logcat.xml │ │ │ │ ├── logtalk.xml │ │ │ │ ├── lpc.xml │ │ │ │ ├── lsl.xml │ │ │ │ ├── lua.xml │ │ │ │ ├── m3u.xml │ │ │ │ ├── m4.xml │ │ │ │ ├── mab.xml │ │ │ │ ├── magma.xml │ │ │ │ ├── makefile.xml │ │ │ │ ├── mako.xml │ │ │ │ ├── mandoc.xml │ │ │ │ ├── markdown.xml │ │ │ │ ├── mason.xml │ │ │ │ ├── mathematica.xml │ │ │ │ ├── matlab.xml │ │ │ │ ├── maxima.xml │ │ │ │ ├── mediawiki.xml │ │ │ │ ├── mel.xml │ │ │ │ ├── mergetagtext.xml │ │ │ │ ├── meson.xml │ │ │ │ ├── metafont.xml │ │ │ │ ├── metamath.xml │ │ │ │ ├── mib.xml │ │ │ │ ├── mips.xml │ │ │ │ ├── modelica.xml │ │ │ │ ├── modelines.xml │ │ │ │ ├── modula-2-iso-only.xml │ │ │ │ ├── modula-2-pim-only.xml │ │ │ │ ├── modula-2-r10-only.xml │ │ │ │ ├── modula-2.xml │ │ │ │ ├── monobasic.xml │ │ │ │ ├── mup.xml │ │ │ │ ├── mustache.xml │ │ │ │ ├── nagios.xml │ │ │ │ ├── nasm.xml │ │ │ │ ├── nemerle.xml │ │ │ │ ├── nesc.xml │ │ │ │ ├── ninja.xml │ │ │ │ ├── noweb.xml │ │ │ │ ├── nsis.xml │ │ │ │ ├── objectivec.xml │ │ │ │ ├── objectivecpp.xml │ │ │ │ ├── ocaml.xml │ │ │ │ ├── ocamllex.xml │ │ │ │ ├── ocamlyacc.xml │ │ │ │ ├── octave.xml │ │ │ │ ├── oors.xml │ │ │ │ ├── opal.xml │ │ │ │ ├── opencl.xml │ │ │ │ ├── openscad.xml │ │ │ │ ├── pango.xml │ │ │ │ ├── pascal.xml │ │ │ │ ├── perl.xml │ │ │ │ ├── pgn.xml │ │ │ │ ├── php.xml │ │ │ │ ├── picsrc.xml │ │ │ │ ├── pig.xml │ │ │ │ ├── pike.xml │ │ │ │ ├── pli.xml │ │ │ │ ├── ply.xml │ │ │ │ ├── pony.xml │ │ │ │ ├── postscript.xml │ │ │ │ ├── povray.xml │ │ │ │ ├── powershell.xml │ │ │ │ ├── ppd.xml │ │ │ │ ├── praat.xml │ │ │ │ ├── progress.xml │ │ │ │ ├── prolog.xml │ │ │ │ ├── protobuf.xml │ │ │ │ ├── pug.xml │ │ │ │ ├── puppet.xml │ │ │ │ ├── purebasic.xml │ │ │ │ ├── python.xml │ │ │ │ ├── q.xml │ │ │ │ ├── qdocconf.xml │ │ │ │ ├── qmake.xml │ │ │ │ ├── qml.xml │ │ │ │ ├── r.xml │ │ │ │ ├── rapidq.xml │ │ │ │ ├── rdoc.xml │ │ │ │ ├── relaxng.xml │ │ │ │ ├── relaxngcompact.xml │ │ │ │ ├── replicode.xml │ │ │ │ ├── rest.xml │ │ │ │ ├── rexx.xml │ │ │ │ ├── rhtml.xml │ │ │ │ ├── rib.xml │ │ │ │ ├── rmarkdown.xml │ │ │ │ ├── roff.xml │ │ │ │ ├── rpmspec.xml │ │ │ │ ├── rsiidl.xml │ │ │ │ ├── rtf.xml │ │ │ │ ├── ruby.xml │ │ │ │ ├── rust.xml │ │ │ │ ├── sass.xml │ │ │ │ ├── sather.xml │ │ │ │ ├── scala.xml │ │ │ │ ├── scheme.xml │ │ │ │ ├── sci.xml │ │ │ │ ├── scss.xml │ │ │ │ ├── sed.xml │ │ │ │ ├── selinux-cil.xml │ │ │ │ ├── selinux-fc.xml │ │ │ │ ├── selinux.xml │ │ │ │ ├── sgml.xml │ │ │ │ ├── sieve.xml │ │ │ │ ├── sisu.xml │ │ │ │ ├── smali.xml │ │ │ │ ├── sml.xml │ │ │ │ ├── spice.xml │ │ │ │ ├── sql-mysql.xml │ │ │ │ ├── sql-oracle.xml │ │ │ │ ├── sql-postgresql.xml │ │ │ │ ├── sql.xml │ │ │ │ ├── stan.xml │ │ │ │ ├── stata.xml │ │ │ │ ├── stl.xml │ │ │ │ ├── systemc.xml │ │ │ │ ├── systemverilog.xml │ │ │ │ ├── tads3.xml │ │ │ │ ├── taskjuggler.xml │ │ │ │ ├── tcl.xml │ │ │ │ ├── tcsh.xml │ │ │ │ ├── template-toolkit.xml │ │ │ │ ├── texinfo.xml │ │ │ │ ├── textile.xml │ │ │ │ ├── tibasic.xml │ │ │ │ ├── tiger.xml │ │ │ │ ├── toml.xml │ │ │ │ ├── txt2tags.xml │ │ │ │ ├── typescript-react.xml │ │ │ │ ├── typescript.xml │ │ │ │ ├── uscript.xml │ │ │ │ ├── vala.xml │ │ │ │ ├── valgrind-suppression.xml │ │ │ │ ├── varnish.xml │ │ │ │ ├── varnish4.xml │ │ │ │ ├── varnishcc.xml │ │ │ │ ├── varnishcc4.xml │ │ │ │ ├── varnishtest.xml │ │ │ │ ├── varnishtest4.xml │ │ │ │ ├── vcard.xml │ │ │ │ ├── velocity.xml │ │ │ │ ├── vera.xml │ │ │ │ ├── verilog.xml │ │ │ │ ├── vhdl.xml │ │ │ │ ├── vrml.xml │ │ │ │ ├── wavefront-obj.xml │ │ │ │ ├── wayland-trace.xml │ │ │ │ ├── winehq.xml │ │ │ │ ├── wml.xml │ │ │ │ ├── xharbour.xml │ │ │ │ ├── xml.xml │ │ │ │ ├── xmldebug.xml │ │ │ │ ├── xonotic-console.xml │ │ │ │ ├── xorg.xml │ │ │ │ ├── xslt.xml │ │ │ │ ├── xul.xml │ │ │ │ ├── yacas.xml │ │ │ │ ├── yacc.xml │ │ │ │ ├── yaml.xml │ │ │ │ ├── yang.xml │ │ │ │ ├── zonnon.xml │ │ │ │ └── zsh.xml │ │ │ └── themes/ │ │ │ ├── breeze-dark.theme │ │ │ ├── default.theme │ │ │ ├── markdown-breeze-dark.theme │ │ │ ├── markdown-default.theme │ │ │ ├── printing.theme │ │ │ ├── solarized-dark.theme │ │ │ ├── solarized-light.theme │ │ │ └── vscode-dark.theme │ │ ├── tasks/ │ │ │ └── git/ │ │ │ └── git.json │ │ ├── themes/ │ │ │ ├── moonlight/ │ │ │ │ ├── highlight.css │ │ │ │ ├── interface.qss │ │ │ │ ├── palette.json │ │ │ │ ├── text-editor.theme │ │ │ │ └── web.css │ │ │ ├── native/ │ │ │ │ ├── highlight.css │ │ │ │ ├── interface.qss │ │ │ │ ├── palette.json │ │ │ │ ├── text-editor.theme │ │ │ │ └── web.css │ │ │ ├── pure/ │ │ │ │ ├── highlight.css │ │ │ │ ├── interface.qss │ │ │ │ ├── palette.json │ │ │ │ ├── text-editor.theme │ │ │ │ └── web.css │ │ │ ├── solarized-dark/ │ │ │ │ ├── highlight.css │ │ │ │ ├── interface.qss │ │ │ │ ├── palette.json │ │ │ │ ├── text-editor.theme │ │ │ │ └── web.css │ │ │ ├── solarized-light/ │ │ │ │ ├── highlight.css │ │ │ │ ├── interface.qss │ │ │ │ ├── palette.json │ │ │ │ ├── text-editor.theme │ │ │ │ └── web.css │ │ │ ├── vscode-dark/ │ │ │ │ ├── highlight.css │ │ │ │ ├── interface.qss │ │ │ │ ├── palette.json │ │ │ │ ├── readme.md │ │ │ │ ├── text-editor.theme │ │ │ │ └── web.css │ │ │ ├── vue-dark/ │ │ │ │ ├── highlight.css │ │ │ │ ├── interface.qss │ │ │ │ ├── palette.json │ │ │ │ ├── text-editor.theme │ │ │ │ └── web.css │ │ │ ├── vue-light/ │ │ │ │ ├── highlight.css │ │ │ │ ├── interface.qss │ │ │ │ ├── palette.json │ │ │ │ ├── text-editor.theme │ │ │ │ └── web.css │ │ │ └── vx-idea/ │ │ │ ├── README.md │ │ │ ├── code_highlight/ │ │ │ │ ├── highlight-dark.css │ │ │ │ └── highlight-one-light.css │ │ │ ├── highlight.css │ │ │ ├── interface.qss │ │ │ ├── palette.json │ │ │ ├── text-editor.theme │ │ │ ├── tips_components/ │ │ │ │ └── sytle.css │ │ │ └── web.css │ │ └── web/ │ │ ├── css/ │ │ │ ├── exportglobalstyles.css │ │ │ ├── globalstyles.css │ │ │ ├── imageviewer.css │ │ │ ├── markdownit.css │ │ │ ├── outline.css │ │ │ └── user.css │ │ ├── js/ │ │ │ ├── computed-style-to-inline-style.js │ │ │ ├── crosscopy.js │ │ │ ├── easyaccess.js │ │ │ ├── eventemitter.js │ │ │ ├── flowchart.js/ │ │ │ │ └── README.md │ │ │ ├── flowchartjs.js │ │ │ ├── graphcache.js │ │ │ ├── graphpreviewer.js │ │ │ ├── graphrenderer.js │ │ │ ├── graphviz.js │ │ │ ├── imageviewer.js │ │ │ ├── lrucache.js │ │ │ ├── mark.js/ │ │ │ │ └── README.md │ │ │ ├── markdown-it/ │ │ │ │ ├── README.md │ │ │ │ ├── markdown-it-front-matter.js │ │ │ │ ├── markdown-it-implicit-figure.js │ │ │ │ ├── markdown-it-inject-linenumbers.js │ │ │ │ ├── markdown-it-task-lists.js │ │ │ │ ├── markdown-it-texmath.js │ │ │ │ ├── markdown-it-xss.js │ │ │ │ ├── markdownItAnchor.umd.js │ │ │ │ └── markdownItTocDoneRight.umd.js │ │ │ ├── markdownit.js │ │ │ ├── markdownviewer.js │ │ │ ├── markdownviewercore.js │ │ │ ├── markjs.js │ │ │ ├── mathjax.js │ │ │ ├── mermaid/ │ │ │ │ └── README.md │ │ │ ├── mermaid.js │ │ │ ├── mindmap/ │ │ │ │ ├── core/ │ │ │ │ │ └── mindmap-core.js │ │ │ │ ├── features/ │ │ │ │ │ ├── link-handler/ │ │ │ │ │ │ └── link-handler.js │ │ │ │ │ └── outline/ │ │ │ │ │ └── outline.js │ │ │ │ ├── lib/ │ │ │ │ │ └── mind-elixir/ │ │ │ │ │ ├── MindElixir.js │ │ │ │ │ └── README.md │ │ │ │ └── mindmap-readme.md │ │ │ ├── mindmapeditor.js │ │ │ ├── nodelinemapper.js │ │ │ ├── outline.js │ │ │ ├── plantuml/ │ │ │ │ ├── README.md │ │ │ │ └── synchro2.js │ │ │ ├── plantuml.js │ │ │ ├── prism/ │ │ │ │ └── README.md │ │ │ ├── prism.js │ │ │ ├── qwebchannel.js │ │ │ ├── svg-to-image.js │ │ │ ├── turndown/ │ │ │ │ ├── README.md │ │ │ │ ├── turndown-plugin-gfm.js │ │ │ │ └── turndown.js │ │ │ ├── turndown.js │ │ │ ├── utils.js │ │ │ ├── viz.js/ │ │ │ │ ├── README.md │ │ │ │ ├── lite.render.js │ │ │ │ └── viz.js │ │ │ ├── vxcore.js │ │ │ ├── vxworker.js │ │ │ ├── wavedrom/ │ │ │ │ ├── README.md │ │ │ │ └── theme-default.js │ │ │ └── wavedrom.js │ │ ├── markdown-export-template.html │ │ ├── markdown-viewer-template.html │ │ ├── mindmap-editor-template.html │ │ └── pdf.js/ │ │ ├── README.md │ │ ├── pdfviewer.css │ │ ├── pdfviewer.js │ │ ├── pdfviewercore.js │ │ └── web/ │ │ ├── cmaps/ │ │ │ ├── 78-EUC-H.bcmap │ │ │ ├── 78-EUC-V.bcmap │ │ │ ├── 78-H.bcmap │ │ │ ├── 78-RKSJ-H.bcmap │ │ │ ├── 78-RKSJ-V.bcmap │ │ │ ├── 78-V.bcmap │ │ │ ├── 78ms-RKSJ-H.bcmap │ │ │ ├── 78ms-RKSJ-V.bcmap │ │ │ ├── 83pv-RKSJ-H.bcmap │ │ │ ├── 90ms-RKSJ-H.bcmap │ │ │ ├── 90ms-RKSJ-V.bcmap │ │ │ ├── 90msp-RKSJ-H.bcmap │ │ │ ├── 90msp-RKSJ-V.bcmap │ │ │ ├── 90pv-RKSJ-H.bcmap │ │ │ ├── 90pv-RKSJ-V.bcmap │ │ │ ├── Add-H.bcmap │ │ │ ├── Add-RKSJ-H.bcmap │ │ │ ├── Add-RKSJ-V.bcmap │ │ │ ├── Add-V.bcmap │ │ │ ├── Adobe-CNS1-0.bcmap │ │ │ ├── Adobe-CNS1-1.bcmap │ │ │ ├── Adobe-CNS1-2.bcmap │ │ │ ├── Adobe-CNS1-3.bcmap │ │ │ ├── Adobe-CNS1-4.bcmap │ │ │ ├── Adobe-CNS1-5.bcmap │ │ │ ├── Adobe-CNS1-6.bcmap │ │ │ ├── Adobe-CNS1-UCS2.bcmap │ │ │ ├── Adobe-GB1-0.bcmap │ │ │ ├── Adobe-GB1-1.bcmap │ │ │ ├── Adobe-GB1-2.bcmap │ │ │ ├── Adobe-GB1-3.bcmap │ │ │ ├── Adobe-GB1-4.bcmap │ │ │ ├── Adobe-GB1-5.bcmap │ │ │ ├── Adobe-GB1-UCS2.bcmap │ │ │ ├── Adobe-Japan1-0.bcmap │ │ │ ├── Adobe-Japan1-1.bcmap │ │ │ ├── Adobe-Japan1-2.bcmap │ │ │ ├── Adobe-Japan1-3.bcmap │ │ │ ├── Adobe-Japan1-4.bcmap │ │ │ ├── Adobe-Japan1-5.bcmap │ │ │ ├── Adobe-Japan1-6.bcmap │ │ │ ├── Adobe-Japan1-UCS2.bcmap │ │ │ ├── Adobe-Korea1-0.bcmap │ │ │ ├── Adobe-Korea1-1.bcmap │ │ │ ├── Adobe-Korea1-2.bcmap │ │ │ ├── Adobe-Korea1-UCS2.bcmap │ │ │ ├── B5-H.bcmap │ │ │ ├── B5-V.bcmap │ │ │ ├── B5pc-H.bcmap │ │ │ ├── B5pc-V.bcmap │ │ │ ├── CNS-EUC-H.bcmap │ │ │ ├── CNS-EUC-V.bcmap │ │ │ ├── CNS1-H.bcmap │ │ │ ├── CNS1-V.bcmap │ │ │ ├── CNS2-H.bcmap │ │ │ ├── CNS2-V.bcmap │ │ │ ├── ETHK-B5-H.bcmap │ │ │ ├── ETHK-B5-V.bcmap │ │ │ ├── ETen-B5-H.bcmap │ │ │ ├── ETen-B5-V.bcmap │ │ │ ├── ETenms-B5-H.bcmap │ │ │ ├── ETenms-B5-V.bcmap │ │ │ ├── EUC-H.bcmap │ │ │ ├── EUC-V.bcmap │ │ │ ├── Ext-H.bcmap │ │ │ ├── Ext-RKSJ-H.bcmap │ │ │ ├── Ext-RKSJ-V.bcmap │ │ │ ├── Ext-V.bcmap │ │ │ ├── GB-EUC-H.bcmap │ │ │ ├── GB-EUC-V.bcmap │ │ │ ├── GB-H.bcmap │ │ │ ├── GB-V.bcmap │ │ │ ├── GBK-EUC-H.bcmap │ │ │ ├── GBK-EUC-V.bcmap │ │ │ ├── GBK2K-H.bcmap │ │ │ ├── GBK2K-V.bcmap │ │ │ ├── GBKp-EUC-H.bcmap │ │ │ ├── GBKp-EUC-V.bcmap │ │ │ ├── GBT-EUC-H.bcmap │ │ │ ├── GBT-EUC-V.bcmap │ │ │ ├── GBT-H.bcmap │ │ │ ├── GBT-V.bcmap │ │ │ ├── GBTpc-EUC-H.bcmap │ │ │ ├── GBTpc-EUC-V.bcmap │ │ │ ├── GBpc-EUC-H.bcmap │ │ │ ├── GBpc-EUC-V.bcmap │ │ │ ├── H.bcmap │ │ │ ├── HKdla-B5-H.bcmap │ │ │ ├── HKdla-B5-V.bcmap │ │ │ ├── HKdlb-B5-H.bcmap │ │ │ ├── HKdlb-B5-V.bcmap │ │ │ ├── HKgccs-B5-H.bcmap │ │ │ ├── HKgccs-B5-V.bcmap │ │ │ ├── HKm314-B5-H.bcmap │ │ │ ├── HKm314-B5-V.bcmap │ │ │ ├── HKm471-B5-H.bcmap │ │ │ ├── HKm471-B5-V.bcmap │ │ │ ├── HKscs-B5-H.bcmap │ │ │ ├── HKscs-B5-V.bcmap │ │ │ ├── Hankaku.bcmap │ │ │ ├── Hiragana.bcmap │ │ │ ├── KSC-EUC-H.bcmap │ │ │ ├── KSC-EUC-V.bcmap │ │ │ ├── KSC-H.bcmap │ │ │ ├── KSC-Johab-H.bcmap │ │ │ ├── KSC-Johab-V.bcmap │ │ │ ├── KSC-V.bcmap │ │ │ ├── KSCms-UHC-H.bcmap │ │ │ ├── KSCms-UHC-HW-H.bcmap │ │ │ ├── KSCms-UHC-HW-V.bcmap │ │ │ ├── KSCms-UHC-V.bcmap │ │ │ ├── KSCpc-EUC-H.bcmap │ │ │ ├── KSCpc-EUC-V.bcmap │ │ │ ├── Katakana.bcmap │ │ │ ├── LICENSE │ │ │ ├── NWP-H.bcmap │ │ │ ├── NWP-V.bcmap │ │ │ ├── RKSJ-H.bcmap │ │ │ ├── RKSJ-V.bcmap │ │ │ ├── Roman.bcmap │ │ │ ├── UniCNS-UCS2-H.bcmap │ │ │ ├── UniCNS-UCS2-V.bcmap │ │ │ ├── UniCNS-UTF16-H.bcmap │ │ │ ├── UniCNS-UTF16-V.bcmap │ │ │ ├── UniCNS-UTF32-H.bcmap │ │ │ ├── UniCNS-UTF32-V.bcmap │ │ │ ├── UniCNS-UTF8-H.bcmap │ │ │ ├── UniCNS-UTF8-V.bcmap │ │ │ ├── UniGB-UCS2-H.bcmap │ │ │ ├── UniGB-UCS2-V.bcmap │ │ │ ├── UniGB-UTF16-H.bcmap │ │ │ ├── UniGB-UTF16-V.bcmap │ │ │ ├── UniGB-UTF32-H.bcmap │ │ │ ├── UniGB-UTF32-V.bcmap │ │ │ ├── UniGB-UTF8-H.bcmap │ │ │ ├── UniGB-UTF8-V.bcmap │ │ │ ├── UniJIS-UCS2-H.bcmap │ │ │ ├── UniJIS-UCS2-HW-H.bcmap │ │ │ ├── UniJIS-UCS2-HW-V.bcmap │ │ │ ├── UniJIS-UCS2-V.bcmap │ │ │ ├── UniJIS-UTF16-H.bcmap │ │ │ ├── UniJIS-UTF16-V.bcmap │ │ │ ├── UniJIS-UTF32-H.bcmap │ │ │ ├── UniJIS-UTF32-V.bcmap │ │ │ ├── UniJIS-UTF8-H.bcmap │ │ │ ├── UniJIS-UTF8-V.bcmap │ │ │ ├── UniJIS2004-UTF16-H.bcmap │ │ │ ├── UniJIS2004-UTF16-V.bcmap │ │ │ ├── UniJIS2004-UTF32-H.bcmap │ │ │ ├── UniJIS2004-UTF32-V.bcmap │ │ │ ├── UniJIS2004-UTF8-H.bcmap │ │ │ ├── UniJIS2004-UTF8-V.bcmap │ │ │ ├── UniJISPro-UCS2-HW-V.bcmap │ │ │ ├── UniJISPro-UCS2-V.bcmap │ │ │ ├── UniJISPro-UTF8-V.bcmap │ │ │ ├── UniJISX0213-UTF32-H.bcmap │ │ │ ├── UniJISX0213-UTF32-V.bcmap │ │ │ ├── UniJISX02132004-UTF32-H.bcmap │ │ │ ├── UniJISX02132004-UTF32-V.bcmap │ │ │ ├── UniKS-UCS2-H.bcmap │ │ │ ├── UniKS-UCS2-V.bcmap │ │ │ ├── UniKS-UTF16-H.bcmap │ │ │ ├── UniKS-UTF16-V.bcmap │ │ │ ├── UniKS-UTF32-H.bcmap │ │ │ ├── UniKS-UTF32-V.bcmap │ │ │ ├── UniKS-UTF8-H.bcmap │ │ │ ├── UniKS-UTF8-V.bcmap │ │ │ ├── V.bcmap │ │ │ └── WP-Symbol.bcmap │ │ ├── locale/ │ │ │ ├── br/ │ │ │ │ └── viewer.properties │ │ │ ├── ca/ │ │ │ │ └── viewer.properties │ │ │ ├── de/ │ │ │ │ └── viewer.properties │ │ │ ├── en-CA/ │ │ │ │ └── viewer.properties │ │ │ ├── en-GB/ │ │ │ │ └── viewer.properties │ │ │ ├── en-US/ │ │ │ │ └── viewer.properties │ │ │ ├── eu/ │ │ │ │ └── viewer.properties │ │ │ ├── fr/ │ │ │ │ └── viewer.properties │ │ │ ├── ja/ │ │ │ │ └── viewer.properties │ │ │ ├── locale.properties │ │ │ ├── ru/ │ │ │ │ └── viewer.properties │ │ │ ├── uk/ │ │ │ │ └── viewer.properties │ │ │ ├── zh-CN/ │ │ │ │ └── viewer.properties │ │ │ └── zh-TW/ │ │ │ └── viewer.properties │ │ ├── pdf-viewer-template.html │ │ ├── viewer.css │ │ └── viewer.js │ ├── export/ │ │ ├── CMakeLists.txt │ │ ├── exportdata.cpp │ │ ├── exportdata.h │ │ ├── exporter.cpp │ │ ├── exporter.h │ │ ├── webviewexporter.cpp │ │ └── webviewexporter.h │ ├── fakeaccessible.cpp │ ├── fakeaccessible.h │ ├── imagehost/ │ │ ├── CMakeLists.txt │ │ ├── giteeimagehost.cpp │ │ ├── giteeimagehost.h │ │ ├── githubimagehost.cpp │ │ ├── githubimagehost.h │ │ ├── imagehost.cpp │ │ ├── imagehost.h │ │ ├── imagehostmgr.cpp │ │ ├── imagehostmgr.h │ │ ├── imagehostutils.cpp │ │ ├── imagehostutils.h │ │ ├── repoimagehost.cpp │ │ └── repoimagehost.h │ ├── main.cpp │ ├── search/ │ │ ├── CMakeLists.txt │ │ ├── filesearchengine.cpp │ │ ├── filesearchengine.h │ │ ├── isearchengine.h │ │ ├── isearchinfoprovider.h │ │ ├── searchdata.cpp │ │ ├── searchdata.h │ │ ├── searcher.cpp │ │ ├── searcher.h │ │ ├── searchhelper.cpp │ │ ├── searchhelper.h │ │ ├── searchresultitem.cpp │ │ ├── searchresultitem.h │ │ ├── searchtoken.cpp │ │ └── searchtoken.h │ ├── snippet/ │ │ ├── CMakeLists.txt │ │ ├── dynamicsnippet.cpp │ │ ├── dynamicsnippet.h │ │ ├── snippet.cpp │ │ ├── snippet.h │ │ ├── snippetmgr.cpp │ │ └── snippetmgr.h │ ├── task/ │ │ ├── CMakeLists.txt │ │ ├── shellexecution.cpp │ │ ├── shellexecution.h │ │ ├── task.cpp │ │ ├── task.h │ │ ├── taskmgr.cpp │ │ ├── taskmgr.h │ │ ├── taskvariablemgr.cpp │ │ └── taskvariablemgr.h │ ├── unitedentry/ │ │ ├── CMakeLists.txt │ │ ├── entrypopup.cpp │ │ ├── entrypopup.h │ │ ├── entrywidgetfactory.cpp │ │ ├── entrywidgetfactory.h │ │ ├── findunitedentry.cpp │ │ ├── findunitedentry.h │ │ ├── helpunitedentry.cpp │ │ ├── helpunitedentry.h │ │ ├── iunitedentry.cpp │ │ ├── iunitedentry.h │ │ ├── unitedentry.cpp │ │ ├── unitedentry.h │ │ ├── unitedentryalias.cpp │ │ ├── unitedentryalias.h │ │ ├── unitedentryhelper.cpp │ │ ├── unitedentryhelper.h │ │ ├── unitedentrymgr.cpp │ │ └── unitedentrymgr.h │ ├── utils/ │ │ ├── CMakeLists.txt │ │ ├── asyncworker.cpp │ │ ├── asyncworker.h │ │ ├── callbackpool.cpp │ │ ├── callbackpool.h │ │ ├── clipboardutils.cpp │ │ ├── clipboardutils.h │ │ ├── contentmediautils.cpp │ │ ├── contentmediautils.h │ │ ├── docsutils.cpp │ │ ├── docsutils.h │ │ ├── fileutils.cpp │ │ ├── fileutils.h │ │ ├── htmlutils.cpp │ │ ├── htmlutils.h │ │ ├── iconutils.cpp │ │ ├── iconutils.h │ │ ├── imageutils.cpp │ │ ├── imageutils.h │ │ ├── pathutils.cpp │ │ ├── pathutils.h │ │ ├── printutils.cpp │ │ ├── printutils.h │ │ ├── processutils.cpp │ │ ├── processutils.h │ │ ├── urldragdroputils.cpp │ │ ├── urldragdroputils.h │ │ ├── utils.cpp │ │ ├── utils.h │ │ ├── vxurlutils.cpp │ │ ├── vxurlutils.h │ │ ├── webutils.cpp │ │ ├── webutils.h │ │ ├── widgetutils.cpp │ │ └── widgetutils.h │ └── widgets/ │ ├── CMakeLists.txt │ ├── attachmentdragdropareaindicator.cpp │ ├── attachmentdragdropareaindicator.h │ ├── attachmentpopup.cpp │ ├── attachmentpopup.h │ ├── biaction.cpp │ ├── biaction.h │ ├── buttonpopup.cpp │ ├── buttonpopup.h │ ├── combobox.cpp │ ├── combobox.h │ ├── consoleviewer.cpp │ ├── consoleviewer.h │ ├── dialogs/ │ │ ├── deleteconfirmdialog.cpp │ │ ├── deleteconfirmdialog.h │ │ ├── dialog.cpp │ │ ├── dialog.h │ │ ├── exportdialog.cpp │ │ ├── exportdialog.h │ │ ├── filepropertiesdialog.cpp │ │ ├── filepropertiesdialog.h │ │ ├── folderfilesfilterwidget.cpp │ │ ├── folderfilesfilterwidget.h │ │ ├── folderpropertiesdialog.cpp │ │ ├── folderpropertiesdialog.h │ │ ├── imageinsertdialog.cpp │ │ ├── imageinsertdialog.h │ │ ├── importfolderdialog.cpp │ │ ├── importfolderdialog.h │ │ ├── importfolderutils.cpp │ │ ├── importfolderutils.h │ │ ├── importnotebookdialog.cpp │ │ ├── importnotebookdialog.h │ │ ├── levellabelwithupbutton.cpp │ │ ├── levellabelwithupbutton.h │ │ ├── linkinsertdialog.cpp │ │ ├── linkinsertdialog.h │ │ ├── managenotebooksdialog.cpp │ │ ├── managenotebooksdialog.h │ │ ├── newfolderdialog.cpp │ │ ├── newfolderdialog.h │ │ ├── newnotebookdialog.cpp │ │ ├── newnotebookdialog.h │ │ ├── newnotebookfromfolderdialog.cpp │ │ ├── newnotebookfromfolderdialog.h │ │ ├── newnotedialog.cpp │ │ ├── newnotedialog.h │ │ ├── newsnippetdialog.cpp │ │ ├── newsnippetdialog.h │ │ ├── newtagdialog.cpp │ │ ├── newtagdialog.h │ │ ├── nodeinfowidget.cpp │ │ ├── nodeinfowidget.h │ │ ├── notebookinfowidget.cpp │ │ ├── notebookinfowidget.h │ │ ├── notepropertiesdialog.cpp │ │ ├── notepropertiesdialog.h │ │ ├── notetemplateselector.cpp │ │ ├── notetemplateselector.h │ │ ├── renametagdialog.cpp │ │ ├── renametagdialog.h │ │ ├── scrolldialog.cpp │ │ ├── scrolldialog.h │ │ ├── selectdialog.cpp │ │ ├── selectdialog.h │ │ ├── selectionitemwidget.cpp │ │ ├── selectionitemwidget.h │ │ ├── settings/ │ │ │ ├── appearancepage.cpp │ │ │ ├── appearancepage.h │ │ │ ├── editorpage.cpp │ │ │ ├── editorpage.h │ │ │ ├── fileassociationpage.cpp │ │ │ ├── fileassociationpage.h │ │ │ ├── generalpage.cpp │ │ │ ├── generalpage.h │ │ │ ├── imagehostpage.cpp │ │ │ ├── imagehostpage.h │ │ │ ├── markdowneditorpage.cpp │ │ │ ├── markdowneditorpage.h │ │ │ ├── miscpage.cpp │ │ │ ├── miscpage.h │ │ │ ├── newimagehostdialog.cpp │ │ │ ├── newimagehostdialog.h │ │ │ ├── notemanagementpage.cpp │ │ │ ├── notemanagementpage.h │ │ │ ├── quickaccesspage.cpp │ │ │ ├── quickaccesspage.h │ │ │ ├── settingsdialog.cpp │ │ │ ├── settingsdialog.h │ │ │ ├── settingspage.cpp │ │ │ ├── settingspage.h │ │ │ ├── texteditorpage.cpp │ │ │ ├── texteditorpage.h │ │ │ ├── themepage.cpp │ │ │ ├── themepage.h │ │ │ ├── vipage.cpp │ │ │ └── vipage.h │ │ ├── snippetinfowidget.cpp │ │ ├── snippetinfowidget.h │ │ ├── snippetpropertiesdialog.cpp │ │ ├── snippetpropertiesdialog.h │ │ ├── sortdialog.cpp │ │ ├── sortdialog.h │ │ ├── tableinsertdialog.cpp │ │ ├── tableinsertdialog.h │ │ ├── updater.cpp │ │ ├── updater.h │ │ ├── viewtagsdialog.cpp │ │ └── viewtagsdialog.h │ ├── dockwidgethelper.cpp │ ├── dockwidgethelper.h │ ├── dragdropareaindicator.cpp │ ├── dragdropareaindicator.h │ ├── editors/ │ │ ├── graphhelper.cpp │ │ ├── graphhelper.h │ │ ├── graphvizhelper.cpp │ │ ├── graphvizhelper.h │ │ ├── markdowneditor.cpp │ │ ├── markdowneditor.h │ │ ├── markdowntable.cpp │ │ ├── markdowntable.h │ │ ├── markdowntablehelper.cpp │ │ ├── markdowntablehelper.h │ │ ├── markdownviewer.cpp │ │ ├── markdownviewer.h │ │ ├── markdownvieweradapter.cpp │ │ ├── markdownvieweradapter.h │ │ ├── mindmapeditor.cpp │ │ ├── mindmapeditor.h │ │ ├── mindmapeditoradapter.cpp │ │ ├── mindmapeditoradapter.h │ │ ├── pdfviewer.cpp │ │ ├── pdfviewer.h │ │ ├── pdfvieweradapter.cpp │ │ ├── pdfvieweradapter.h │ │ ├── plantumlhelper.cpp │ │ ├── plantumlhelper.h │ │ ├── previewhelper.cpp │ │ ├── previewhelper.h │ │ ├── statuswidget.cpp │ │ ├── statuswidget.h │ │ ├── texteditor.cpp │ │ ├── texteditor.h │ │ ├── webviewadapter.cpp │ │ └── webviewadapter.h │ ├── editreaddiscardaction.cpp │ ├── editreaddiscardaction.h │ ├── filesystemviewer.cpp │ ├── filesystemviewer.h │ ├── findandreplacewidget.cpp │ ├── findandreplacewidget.h │ ├── floatingwidget.cpp │ ├── floatingwidget.h │ ├── framelessmainwindow/ │ │ ├── framelessmainwindow.cpp │ │ ├── framelessmainwindow.h │ │ ├── framelessmainwindowimpl.h │ │ ├── framelessmainwindowlinux.cpp │ │ ├── framelessmainwindowlinux.h │ │ ├── framelessmainwindowwin.cpp │ │ └── framelessmainwindowwin.h │ ├── fullscreentoggleaction.cpp │ ├── fullscreentoggleaction.h │ ├── historypanel.cpp │ ├── historypanel.h │ ├── itemproxystyle.cpp │ ├── itemproxystyle.h │ ├── labelwithbuttonswidget.cpp │ ├── labelwithbuttonswidget.h │ ├── lineedit.cpp │ ├── lineedit.h │ ├── lineeditdelegate.cpp │ ├── lineeditdelegate.h │ ├── lineeditwithsnippet.cpp │ ├── lineeditwithsnippet.h │ ├── listwidget.cpp │ ├── listwidget.h │ ├── locationinputwithbrowsebutton.cpp │ ├── locationinputwithbrowsebutton.h │ ├── locationlist.cpp │ ├── locationlist.h │ ├── mainwindow.cpp │ ├── mainwindow.h │ ├── markdownviewwindow.cpp │ ├── markdownviewwindow.h │ ├── messageboxhelper.cpp │ ├── messageboxhelper.h │ ├── mindmapviewwindow.cpp │ ├── mindmapviewwindow.h │ ├── navigationmode.cpp │ ├── navigationmode.h │ ├── navigationmodemgr.cpp │ ├── navigationmodemgr.h │ ├── navigationmodewrapper.h │ ├── notebookexplorer.cpp │ ├── notebookexplorer.h │ ├── notebookexplorersession.cpp │ ├── notebookexplorersession.h │ ├── notebooknodeexplorer.cpp │ ├── notebooknodeexplorer.h │ ├── notebookselector.cpp │ ├── notebookselector.h │ ├── outlinepopup.cpp │ ├── outlinepopup.h │ ├── outlineprovider.cpp │ ├── outlineprovider.h │ ├── outlineviewer.cpp │ ├── outlineviewer.h │ ├── pdfviewwindow.cpp │ ├── pdfviewwindow.h │ ├── propertydefs.cpp │ ├── propertydefs.h │ ├── qtreewidgetstatecache.h │ ├── quickselector.cpp │ ├── quickselector.h │ ├── searchinfoprovider.cpp │ ├── searchinfoprovider.h │ ├── searchpanel.cpp │ ├── searchpanel.h │ ├── simplesegmenthighlighter.cpp │ ├── simplesegmenthighlighter.h │ ├── snippetpanel.cpp │ ├── snippetpanel.h │ ├── statusbarhelper.cpp │ ├── statusbarhelper.h │ ├── styleditemdelegate.cpp │ ├── styleditemdelegate.h │ ├── systemtrayhelper.cpp │ ├── systemtrayhelper.h │ ├── tagexplorer.cpp │ ├── tagexplorer.h │ ├── tagpopup.cpp │ ├── tagpopup.h │ ├── tagviewer.cpp │ ├── tagviewer.h │ ├── textviewwindow.cpp │ ├── textviewwindow.h │ ├── textviewwindowhelper.h │ ├── titlebar.cpp │ ├── titlebar.h │ ├── titletoolbar.cpp │ ├── titletoolbar.h │ ├── toolbarhelper.cpp │ ├── toolbarhelper.h │ ├── toolbox.cpp │ ├── toolbox.h │ ├── treeview.cpp │ ├── treeview.h │ ├── treewidget.cpp │ ├── treewidget.h │ ├── treewidgetitem.cpp │ ├── treewidgetitem.h │ ├── viewarea.cpp │ ├── viewarea.h │ ├── viewareasession.cpp │ ├── viewareasession.h │ ├── viewsplit.cpp │ ├── viewsplit.h │ ├── viewwindow.cpp │ ├── viewwindow.h │ ├── viewwindowsession.cpp │ ├── viewwindowsession.h │ ├── viewwindowtoolbarhelper.cpp │ ├── viewwindowtoolbarhelper.h │ ├── webpage.cpp │ ├── webpage.h │ ├── webviewer.cpp │ ├── webviewer.h │ ├── widgetsfactory.cpp │ ├── widgetsfactory.h │ ├── windowspanel.cpp │ ├── windowspanel.h │ ├── windowsprovider.cpp │ ├── windowsprovider.h │ ├── wordcountpopup.cpp │ └── wordcountpopup.h └── tests/ ├── CMakeLists.txt ├── test_core/ │ ├── CMakeLists.txt │ ├── test_notebook/ │ │ ├── CMakeLists.txt │ │ ├── dummynode.cpp │ │ ├── dummynode.h │ │ ├── dummynotebook.cpp │ │ ├── dummynotebook.h │ │ ├── test_notebook.cpp │ │ ├── test_notebook.h │ │ ├── testnotebookdatabase.cpp │ │ └── testnotebookdatabase.h │ └── test_theme/ │ ├── test_theme.cpp │ └── test_theme.h ├── test_task/ │ ├── test_task.cpp │ └── test_task.h └── test_utils/ ├── test_utils.cpp └── test_utils.h ================================================ FILE CONTENTS ================================================ ================================================ FILE: .clang-format ================================================ --- Language: Cpp AccessModifierOffset: -2 AlignAfterOpenBracket: Align AlignArrayOfStructures: None AlignConsecutiveAssignments: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCompound: false AlignFunctionDeclarations: false AlignFunctionPointers: false PadOperators: true AlignConsecutiveBitFields: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCompound: false AlignFunctionDeclarations: false AlignFunctionPointers: false PadOperators: false AlignConsecutiveDeclarations: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCompound: false AlignFunctionDeclarations: true AlignFunctionPointers: false PadOperators: false AlignConsecutiveMacros: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCompound: false AlignFunctionDeclarations: false AlignFunctionPointers: false PadOperators: false AlignConsecutiveShortCaseStatements: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCaseArrows: false AlignCaseColons: false AlignConsecutiveTableGenBreakingDAGArgColons: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCompound: false AlignFunctionDeclarations: false AlignFunctionPointers: false PadOperators: false AlignConsecutiveTableGenCondOperatorColons: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCompound: false AlignFunctionDeclarations: false AlignFunctionPointers: false PadOperators: false AlignConsecutiveTableGenDefinitionColons: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCompound: false AlignFunctionDeclarations: false AlignFunctionPointers: false PadOperators: false AlignEscapedNewlines: Right AlignOperands: Align AlignTrailingComments: Kind: Always OverEmptyLines: 0 AllowAllArgumentsOnNextLine: true AllowAllParametersOfDeclarationOnNextLine: true AllowBreakBeforeNoexceptSpecifier: Never AllowShortBlocksOnASingleLine: Never AllowShortCaseExpressionOnASingleLine: true AllowShortCaseLabelsOnASingleLine: false AllowShortCompoundRequirementOnASingleLine: true AllowShortEnumsOnASingleLine: true AllowShortFunctionsOnASingleLine: All AllowShortIfStatementsOnASingleLine: Never AllowShortLambdasOnASingleLine: All AllowShortLoopsOnASingleLine: false AllowShortNamespacesOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakBeforeMultilineStrings: false AttributeMacros: - __capability BinPackArguments: true BinPackLongBracedList: true BinPackParameters: BinPack BitFieldColonSpacing: Both BracedInitializerIndentWidth: -1 BraceWrapping: AfterCaseLabel: false AfterClass: false AfterControlStatement: Never AfterEnum: false AfterExternBlock: false AfterFunction: false AfterNamespace: false AfterObjCDeclaration: false AfterStruct: false AfterUnion: false BeforeCatch: false BeforeElse: false BeforeLambdaBody: false BeforeWhile: false IndentBraces: false SplitEmptyFunction: true SplitEmptyRecord: true SplitEmptyNamespace: true BreakAdjacentStringLiterals: true BreakAfterAttributes: Leave BreakAfterJavaFieldAnnotations: false BreakAfterReturnType: None BreakArrays: true BreakBeforeBinaryOperators: None BreakBeforeConceptDeclarations: Always BreakBeforeBraces: Attach BreakBeforeInlineASMColon: OnlyMultiline BreakBeforeTemplateCloser: false BreakBeforeTernaryOperators: true BreakBinaryOperations: Never BreakConstructorInitializers: BeforeColon BreakFunctionDefinitionParameters: false BreakInheritanceList: BeforeColon BreakStringLiterals: true BreakTemplateDeclarations: MultiLine ColumnLimit: 100 CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false ConstructorInitializerIndentWidth: 4 ContinuationIndentWidth: 4 Cpp11BracedListStyle: true DerivePointerAlignment: false DisableFormat: false EmptyLineAfterAccessModifier: Never EmptyLineBeforeAccessModifier: LogicalBlock EnumTrailingComma: Leave ExperimentalAutoDetectBinPacking: false FixNamespaceComments: true ForEachMacros: - foreach - Q_FOREACH - BOOST_FOREACH IfMacros: - KJ_IF_MAYBE IncludeBlocks: Preserve IncludeCategories: - Regex: '^"(llvm|llvm-c|clang|clang-c)/' Priority: 2 SortPriority: 0 CaseSensitive: false - Regex: '^(<|"(gtest|gmock|isl|json)/)' Priority: 3 SortPriority: 0 CaseSensitive: false - Regex: '.*' Priority: 1 SortPriority: 0 CaseSensitive: false IncludeIsMainRegex: '(Test)?$' IncludeIsMainSourceRegex: '' IndentAccessModifiers: false IndentCaseBlocks: false IndentCaseLabels: false IndentExportBlock: true IndentExternBlock: AfterExternBlock IndentGotoLabels: true IndentPPDirectives: None IndentRequiresClause: true IndentWidth: 2 IndentWrappedFunctionNames: false InsertBraces: false InsertNewlineAtEOF: false InsertTrailingCommas: None IntegerLiteralSeparator: Binary: 0 BinaryMinDigits: 0 Decimal: 0 DecimalMinDigits: 0 Hex: 0 HexMinDigits: 0 JavaScriptQuotes: Leave JavaScriptWrapImports: true KeepEmptyLines: AtEndOfFile: false AtStartOfBlock: true AtStartOfFile: true KeepFormFeed: false LambdaBodyIndentation: Signature LineEnding: DeriveLF MacroBlockBegin: '' MacroBlockEnd: '' MainIncludeChar: Quote MaxEmptyLinesToKeep: 1 NamespaceIndentation: None ObjCBinPackProtocolList: Auto ObjCBlockIndentWidth: 2 ObjCBreakBeforeNestedBlockParam: true ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: true OneLineFormatOffRegex: '' PackConstructorInitializers: BinPack PenaltyBreakAssignment: 2 PenaltyBreakBeforeFirstCallParameter: 19 PenaltyBreakBeforeMemberAccess: 150 PenaltyBreakComment: 300 PenaltyBreakFirstLessLess: 120 PenaltyBreakOpenParenthesis: 0 PenaltyBreakScopeResolution: 500 PenaltyBreakString: 1000 PenaltyBreakTemplateDeclaration: 10 PenaltyExcessCharacter: 1000000 PenaltyIndentedWhitespace: 0 PenaltyReturnTypeOnItsOwnLine: 60 PointerAlignment: Right PPIndentWidth: -1 QualifierAlignment: Leave ReferenceAlignment: Pointer ReflowComments: Always RemoveBracesLLVM: false RemoveEmptyLinesInUnwrappedLines: false RemoveParentheses: Leave RemoveSemicolon: false RequiresClausePosition: OwnLine RequiresExpressionIndentation: OuterScope SeparateDefinitionBlocks: Leave ShortNamespaceLines: 1 SkipMacroDefinitionBody: false SortIncludes: Enabled: true IgnoreCase: false SortJavaStaticImport: Before SortUsingDeclarations: LexicographicNumeric SpaceAfterCStyleCast: false SpaceAfterLogicalNot: false SpaceAfterOperatorKeyword: false SpaceAfterTemplateKeyword: true SpaceAroundPointerQualifiers: Default SpaceBeforeAssignmentOperators: true SpaceBeforeCaseColon: false SpaceBeforeCpp11BracedList: false SpaceBeforeCtorInitializerColon: true SpaceBeforeInheritanceColon: true SpaceBeforeJsonColon: false SpaceBeforeParens: ControlStatements SpaceBeforeParensOptions: AfterControlStatements: true AfterForeachMacros: true AfterFunctionDefinitionName: false AfterFunctionDeclarationName: false AfterIfMacros: true AfterNot: false AfterOverloadedOperator: false AfterPlacementOperator: true AfterRequiresInClause: false AfterRequiresInExpression: false BeforeNonEmptyParentheses: false SpaceBeforeRangeBasedForLoopColon: true SpaceBeforeSquareBrackets: false SpaceInEmptyBlock: false SpacesBeforeTrailingComments: 1 SpacesInAngles: Never SpacesInContainerLiterals: true SpacesInLineCommentPrefix: Minimum: 1 Maximum: -1 SpacesInParens: Never SpacesInParensOptions: ExceptDoubleParentheses: false InCStyleCasts: false InConditionalStatements: false InEmptyParentheses: false Other: false SpacesInSquareBrackets: false Standard: Latest StatementAttributeLikeMacros: - Q_EMIT StatementMacros: - Q_UNUSED - QT_REQUIRE_VERSION TableGenBreakInsideDAGArg: DontBreak TabWidth: 8 UseTab: Never VerilogBreakBetweenInstancePorts: true WhitespaceSensitiveMacros: - BOOST_PP_STRINGIZE - CF_SWIFT_NAME - NS_SWIFT_NAME - PP_STRINGIZE - STRINGIZE WrapNamespaceBodyWithEmptyLines: Leave ... ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.md ================================================ --- name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: '' --- **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. Windows 10] - Version [e.g. 3.0.0] **Additional context** Add any other context about the problem here. ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.md ================================================ --- name: Feature request about: Suggest an idea for this project title: '' labels: '' assignees: '' --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here. ================================================ FILE: .github/workflows/ci-linux.yml ================================================ name: CI-Linux on: push: branches: [ master ] pull_request: branches: [ master ] # Allows you to run this workflow manually from the Actions tab. workflow_dispatch: inputs: debug_enabled: type: boolean description: 'Run the build with tmate debugging enabled' required: false default: false env: VNOTE_VER: 3.20.1 CMAKE_VER: 3.24.3 jobs: build-linux: name: Build On Ubuntu runs-on: ubuntu-latest timeout-minutes: 120 steps: # Checks-out your repository under $GITHUB_WORKSPACE. - uses: actions/checkout@v2 with: fetch-depth: 1 - name: Init Submodules run: | auth_header="$(git config --local --get http.https://github.com/.extraheader)" git submodule sync --recursive git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 - name: Install a Fresh CMake run: | wget --no-verbose https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER}/cmake-${CMAKE_VER}-Linux-x86_64.sh chmod +x cmake-${CMAKE_VER}-Linux-x86_64.sh mkdir ${{runner.workspace}}/cmake sudo ./cmake-${CMAKE_VER}-Linux-x86_64.sh --skip-license --prefix=${{runner.workspace}}/cmake sudo rm -f /usr/local/bin/cmake /usr/local/bin/cpack sudo ln -s ${{runner.workspace}}/cmake/bin/cmake /usr/local/bin/cmake sudo ln -s ${{runner.workspace}}/cmake/bin/cpack /usr/local/bin/cpack - name: Install linuxdeploy uses: miurahr/install-linuxdeploy-action@v1 with: plugins: qt appimage - name: Install Dependencies run: | sudo DEBIAN_FRONTEND=noninteractive apt-get update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libfcitx5-qt-dev fcitx-libs-dev extra-cmake-modules libxkbcommon-dev sudo DEBIAN_FRONTEND=noninteractive apt-get install -y tree sudo DEBIAN_FRONTEND=noninteractive apt-get install -y fuse libxcb-cursor-dev python3 -m pip config set global.break-system-packages true - name: Cache Qt id: cache-qt uses: actions/cache@v4 with: path: ${{runner.workspace}}/Qt key: ${{ runner.os }}-QtCache-6.8 - name: Install Qt uses: jurplel/install-qt-action@v3 with: version: 6.8.3 target: desktop modules: 'qtwebengine qtwebchannel qtpositioning qtpdf qtimageformats qt5compat qtserialport' tools: 'tools_opensslv3_src' cache: 'true' - name: Compile OpenSSLV3 run: | cd ${Qt6_DIR}/../../Tools/OpenSSLv3/src ./Configure make -j2 sudo make install - name: Create Build Dir run: mkdir build working-directory: ${{runner.workspace}} - name: Compile fcitxqt5 run: | git clone https://github.com/fcitx/fcitx-qt5 cd fcitx-qt5 mkdir build && cd build cmake -DENABLE_QT5=OFF -DENABLE_QT6=ON .. make -j2 sudo make install working-directory: ${{runner.workspace}}/build - name: Compile qt6ct run: | git clone https://github.com/trialuser02/qt6ct qt6ct.git cd qt6ct.git qmake make -j$(nproc) && sudo make install working-directory: ${{runner.workspace}}/build - name: Configure Project run: | qmake -v cmake --version cmake ${GITHUB_WORKSPACE} working-directory: ${{runner.workspace}}/build - name: Build Project run: | # Remove the libqsqlmimer.so as libmimerapi.so is not deployed with Qt6 rm ${{runner.workspace}}/Qt/6.*/gcc_64/plugins/sqldrivers/libqsqlmimer.so cmake --build . --target pack working-directory: ${{runner.workspace}}/build - name: Fix Package run: | mkdir fixpackage mv VNote*.AppImage ./fixpackage pushd fixpackage # Extract the AppImage ./VNote*.AppImage --appimage-extract # Remove libnss3.so and libnssutil3.so rm ./squashfs-root/usr/lib/libnss*.so # Re-package rm VNote*.AppImage linuxdeploy-plugin-appimage-x86_64.AppImage --appdir=./squashfs-root mv VNote*.AppImage ../ popd mv VNote*.AppImage VNote-${{env.VNOTE_VER}}-linux-x64.AppImage working-directory: ${{runner.workspace}}/build - name: Archive Artifacts uses: actions/upload-artifact@v4 with: name: VNote-${{env.VNOTE_VER}}-linux-x64.AppImage path: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-linux-x64.AppImage - name: Update Tag if: github.ref == 'refs/heads/master' run: | git tag --force continuous-build ${GITHUB_SHA} git push --force --tags - name: Update Continuous Build Release if: github.ref == 'refs/heads/master' uses: johnwbyrd/update-release@v1.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} files: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-linux-x64.AppImage release: Continuous Build tag: continuous-build - name: Release if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, '[Release]') uses: ncipollo/release-action@v1.11.0 with: token: ${{ secrets.GITHUB_TOKEN }} artifacts: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-linux-x64.AppImage commit: master tag: v${{env.VNOTE_VER}} allowUpdates: true draft: true ================================================ FILE: .github/workflows/ci-macos.yml ================================================ name: CI-MacOS on: push: branches: [ master ] pull_request: branches: [ master ] # Allows you to run this workflow manually from the Actions tab. workflow_dispatch: inputs: debug_enabled: type: boolean description: 'Run the build with tmate debugging enabled' required: false default: false env: VNOTE_VER: 3.20.1 CMAKE_VER: 3.24.3 jobs: build: environment: Mac-code-sign name: Build On MacOS timeout-minutes: 120 strategy: fail-fast: false matrix: config: - name: "Build on Arm64" os: macos-latest arch: universal qt: 6.8.3 runs-on: ${{matrix.config.os}} steps: # Checks-out your repository under $GITHUB_WORKSPACE. - uses: actions/checkout@v2 with: fetch-depth: 1 - name: Init Submodules run: | auth_header="$(git config --local --get http.https://github.com/.extraheader)" git submodule sync --recursive git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 - name: Install Dependencies run: | brew install tree libiodbc libpq - name: Fix SQL run: | sudo mkdir -p /usr/local/opt/libiodbc/lib sudo ln -s /opt/homebrew/opt/libiodbc/lib/libiodbc.2.dylib /usr/local/opt/libiodbc/lib/libiodbc.2.dylib sudo mkdir -p /Applications/Postgres.app/Contents/Versions/14/lib sudo ln -s /opt/homebrew/Cellar/libpq/16.3/lib/libpq.5.dylib /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib - name: Install a fresh CMake run: | wget --no-verbose https://github.com/Kitware/CMake/releases/download/v${CMAKE_VER}/cmake-${CMAKE_VER}-macos-universal.tar.gz tar xzf cmake-${CMAKE_VER}-macos-universal.tar.gz sudo rm -f /usr/local/bin/cmake /usr/local/bin/cpack sudo ln -s ${{runner.workspace}}/cmake-${CMAKE_VER}-macos-universal/CMake.app/Contents/bin/cmake /usr/local/bin/cmake sudo ln -s ${{runner.workspace}}/cmake-${CMAKE_VER}-macos-universal/CMake.app/Contents/bin/cpack /usr/local/bin/cpack working-directory: ${{runner.workspace}} - name: Install macdeployqtfix run: | git clone https://github.com/tamlok/macdeployqtfix.git macdeployqtfix --depth=1 working-directory: ${{runner.workspace}} - name: Install optool run: | wget --no-verbose https://github.com/alexzielenski/optool/releases/download/0.1/optool.zip unzip ./optool.zip sudo ln -s ./optool /usr/local/bin/optool working-directory: ${{runner.workspace}} - name: Cache Qt id: cache-qt uses: actions/cache@v4 with: path: ${{runner.workspace}}/Qt key: ${{ runner.os }}-QtCache-6.8 - name: Install Qt uses: jurplel/install-qt-action@v3 with: version: ${{matrix.config.qt}} target: desktop modules: 'qtwebengine qtwebchannel qtpositioning qtpdf qtimageformats qt5compat qtserialport' cache: 'true' - name: Create Build Dir run: mkdir build working-directory: ${{runner.workspace}} - name: Configure Project run: | qmake -v cmake --version cmake -DMACDEPLOYQTFIX_EXECUTABLE=${{runner.workspace}}/macdeployqtfix/macdeployqtfix.py -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ${GITHUB_WORKSPACE} working-directory: ${{runner.workspace}}/build - name: Build Project run: | # Keep only required SQL drivers rm ${{env.Qt6_DIR}}/plugins/sqldrivers/libqsqlmimer.dylib rm ${{env.Qt6_DIR}}/plugins/sqldrivers/libqsqlodbc.dylib rm ${{env.Qt6_DIR}}/plugins/sqldrivers/libqsqlpsql.dylib # Build the project cmake --build . --target pack # Fix Qt frameworks python3 ${{runner.workspace}}/macdeployqtfix/macdeployqtfix.py ./src/VNote.app/Contents/MacOS/VNote ${{env.Qt6_DIR}}/../.. # Only delete rpaths that exist to avoid errors for rpath in $(otool -l ./src/VNote.app/Contents/MacOS/VNote | awk '/LC_RPATH/ {getline; getline; print $2}' | grep 'vnote'); do echo "Checking rpath: $rpath" if otool -l ./src/VNote.app/Contents/MacOS/VNote | grep -q "$rpath"; then echo "Deleting rpath: $rpath" install_name_tool -delete_rpath "$rpath" ./src/VNote.app/Contents/MacOS/VNote else echo "Rpath not found: $rpath" fi done for rpath in $(otool -l ./src/VNote.app/Contents/Frameworks/libVTextEdit.dylib | awk '/LC_RPATH/ {getline; getline; print $2}' | grep 'vnote'); do echo "Checking rpath: $rpath" if otool -l ./src/VNote.app/Contents/Frameworks/libVTextEdit.dylib | grep -q "$rpath"; then echo "Deleting rpath: $rpath" install_name_tool -delete_rpath "$rpath" ./src/VNote.app/Contents/Frameworks/libVTextEdit.dylib else echo "Rpath not found: $rpath" fi done # Run macdeployqtfix again to ensure all dependencies are properly fixed python3 ${{runner.workspace}}/macdeployqtfix/macdeployqtfix.py ./src/VNote.app/Contents/MacOS/VNote ${{env.Qt6_DIR}}/../.. working-directory: ${{runner.workspace}}/build - name: Codesign Bundle # Extract the secrets we defined earlier as environment variables env: MACOS_CERTIFICATE: ${{ secrets.CLI_MACOS_CERTIFICATE }} MACOS_CERTIFICATE_PWD: ${{ secrets.CLI_MACOS_CERTIFICATE_PWD }} MACOS_CERTIFICATE_NAME: ${{ secrets.CLI_MACOS_CERTIFICATE_NAME }} MACOS_CI_KEYCHAIN_PWD: ${{ secrets.CLI_MACOS_CERTIFICATE }} run: | # Turn our base64-encoded certificate back to a regular .p12 file echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12 # We need to create a new keychain, otherwise using the certificate will prompt # with a UI dialog asking for the certificate password, which we can't # use in a headless CI environment security create-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain security default-keychain -s build.keychain security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$MACOS_CI_KEYCHAIN_PWD" build.keychain echo "Codesigning main app bundle" codesign --force --deep -s "$MACOS_CERTIFICATE_NAME" --entitlements ${{github.workspace}}/package/entitlements.xml --options runtime ./src/VNote.app codesign -v -vvv ./src/VNote.app hdiutil create -volname "VNote" -srcfolder ./src/VNote.app -ov -format UDZO VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}}.dmg codesign --force --deep -s "$MACOS_CERTIFICATE_NAME" --entitlements ${{github.workspace}}/package/entitlements.xml --options runtime ./VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}}.dmg codesign -v -vvv ./VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}}.dmg working-directory: ${{runner.workspace}}/build - name: "Notarize Bundle" # Extract the secrets we defined earlier as environment variables env: PROD_MACOS_NOTARIZATION_APPLE_ID: ${{ secrets.CLI_MACOS_NOTARY_USER }} PROD_MACOS_NOTARIZATION_TEAM_ID: ${{ secrets.CLI_MACOS_TEAM_ID }} PROD_MACOS_NOTARIZATION_PWD: ${{ secrets.CLI_MACOS_NOTARY_PWD }} run: | # Store the notarization credentials so that we can prevent a UI password dialog # from blocking the CI echo "Create keychain profile" xcrun notarytool store-credentials "notarytool-profile" --apple-id "$PROD_MACOS_NOTARIZATION_APPLE_ID" --team-id "$PROD_MACOS_NOTARIZATION_TEAM_ID" --password "$PROD_MACOS_NOTARIZATION_PWD" # Here we send the notarization request to the Apple's Notarization service, waiting for the result. # This typically takes a few seconds inside a CI environment, but it might take more depending on the App # characteristics. Visit the Notarization docs for more information and strategies on how to optimize it if # you're curious echo "Notarize app" xcrun notarytool submit "${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}}.dmg" --keychain-profile "notarytool-profile" --wait # Finally, we need to "attach the staple" to our executable, which will allow our app to be # validated by macOS even when an internet connection is not available. echo "Attach staple" xcrun stapler staple "${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}}.dmg" # Enable tmate debugging of manually-triggered workflows if the input option was provided - name: Setup tmate session uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Archive DMG uses: actions/upload-artifact@v4 with: name: VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}} path: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}}.dmg - name: Update Tag if: github.ref == 'refs/heads/master' run: | git tag --force continuous-build ${GITHUB_SHA} git push --force --tags - name: Update Continuous Build Release if: github.ref == 'refs/heads/master' uses: johnwbyrd/update-release@v1.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} files: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}}.dmg release: Continuous Build tag: continuous-build - name: Release if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, '[Release]') uses: ncipollo/release-action@v1.11.0 with: token: ${{ secrets.GITHUB_TOKEN }} artifacts: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-mac-${{matrix.config.arch}}.dmg commit: master tag: v${{env.VNOTE_VER}} allowUpdates: true draft: true ================================================ FILE: .github/workflows/ci-win.yml ================================================ name: CI-Windows on: push: branches: [ master ] pull_request: branches: [ master ] # Allows you to run this workflow manually from the Actions tab. workflow_dispatch: inputs: debug_enabled: type: boolean description: 'Run the build with tmate debugging enabled' required: false default: false env: VNOTE_VER: 3.20.1 jobs: build: name: ${{ matrix.config.name }} runs-on: windows-${{ matrix.config.vs_version }} timeout-minutes: 120 strategy: fail-fast: false matrix: config: - name: "Build on Win64 Qt 6" arch: win64_msvc2022_64 vs_version: 2022 vs_cmd: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" qt: 6.8.3 qt_modules: "qtwebengine qtwebchannel qtpositioning qtpdf qtimageformats qt5compat" qt_tools: tools_opensslv3_x64 qt_major: 6 suffix: "" steps: # Checks-out your repository under $GITHUB_WORKSPACE. - uses: actions/checkout@v2 with: fetch-depth: 1 - name: Init Submodules shell: bash run: | auth_header="$(git config --local --get http.https://github.com/.extraheader)" git submodule sync --recursive git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 - name: Cache Qt id: cache-qt uses: actions/cache@v4 with: path: ${{runner.workspace}}/Qt key: ${{runner.os}}-${{matrix.config.arch}}-QtCache-${{matrix.config.qt}} - name: Install Qt Official Build uses: jurplel/install-qt-action@v3 with: version: ${{matrix.config.qt}} target: desktop arch: ${{matrix.config.arch}} modules: ${{matrix.config.qt_modules}} tools: ${{matrix.config.qt_tools}} cache: 'true' - name: Create Build Dir shell: bash run: mkdir build working-directory: ${{runner.workspace}} # Enable tmate debugging of manually-triggered workflows if the input option was provided - name: Setup tmate session uses: mxschmitt/action-tmate@v3 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Configure and Build Project shell: cmd run: | cmake --version call "${{matrix.config.vs_cmd}}" cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_DEFAULT_MAJOR_VERSION=${{matrix.config.qt_major}} -DOPENSSL_EXTRA_LIB_DIR=${{runner.workspace}}\build\openssl-utils.git\1.1.1j\Win_x64 %GITHUB_WORKSPACE% cmake --build . cmake --build . --target=pack 7z x VNote*.zip -o* dir working-directory: ${{runner.workspace}}/build - name: Archive Artifacts uses: actions/upload-artifact@v4 with: name: VNote-${{env.VNOTE_VER}}-win64${{matrix.config.suffix}} path: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-win64${{matrix.config.suffix}} - name: Archive Installer uses: actions/upload-artifact@v4 with: name: VNote-${{env.VNOTE_VER}}-win64${{matrix.config.suffix}}.msi path: ${{runner.workspace}}/build/VNote*.msi - name: Update Tag if: github.ref == 'refs/heads/master' shell: bash run: | git tag --force continuous-build ${GITHUB_SHA} git push --force --tags - name: Update Continuous Build Release if: github.ref == 'refs/heads/master' uses: johnwbyrd/update-release@v1.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} # glob not supported files: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-win64${{matrix.config.suffix}}.zip release: Continuous Build tag: continuous-build - name: Release if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, '[Release]') uses: ncipollo/release-action@v1.11.0 with: token: ${{ secrets.GITHUB_TOKEN }} # glob not supported artifacts: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-win64${{matrix.config.suffix}} commit: master tag: v${{env.VNOTE_VER}} allowUpdates: true draft: true ================================================ FILE: .gitignore ================================================ *.pro.user *.pro.user.* .ccls compile_commands.json compile_commands.json.* compile_flags.txt .cache .tasks .vimspector.json GPATH GRTAGS GTAGS aqtinstall.log tags CMakeLists.txt.user build build.* build* .DS_Store .vscode dev.sh ================================================ FILE: .gitmodules ================================================ [submodule "libs/vtextedit"] path = libs/vtextedit url = https://github.com/vnotex/vtextedit.git [submodule "libs/QHotkey"] path = libs/QHotkey url = https://github.com/vnotex/QHotkey.git ================================================ FILE: AGENTS.md ================================================ # VNote Agent Development Guide ## Setup After cloning the repository, run the init script to set up your development environment: * **Linux/macOS**: `bash scripts/init.sh` * **Windows**: `scripts\init.cmd` ## Build/Lint/Test Commands * **Build**: `mkdir build && cd build && cmake .. && cmake --build . --config Release` * **Debug Build**: `cmake .. -DCMAKE_BUILD_TYPE=Debug && cmake --build . --config Debug` * **Run Tests**: Uncomment `add_subdirectory(tests)` in root CMakeLists.txt, rebuild, then `ctest` * **Run Single Test**: `ctest -R test_task` (use test name pattern matching) * **Format Code**: Use clang-format with provided `.clang-format` (100 char line limit, 2-space indent) ## C++ Code Style Guidelines * **Standards**: C++14, Qt 5/6 framework with CMAKE_AUTOMOC/AUTOUIC/AUTORCC enabled * **Includes**: Order: system includes, Qt includes, local includes (blank line between groups) * **Namespaces**: Use `vnotex` namespace for all core classes; `using namespace vnotex;` in .cpp files * **Headers**: Use header guards (`#ifndef CLASSNAME_H`), forward declarations preferred in headers * **Classes**: CamelCase, private inheritance for utility classes (Noncopyable pattern) * **Methods**: camelCase with getter prefixes (`getInst()`, `getThemeMgr()`), parameters prefixed with `p_` * **Members**: Prefix private members with `m_` (e.g., `m_jobj`, `m_themeMgr`) * **Singletons**: Use static instance pattern: `static Type &getInst() { static Type inst; return inst; }` * **Qt Integration**: Use signals/slots, QObject inheritance, Q_OBJECT macro for MOC * **Memory**: Use Qt smart pointers (QScopedPointer, QSharedPointer), not raw new/delete * **Config**: Access via ConfigMgr::getInst(), JSON-based hierarchical config system * **Architecture**: Layered structure - core/ for logic, widgets/ for UI, utils/ for helpers * **Error Handling**: Use custom Exception class with Exception::throwOne(), qCritical/qWarning/qInfo for logging * **Formatting**: 2-space indent, 100 char line limit, pointer alignment right (e.g., `int *ptr`) ## Architecture Notes * Core singleton VNoteX coordinates all managers (ThemeMgr, TaskMgr, NotebookMgr, BufferMgr) * ConfigMgr provides MainConfig, SessionConfig, CoreConfig, EditorConfig, WidgetConfig * Test framework uses Qt Test (QObject-based tests with initTestCase() and test methods) ================================================ FILE: CMakeLists.txt ================================================ cmake_minimum_required (VERSION 3.20) set(CMAKE_OSX_DEPLOYMENT_TARGET "12.1" CACHE STRING "Minimum OS X deployment version") project(VNote VERSION 3.20.1 DESCRIPTION "A pleasant note-taking platform" HOMEPAGE_URL "https://app.vnote.fun" LANGUAGES C CXX) set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type, defaults to Release") set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTORCC ON) set(QHOTKEY_INSTALL OFF CACHE BOOL "Disable installing QHotKey" FORCE) add_subdirectory(libs) add_subdirectory(src) # TODO: find a better way to organize tests # add_subdirectory(tests) ================================================ FILE: COPYING.LESSER ================================================ GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. ================================================ FILE: README.md ================================================ # VNote ![CI-Windows](https://github.com/vnotex/vnote/actions/workflows/ci-win.yml/badge.svg?branch=master) ![CI-Linux](https://github.com/vnotex/vnote/actions/workflows/ci-linux.yml/badge.svg?branch=master) ![CI-MacOS](https://github.com/vnotex/vnote/actions/workflows/ci-macos.yml/badge.svg?branch=master) [简体中文](README_zh_CN.md) [Project on Gitee](https://gitee.com/vnotex/vnote) A pleasant note-taking platform. For more information, please visit [**VNote's Home Page**](https://vnotex.github.io/vnote). ![VNote](pics/vnote.png) ## Description **VNote** is a Qt-based, free and open source note-taking application, focusing on Markdown now. VNote is designed to provide a pleasant note-taking platform with excellent editing experience. VNote is **NOT** just a simple editor for Markdown. By providing notes management, VNote makes taking notes in Markdown simpler. In the future, VNote will support more formats besides Markdown. Utilizing Qt, VNote could run on **Linux**, **Windows**, and **macOS**. ![Main](pics/main.png) ![Main2](pics/main2.png) ## Downloads Continuous builds on `master` branch could be found at the [Continuous Build](https://github.com/vnotex/vnote/releases/tag/continuous-build) release. Latest stable builds could be found at the [latest release](https://github.com/vnotex/vnote/releases/latest). Alternative download services are available: * [Tianyi Netdisk](https://cloud.189.cn/t/Av67NvmEJVBv) * [Baidu Netdisk](https://pan.baidu.com/s/1lX69oMBw8XuJshQDN3HiHw?pwd=f8fk) ## Supports * [GitHub Issues](https://github.com/vnotex/vnote/issues); * Email: `tamlokveer at gmail.com`; * [Telegram](https://t.me/vnotex); * WeChat Public Account: vnotex; Thank [users who donated to VNote](https://github.com/vnotex/vnote/wiki/Donate-List)! ## Development After cloning the repository, run the initialization script to set up your development environment: **Linux/macOS:** ```bash bash scripts/init.sh ``` **Windows:** ```cmd scripts\init.cmd ``` This script will: * Initialize and update all git submodules * Install pre-commit hooks for automatic code formatting with clang-format * Set up the vtextedit submodule pre-commit hook For more development guidelines, see [AGENTS.md](AGENTS.md). ## License VNote is licensed under [GNU LGPLv3](https://opensource.org/licenses/LGPL-3.0). Code base of VNote could be used freely by VNoteX. ================================================ FILE: README_zh_CN.md ================================================ # VNote ![CI-Windows](https://github.com/vnotex/vnote/actions/workflows/ci-win.yml/badge.svg?branch=master) ![CI-Linux](https://github.com/vnotex/vnote/actions/workflows/ci-linux.yml/badge.svg?branch=master) ![CI-MacOS](https://github.com/vnotex/vnote/actions/workflows/ci-macos.yml/badge.svg?branch=master) [English](README.md) [Gitee托管项目](https://gitee.com/vnotex/vnote) 一个舒适的笔记平台! 更多信息,请访问[VNote主页](https://vnotex.github.io/vnote)。 ![VNote](pics/vnote.png) ## 简介 **VNote**是一个专注于Markdown的基于Qt的开源免费的笔记应用。VNote希望能提供一个拥有完美编辑体验的舒适的笔记平台。 VNote不是一个简单的Markdown编辑器。通过提供强大的笔记管理,VNote使得使用Markdown记笔记更轻松简单。将来,VNote会支持更多的文档格式。 得益于Qt,VNote当前可以高效地运行在**Linux**,**Windows**,以及**macOS**平台上。 ![主界面](pics/main.png) ![主界面2](pics/main2.png) ## 下载 基于`master`分支的[持续构建版本发布](https://github.com/vnotex/vnote/releases/tag/continuous-build)。 最新的[稳定版本发布](https://github.com/vnotex/vnote/releases/latest)。其他下载选项: * [天翼云盘](https://cloud.189.cn/t/Av67NvmEJVBv) * [百度云盘](https://pan.baidu.com/s/1lX69oMBw8XuJshQDN3HiHw?pwd=f8fk) ## 支持 * [GitHub Issues](https://github.com/vnotex/vnote/issues); * 邮件:`tamlokveer at gmail.com`; * [Telegram](https://t.me/vnotex); * 微信公众号:`vnotex`; 感谢这些[捐赠用户](https://github.com/vnotex/vnote/wiki/Donate-List)! ## 开发 克隆仓库后,运行初始化脚本来设置开发环境: **Linux/macOS:** ```bash bash scripts/init.sh ``` **Windows:** ```cmd scripts\init.cmd ``` 此脚本将会: * 初始化并更新所有 git 子模块 * 安装用于自动代码格式化的 pre-commit 钩子(需要 clang-format) * 设置 vtextedit 子模块的 pre-commit 钩子 更多开发指南,请参考 [AGENTS.md](AGENTS.md)。 ## 许可 VNote遵循[GNU LGPLv3](https://opensource.org/licenses/LGPL-3.0)许可。VNote项目的代码可以自由给VNoteX项目使用。 ================================================ FILE: SECURITY.md ================================================ # Security Policy ## Supported Versions Only the latest version is supported with security updates. ## Reporting a Vulnerability Please [contact support](mailto:tamlokveer@gmail.com) **with a proof of concept** that shows the security vulnerability. Please do not contact us without this proof of concept, as we cannot fix anything without this. For general opinions on what makes an app more or less secure, please use the forum. ## Bounty We **do not** offer a bounty for discovering vulnerabilities, please do not ask. We can however credit you and link to your website/profile in the changelog and release announcement. ================================================ FILE: changes.md ================================================ # Changes ## v3.20.0 * MindMap: add outline and linking support * Refine themes * Support searching tags * Enhanced QuickAccess with unique id * NoteExplorer: support customizing node's color/background/outline * MarkdownEditor: support copying local GIF * Fix attachment and tag popup * InputMode: add VSCode input mode and keep the default Normal input mode simple ## v3.19.2 * Codesign MacOS Bundle * Fix toolbar expansion button style * Support hot-reloading of theme via --watch-themes option ## v3.19.1 * Fix toolbar button in Qt 6.8 ## v3.19.0 * Add VSCode-sytle editor shortcuts ## v3.18.1 * Fix crash caused by Qt6 change * Fix XSS protection exemption * Check link before open ## v3.18.0 * Upgrade to Qt6 * Support MacOS universal build * Upgrade Mermaid, Flowchart.js, and markdown-it * Markdown-it * Fix XSS protection and turn it on by default * Support mark by `==xx==` ## v3.17.0 * Quick note: create note in given scheme (@feloxx) * MarkdownEditor: support inserting multiple images (@feloxx) * Mermaid: upgrade and fix preview issue (@ygcaicn) * Flowchart.js: upgrade ## v3.16.0 * Support reading PDF format * Support Ming Map editor in suffix `*.emind` * Support "View By" for notebooks selector * ViewWindow: add shortcut Ctrl+G,V to alternate among view modes * Bug fixes ## v3.15.1 * Add two themes * Bug fixes ## v3.15.0 * Editor supports Word Count * Add Open Windows panel * Theme: add Vue-light theme * Support default open mode * NotebookSelector: support dynamic icons for notebooks ## v3.14.0 * Theme: support custom icons * Theme: refine icons * NavigationMode: fix issue for input method ## v3.13.1 * Shortcuts for Copy/Paste/Properties in node explorer * Global shortcut to call out main window * UnitedEntry: bug fix for macOS ## v3.13.0 * United Entry: migration of Universal Entry ## v3.12.888 * Fix shortcuts in key sequence with input method (like `Ctrl+G, E`) * Add line ending settings for config files * FindAndReplace: fix zero-length search * QuickAccess: support folders * Upgrade to Qt 5.15.2 * Support file associations * NewNoteDialog: remember default file type ## v3.12.0 * NotebookExplorer: support separate node explorer * Theme: add user-provided VSCode-Dark theme * MarkdownEditor: use web to highlight code blocks * MarkdownViewWindow * Add switch for code block line number * Fix ParseToMarkdown `")}catch(e){console}}function c(){a||(a=!0,i())}t=function(){var e,t,n,i;(i=document.createElement("div")).innerHTML=r,r=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(i=e,(n=t.firstChild).parentNode.insertBefore(i,n)):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=t,o=e.document,a=!1,(s=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(s,50)}c()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,c())})}(window)},848:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg=="},295:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+"}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={id:i,exports:{}};return e[i](a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href;var i={};return(()=>{"use strict";n.d(i,{default:()=>be});function e(e){return e.replace(/&/g,"&").replace(/e.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,(function(e,t,n,i){return"#"+("0"+Number(t).toString(16)).substr(-2)+("0"+Number(n).toString(16)).substr(-2)+("0"+Number(i).toString(16)).substr(-2)})),o=function(e,t){if((t=t||this.nodeData).id===e)return t;if(!t.children||!t.children.length)return null;for(let n=0;n{if(e.parent=t,e.children)for(let t=0;t{var n=Date.now();return function(){var i=this,o=arguments,a=Date.now();a-n>=t&&(e.apply(i,o),n=Date.now())}};function l(e,t,n,i){const o=i-t,a=e-n;let s=Math.atan(Math.abs(o)/Math.abs(a))/3.14*180;a<0&&o>0&&(s=180-s),a<0&&o<0&&(s=180+s),a>0&&o<0&&(s=360-s);var r=s+30;const l=s-30;return{x1:n+20*Math.cos(Math.PI*r/180),y1:i-20*Math.sin(Math.PI*r/180),x2:n+20*Math.cos(Math.PI*l/180),y2:i-20*Math.sin(Math.PI*l/180)}}function c(e,t,n){let i,o;const a=(e.cy-n)/(t-e.cx);return a>e.h/e.w||a<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/a,o=e.cy+e.h/2):(i=e.cx+e.h/2/a,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*a/2):(i=e.cx-e.w/2,o=e.cy+e.w*a/2),{x:i,y:o}}function d(e,t,n){let i,o;const a=(e.cy-n)/(t-e.cx);return a>e.h/e.w||a<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/a,o=e.cy+e.h/2):(i=e.cx+e.h/2/a,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*a/2):(i=e.cx-e.w/2,o=e.cy+e.w*a/2),{x:i,y:o}}function h(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}function p(e){const t=e.parent.children,n=t.indexOf(e);return t.splice(n,1),t.length}const u={afterMoving:!1,mousedown:!1,lastX:null,lastY:null,onMove(e,t){if(this.mousedown){if(this.afterMoving=!0,!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+i),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.afterMoving=!1,this.mousedown=!1,this.lastX=null,this.lastY=null}};function m(e){this.dom=e,this.mousedown=!1,this.lastX=null,this.lastY=null}m.prototype.init=function(e,t){this.handleMouseMove=e=>{if(e.stopPropagation(),this.mousedown){if(!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t(n,i),this.lastX=e.pageX,this.lastY=e.pageY}},this.handleMouseDown=e=>{e.stopPropagation(),this.mousedown=!0},this.handleClear=e=>{e.stopPropagation(),this.clear()},e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("mouseleave",this.handleClear),e.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},m.prototype.destory=function(e){e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("mouseleave",this.handleClear),e.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},m.prototype.clear=function(){this.mousedown=!1,this.lastX=null,this.lastY=null};const f=document,g=(e,t)=>(t?t.mindElixirBox:f).querySelector(`[data-nodeid=me${e}]`),b=function(t,n){if(t.textContent=n.topic,n.style&&(t.style.color=n.style.color||"inherit",t.style.background=n.style.background||"inherit",t.style.fontSize=n.style.fontSize+"px",t.style.fontWeight=n.style.fontWeight||"normal"),n.hyperLink){const e=f.createElement("a");e.className="hyper-link",e.target="_blank",e.innerText="🔗",e.href=n.hyperLink,t.appendChild(e),t.linkContainer=e}else t.linkContainer&&(t.linkContainer.remove(),t.linkContainer=null);if(n.icons&&n.icons.length){const i=f.createElement("span");i.className="icons",i.innerHTML=n.icons.map((t=>`${e(t)}`)).join(""),t.appendChild(i)}if(n.tags&&n.tags.length){const i=f.createElement("div");i.className="tags",i.innerHTML=n.tags.map((t=>`${e(t)}`)).join(""),t.appendChild(i)}};const y=function(e){const t=f.createElement("epd");return t.expanded=!1!==e,t.className=!1!==e?"minus":"",t};const x=document,N="http://www.w3.org/2000/svg",v=function(e){const t=x.createElementNS(N,"svg");return t.setAttribute("class",e),t},M=function(e,t,n,i){const o=x.createElementNS(N,"line");return o.setAttribute("x1",e),o.setAttribute("y1",t),o.setAttribute("x2",n),o.setAttribute("y2",i),o.setAttribute("stroke","#bbb"),o.setAttribute("fill","none"),o.setAttribute("stroke-width","2"),o},k=function(e){const t=x.createElementNS(N,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#555"),t.setAttribute("fill","none"),t.setAttribute("stroke-linecap","square"),t.setAttribute("stroke-width","1"),t};function C(e){return e.isFocusMode?e.nodeDataBackup:e.nodeData}const z=document,w=function(e,t){if(!e)return;const n=e.nodeObj;!1===n.expanded&&(this.expandNode(e,!0),e=g(n.id));const i=t||this.generateNewObj();n.children?n.children.push(i):n.children=[i],a(this.nodeData);const o=e.parentElement,{grp:s,top:r}=this.createGroup(i);if("T"===o.tagName){if(o.children[1])o.nextSibling.appendChild(s);else{const e=z.createElement("children");e.appendChild(s),o.appendChild(y(!0)),o.insertAdjacentElement("afterend",e)}this.linkDiv(s.offsetParent)}else"ROOT"===o.tagName&&(this.judgeDirection(s,i),o.nextSibling.appendChild(s),this.linkDiv());return{newTop:r,newNodeObj:i}};function j(e,t,n){let i="";const o=t.offsetTop,a=t.offsetLeft,s=t.offsetWidth,r=t.offsetHeight;for(let t=0;t0&&(i+=j(x,c))}return i}function L({x1:e,y1:t,x2:n,y2:i}){return`M ${e} 10000 V ${i>t?i-20:i+20} C ${e} ${i} ${e} ${i} ${n>e?e+20:e-20} ${i} H ${n}`}function E({x1:e,y1:t,x2:n,y2:i}){return`M ${e} ${t} Q ${e} ${i} ${n} ${i}`}function S({x1:e,y1:t,x2:n,y2:i,xMiddle:o}){return it-50?`M ${e} ${t} H ${o} V ${i} H ${n}`:i>=t?`M ${e} ${t} H ${o} V ${i-8} A 8 8 0 0 ${e>n?1:0} ${e>n?o-8:o+8} ${i} H ${n}`:`M ${e} ${t} H ${o} V ${i+8} A 8 8 0 0 ${e>n?0:1} ${e>n?o-8:o+8} ${i} H ${n}`}const D={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",font:"文字",background:"背景",tag:"标签",icon:"图标",tagsSeparate:"多个标签半角逗号分隔",iconsSeparate:"多个图标半角逗号分隔",url:"URL"},T={cn:D,zh_CN:D,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",font:"文字",background:"背景",tag:"標簽",icon:"圖標",tagsSeparate:"多個標簽半角逗號分隔",iconsSeparate:"多個圖標半角逗號分隔",url:"URL"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node",font:"Font",background:"Background",tag:"Tag",icon:"Icon",tagsSeparate:"Separate tags by comma",iconsSeparate:"Separate icons by comma",url:"URL"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел",font:"Цвет шрифта",background:"Цвет фона",tag:"Тег",icon:"Иконка",tagsSeparate:"Разделяйте теги запятой",iconsSeparate:"Разделяйте иконки запятой"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",font:"フォント",background:"バックグラウンド",tag:"タグ",icon:"アイコン",tagsSeparate:"複数タグはカンマ区切り",iconsSeparate:"複数アイコンはカンマ区切り",url:"URL"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo",font:"Fonte",background:"Cor de fundo",tag:"Tag",icon:"Icone",tagsSeparate:"Separe tags por virgula",iconsSeparate:"Separe icones por virgula",url:"URL"}};var A=n(379),I=n.n(A),O=n(795),P=n.n(O),$=n(569),H=n.n($),Y=n(565),B=n.n(Y),R=n(216),Z=n.n(R),V=n(589),F=n.n(V),W=n(165),q={};q.styleTagTransform=F(),q.setAttributes=B(),q.insert=H().bind(null,"head"),q.domAPI=P(),q.insertStyleElement=Z();I()(W.Z,q);W.Z&&W.Z.locals&&W.Z.locals;function U(t,n){const i=(t,n,i)=>{const o=document.createElement("li");return o.id=t,o.innerHTML=`${e(n)}${e(i)}`,o},o=T[t.locale]?t.locale:"en",a=i("cm-add_child",T[o].addChild,"tab"),s=i("cm-add_parent",T[o].addParent,""),r=i("cm-add_sibling",T[o].addSibling,"enter"),l=i("cm-remove_child",T[o].removeNode,"delete"),c=i("cm-fucus",T[o].focus,""),d=i("cm-unfucus",T[o].cancelFocus,""),h=i("cm-up",T[o].moveUp,"PgUp"),p=i("cm-down",T[o].moveDown,"Pgdn"),u=i("cm-down",T[o].link,""),m=document.createElement("ul");if(m.className="menu-list",m.appendChild(a),m.appendChild(s),m.appendChild(r),m.appendChild(l),n&&!n.focus||(m.appendChild(c),m.appendChild(d)),m.appendChild(h),m.appendChild(p),n&&!n.link||m.appendChild(u),n&&n.extend)for(let e=0;e{t.onclick(e)}}const f=document.createElement("cmenu");f.appendChild(m),f.hidden=!0,t.container.append(f);let g=!0;t.container.oncontextmenu=function(e){if(e.preventDefault(),!t.editable)return;const n=e.target;if("TPC"===n.tagName){g="ROOT"===n.parentElement.tagName,g?(c.className="disabled",h.className="disabled",p.className="disabled",r.className="disabled",l.className="disabled"):(c.className="",h.className="",p.className="",r.className="",l.className=""),t.selectNode(n),f.hidden=!1;const i=m.offsetHeight,o=m.offsetWidth;i+e.clientY>window.innerHeight?(m.style.top="",m.style.bottom="0px"):(m.style.bottom="",m.style.top=e.clientY+15+"px"),o+e.clientX>window.innerWidth?(m.style.left="",m.style.right="0px"):(m.style.right="",m.style.left=e.clientX+10+"px")}},f.onclick=e=>{e.target===f&&(f.hidden=!0)},a.onclick=e=>{t.addChild(),f.hidden=!0},s.onclick=e=>{t.insertParent(),f.hidden=!0},r.onclick=e=>{g||(t.insertSibling(),f.hidden=!0)},l.onclick=e=>{g||(t.removeNode(),f.hidden=!0)},c.onclick=e=>{g||(t.focusNode(t.currentNode),f.hidden=!0)},d.onclick=e=>{t.cancelFocus(),f.hidden=!0},h.onclick=e=>{g||(t.moveUpNode(),f.hidden=!0)},p.onclick=e=>{g||(t.moveDownNode(),f.hidden=!0)},u.onclick=e=>{f.hidden=!0;const n=t.currentNode,i=(e=>{const t=document.createElement("div");return t.innerText=e,t.style.cssText="position:absolute;bottom:20px;left:50%;transform:translateX(-50%);",t})(T[o].clickTips);t.container.appendChild(i),t.map.addEventListener("click",(e=>{e.preventDefault(),i.remove(),"T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||t.createLink(n,t.currentNode)}),{once:!0})}}var G=n(301),X={};X.styleTagTransform=F(),X.setAttributes=B(),X.insert=H().bind(null,"head"),X.domAPI=P(),X.insertStyleElement=Z();I()(G.Z,X);G.Z&&G.Z.locals&&G.Z.locals;const _=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=``,n};function J(e){e.container.append(function(e){const t=document.createElement("toolbar"),n=_("fullscreen","full"),i=_("toCenter","living"),o=_("zoomout","move"),a=_("zoomin","add");return document.createElement("span").innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(a),t.className="rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},a.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("toolbar"),n=_("tbltl","left"),i=_("tbltr","right"),o=_("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}var Q=n(519),K={};K.styleTagTransform=F(),K.setAttributes=B(),K.insert=H().bind(null,"head"),K.domAPI=P(),K.insertStyleElement=Z();I()(Q.Z,K);Q.Z&&Q.Z.locals&&Q.Z.locals;const ee=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=t,n},te=["#2c3e50","#34495e","#7f8c8d","#94a5a6","#bdc3c7","#ecf0f1","#8e44ad","#9b59b6","#2980b9","#3298db","#c0392c","#e74c3c","#d35400","#f39c11","#f1c40e","#17a085","#27ae61","#2ecc71"];var ne=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function r(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,r)}l((i=i.apply(e,t||[])).next())}))};const ie=document,oe=function(e){if(!e)return;const t=e.getElementsByClassName("insert-preview");for(const e of t||[])e.remove()},ae=function(e,t){const n=t.parentNode.parentNode.contains(e);return e&&"TPC"===e.tagName&&e!==t&&!n&&!0!==e.nodeObj.root};function se(e){let t,n,i;e.map.addEventListener("dragstart",(function(e){t=e.target,t.parentNode.parentNode.style.opacity="0.5",u.clear()})),e.map.addEventListener("dragend",(function(o){return ne(this,void 0,void 0,(function*(){o.target.style.opacity="",oe(i);const a=t.nodeObj;switch(n){case"before":e.moveNodeBefore(t,i),e.selectNode(g(a.id));break;case"after":e.moveNodeAfter(t,i),e.selectNode(g(a.id));break;case"in":e.moveNode(t,i)}t.parentNode.parentNode.style.opacity="1",t=null}))})),e.map.addEventListener("dragover",r((function(e){oe(i);const o=ie.elementFromPoint(e.clientX,e.clientY-12);if(ae(o,t)){i=o;const t=o.getBoundingClientRect().y;e.clientY>t+o.clientHeight?n="after":e.clientY>t+o.clientHeight/2&&(n="in")}else{const o=ie.elementFromPoint(e.clientX,e.clientY+12);if(ae(o,t)){i=o;const t=o.getBoundingClientRect().y;e.clientY0)n[0].className=i;else{const t=ie.createElement("div");t.className=i,e.appendChild(t)}}(i,n)}),200))}var re=n(787),le={};le.styleTagTransform=F(),le.setAttributes=B(),le.insert=H().bind(null,"head"),le.domAPI=P(),le.insertStyleElement=Z();I()(re.Z,le);re.Z&&re.Z.locals&&re.Z.locals;function ce(){this.handlers={}}ce.prototype={showHandler:function(){},addListener:function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,...t){if(this.handlers[e]instanceof Array)for(var n=this.handlers[e],i=0;i{this.isUndo?this.isUndo=!1:["moveNode","removeNode","addChild","finishEdit","editStyle","editTags","editIcons"].includes(e.name)&&this.history.push(e)})),this.history=[],this.isUndo=!1,this.undo=function(){const e=this.history.pop();e&&(this.isUndo=!0,"moveNode"===e.name?this.moveNode(ue(e.obj.fromObj.id),ue(e.obj.originParentId)):"removeNode"===e.name?e.originSiblingId?this.insertBefore(ue(e.originSiblingId),e.obj):this.addChild(ue(e.originParentId),e.obj):"addChild"===e.name||"copyNode"===e.name?this.removeNode(ue(e.obj.id)):"finishEdit"===e.name?this.setNodeTopic(ue(e.obj.id),e.origin):this.isUndo=!1)},this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=me.createElement("div"),this.container.className="map-container",this.map=me.createElement("div"),this.map.className="map-canvas",this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=me.createElement("root"),this.box=me.createElement("children"),this.box.className="box",this.lines=v("lines"),this.linkController=v("linkcontroller"),this.P2=me.createElement("div"),this.P3=me.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=M(0,0,0,0),this.line2=M(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=v("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.box),this.map.appendChild(this.lines),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.overflowHidden?this.container.style.overflow="hidden":((k=this).map.addEventListener("click",(e=>{"EPD"===e.target.nodeName?k.expandNode(e.target.previousSibling):"T"===e.target.parentElement.nodeName||"ROOT"===e.target.parentElement.nodeName?k.selectNode(e.target,!1,e):"path"===e.target.nodeName?"g"===e.target.parentElement.nodeName&&k.selectLink(e.target.parentElement):"circle"===e.target.className||(k.unselectNode(),k.hideLinkController&&k.hideLinkController())})),k.map.addEventListener("dblclick",(e=>{e.preventDefault(),k.editable&&("T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||k.beginEdit(e.target))})),k.map.addEventListener("mousemove",(e=>{"true"!==e.target.contentEditable&&u.onMove(e,k.container)})),k.map.addEventListener("mousedown",(e=>{"true"!==e.target.contentEditable&&(u.afterMoving=!1,u.mousedown=!0)})),k.map.addEventListener("mouseleave",(e=>{u.clear()})),k.map.addEventListener("mouseup",(e=>{u.clear()})))}function ge(e,t){return function(...n){return pe(this,void 0,void 0,(function*(){this.before[t]&&!(yield this.before[t].apply(this,n))||e.apply(this,n)}))}}fe.prototype={addParentLink:a,getObjById:o,generateNewObj:function(){const e=h();return{topic:this.newTopicName||"new node",id:e}},insertSibling:ge((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return void this.addChild();const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n.splice(i+1,0,t)}(i,o),a(this.nodeData);const s=n.parentElement,{grp:r,top:l}=this.createGroup(o),c=s.parentNode.parentNode;c.insertBefore(r,s.parentNode.nextSibling),"box"===c.className?(this.judgeDirection(r,o),this.linkDiv()):this.linkDiv(r.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}),"insertSibling"),insertBefore:ge((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return void this.addChild();const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n.splice(i,0,t)}(i,o),a(this.nodeData);const s=n.parentElement,{grp:r,top:l}=this.createGroup(o),c=s.parentNode.parentNode;c.insertBefore(r,s.parentNode),"box"===c.className?(this.judgeDirection(r,o),this.linkDiv()):this.linkDiv(r.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}),"insertBefore"),insertParent:ge((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return;const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n[i]=t,t.children=[e]}(i,o),a(this.nodeData);const s=n.parentElement.parentElement,{grp:r,top:l}=this.createGroup(o,!0);l.appendChild(y(!0));const c=s.parentNode;s.insertAdjacentElement("afterend",r);const d=z.createElement("children");d.appendChild(s),l.insertAdjacentElement("afterend",d),"box"===c.className?(r.className=s.className,s.className="",s.querySelector(".subLines").remove(),this.linkDiv()):this.linkDiv(r.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertParent",obj:o})}),"insertParent"),addChild:ge((function(e,t){const n=e||this.currentNode;if(!n)return;const{newTop:i,newNodeObj:o}=w.call(this,n,t);this.bus.fire("operation",{name:"addChild",obj:o}),t||this.createInputDiv(i.children[0]),this.selectNode(i.children[0],!0)}),"addChild"),copyNode:ge((function(e,t){const n=JSON.parse(JSON.stringify(e.nodeObj,((e,t)=>{if("parent"!==e)return t})));s(n);const{newNodeObj:i}=w.call(this,t,n);this.bus.fire("operation",{name:"copyNode",obj:i})}),"copyNode"),moveNode:ge((function(e,t){const n=e.nodeObj,i=t.nodeObj,o=n.parent.id;if(!1===i.expanded&&(this.expandNode(t,!0),e=g(n.id),t=g(i.id)),!function(e,t){let n=!0;for(;t.parent;){if(t.parent===e){n=!1;break}t=t.parent}return n}(n,i))return;!function(e,t){p(e),t.children?t.children.push(e):t.children=[e]}(n,i),a(this.nodeData);const s=e.parentElement,r=s.parentNode.parentNode,l=t.parentElement;if("box"===r.className?s.parentNode.lastChild.remove():"box"===s.parentNode.className&&(s.style.cssText=""),"T"===l.tagName)if("box"===r.className&&(s.parentNode.className=""),l.children[1])l.nextSibling.appendChild(s.parentNode);else{const e=z.createElement("children");e.appendChild(s.parentNode),l.appendChild(y(!0)),l.parentElement.insertBefore(e,l.nextSibling)}else"ROOT"===l.tagName&&(this.judgeDirection(s.parentNode,n),l.nextSibling.appendChild(s.parentNode));this.linkDiv(),this.bus.fire("operation",{name:"moveNode",obj:{fromObj:n,toObj:i,originParentId:o}})}),"moveNode"),removeNode:ge((function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;if(!0===n.root)throw new Error("Can not remove root node");const i=n.parent.children.findIndex((e=>e===n)),o=n.parent.children[i+1],a=o&&o.id,s=p(n),r=t.parentNode;if("ROOT"!==r.tagName){if(0===s){const e=r.parentNode.parentNode.previousSibling;"ROOT"!==e.tagName&&e.children[1].remove(),this.selectParent()}else{this.selectPrevSibling()||this.selectNextSibling()}for(const e in this.linkData){const t=this.linkData[e];t.from!==r.firstChild&&t.to!==r.firstChild||this.removeLink(this.mindElixirBox.querySelector(`[data-linkid=${this.linkData[e].id}]`))}r.parentNode.remove(),this.linkDiv(),this.bus.fire("operation",{name:"removeNode",obj:n,originSiblingId:a,originParentId:n.parent.id})}}),"removeNode"),moveUpNode:ge((function(e){const t=e||this.currentNode;if(!t)return;const n=t.parentNode.parentNode,i=t.nodeObj;!function(e){const t=e.parent.children,n=t.indexOf(e),i=t[n];0===n?(t[n]=t[t.length-1],t[t.length-1]=i):(t[n]=t[n-1],t[n-1]=i)}(i),n.parentNode.insertBefore(n,n.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:i})}),"moveUpNode"),moveDownNode:ge((function(e){const t=e||this.currentNode;if(!t)return;const n=t.parentNode.parentNode,i=t.nodeObj;!function(e){const t=e.parent.children,n=t.indexOf(e),i=t[n];n===t.length-1?(t[n]=t[0],t[0]=i):(t[n]=t[n+1],t[n+1]=i)}(i),n.nextSibling?n.insertAdjacentElement("afterend",n.nextSibling):n.parentNode.prepend(n),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:i})}),"moveDownNode"),beginEdit:ge((function(e){const t=e||this.currentNode;t&&this.createInputDiv(t)}),"beginEdit"),moveNodeBefore:ge((function(e,t){const n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){p(e);const n=t.parent.children;let i=0;for(let e=0;e{e-=s/this.scaleVal,t-=r/this.scaleVal;const l=c(a,e,t);h=l.x,p=l.y,this.P2.style.top=t+"px",this.P2.style.left=e+"px",this.currentLink.children[0].setAttribute("d",`M ${h} ${p} C ${e} ${t} ${n} ${i} ${f} ${g}`),this.line1.setAttribute("x1",h),this.line1.setAttribute("y1",p),this.line1.setAttribute("x2",e),this.line1.setAttribute("y2",t),o.delta1.x=e-a.cx,o.delta1.y=t-a.cy})),this.helper2.init(this.map,((a,r)=>{n-=a/this.scaleVal,i-=r/this.scaleVal;const c=d(s,n,i);f=c.x,g=c.y;const u=l(n,i,f,g);this.P3.style.top=i+"px",this.P3.style.left=n+"px",this.currentLink.children[0].setAttribute("d",`M ${h} ${p} C ${e} ${t} ${n} ${i} ${f} ${g}`),this.currentLink.children[1].setAttribute("d",`M ${u.x1} ${u.y1} L ${f} ${g} L ${u.x2} ${u.y2}`),this.line2.setAttribute("x1",n),this.line2.setAttribute("y1",i),this.line2.setAttribute("x2",f),this.line2.setAttribute("y2",g),o.delta2.x=n-s.cx,o.delta2.y=i-s.cy}))},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=this.createTopic(this.nodeData);b(e,this.nodeData),e.draggable=!1,this.root.appendChild(e);const t=this.nodeData.children;if(t&&0!==t.length){if(2===this.direction){let e=0,n=0;t.map((t=>{void 0===t.direction?e<=n?(t.direction=0,e+=1):(t.direction=1,n+=1):0===t.direction?e+=1:n+=1}))}this.createChildren(this.nodeData.children,this.box,this.direction)}},linkDiv:function(e){var t=this.primaryNodeHorizontalGap||65,n=this.primaryNodeVerticalGap||25;const i=this.root;i.style.cssText=`top:${1e4-i.offsetHeight/2}px;left:${1e4-i.offsetWidth/2}px;`;const o=this.box.children;this.lines.innerHTML="";let a,s,r=0,l=0,c=0,d=0,h=0,p=0;if(2===this.direction){let e=0,t=0,i=0,r=0;for(let a=0;ap?(s=1e4-Math.max(h)/2,a="r",l=(h-r)/(t-1)):(s=1e4-Math.max(p)/2,a="l",l=(p-i)/(e-1))}else{for(let e=0;e{e.stopPropagation();const t=e.key;if("Enter"===t||"Tab"===t){if(e.shiftKey)return;e.preventDefault(),this.inputDiv.blur(),this.map.focus()}})),t.addEventListener("blur",(()=>{if(!t)return;const i=e.nodeObj,o=t.textContent.trim();i.topic=""===o?n:o,t.remove(),this.inputDiv=t=null,o!==n&&(e.childNodes[0].textContent=i.topic,this.linkDiv(),this.bus.fire("operation",{name:"finishEdit",obj:i,origin:n}))}))},createChildren:function(e,t,n){let i;i=t||f.createElement("children");for(let t=0;t0){if(s.appendChild(y(o.expanded)),a.appendChild(s),!1!==o.expanded){const e=this.createChildren(o.children);a.appendChild(e)}}else a.appendChild(s);i.appendChild(a)}return i},createGroup:function(e,t){const n=f.createElement("GRP"),i=this.createTop(e);if(n.appendChild(i),!t&&e.children&&e.children.length>0&&(i.appendChild(y(e.expanded)),!1!==e.expanded)){const t=this.createChildren(e.children);n.appendChild(t)}return{grp:n,top:i}},createTop:function(e){const t=f.createElement("t"),n=this.createTopic(e);return b(n,e),t.appendChild(n),t},createTopic:function(e){const t=f.createElement("tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t},selectNode:function(e,t,n){if(e){if("string"==typeof e)return this.selectNode(g(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj,n):this.bus.fire("selectNode",e.nodeObj,n)}},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},selectNextSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.nextSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i+1=0))return!1;t=e[i-1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectFirstChild:function(){if(!this.currentNode)return;const e=this.currentNode.parentElement.nextSibling;if(e&&e.firstChild){const t=e.firstChild.firstChild.firstChild;this.selectNode(t)}},selectParent:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.parentElement.previousSibling;if(e){const t=e.firstChild;this.selectNode(t)}},getAllDataString:function(){const e={nodeData:C(this),linkData:this.linkData,direction:this.direction};return JSON.stringify(e,((e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getAllData:function(){const e={nodeData:C(this),linkData:this.linkData,direction:this.direction};return JSON.parse(JSON.stringify(e,((e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t})))},getAllDataMd:function(){const e=C(this);let t="# "+e.topic+"\n\n";return function e(n,i){for(let o=0;o\n ${["15","24","32"].map((e=>`
\n
`)).join("")}
\n \n
\n ${te.map((e=>`
`)).join("")}\n
\n
\n ${T[n].font}\n ${T[n].background}\n
`),o=ee("nm-tag",`${T[n].tag}`),a=ee("nm-icon",`${T[n].icon}`),s=ee("nm-url",`${T[n].url}`),r=ee("nm-memo",`${T[n].memo||"Memo"}