Showing preview only (8,684K chars total). Download the full file or copy to clipboard to get everything.
Repository: massCodeIO/massCode
Branch: main
Commit: 682b402df9c5
Files: 614
Total size: 8.2 MB
Directory structure:
gitextract_ny75g84n/
├── .claude/
│ └── settings.json
├── .gemini/
│ └── settings.json
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.yml
│ │ └── config.yml
│ ├── PULL_REQUEST_TEMPLATE.md
│ └── workflows/
│ ├── build-sponsored.yml
│ ├── issue-close-require.yml
│ ├── issue-labeled.yml
│ └── release.yml
├── .gitignore
├── .prettierrc
├── AGENTS.md
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── build/
│ ├── entitlements.mac.inherit.plist
│ └── icons/
│ └── icon.icns
├── commitlint.config.js
├── components.json
├── electron-builder.json
├── electron-builder.sponsored.json
├── eslint.config.js
├── nodemon.json
├── package.json
├── postcss.config.js
├── scripts/
│ ├── api-generate.js
│ ├── bench-load-test.js
│ ├── bench-seed.js
│ └── copy-locales.js
├── src/
│ ├── main/
│ │ ├── api/
│ │ │ ├── dto/
│ │ │ │ ├── common/
│ │ │ │ │ ├── query.ts
│ │ │ │ │ └── response.ts
│ │ │ │ ├── folders.ts
│ │ │ │ ├── snippet-contents.ts
│ │ │ │ ├── snippets.ts
│ │ │ │ └── tags.ts
│ │ │ ├── index.ts
│ │ │ └── routes/
│ │ │ ├── folders.ts
│ │ │ ├── snippets.ts
│ │ │ ├── system.ts
│ │ │ └── tags.ts
│ │ ├── currencyRates.ts
│ │ ├── db/
│ │ │ ├── index.ts
│ │ │ ├── migrate.ts
│ │ │ └── types/
│ │ │ └── index.ts
│ │ ├── i18n/
│ │ │ ├── index.ts
│ │ │ ├── language.ts
│ │ │ └── locales/
│ │ │ ├── README.md
│ │ │ ├── cs_CZ/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── de_DE/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── el_GR/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── en_US/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── es_ES/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── fa_IR/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── fr_FR/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── ja_JP/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── pl_PL/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── pt_BR/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── ro_RO/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── ru_RU/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── tr_TR/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── uk_UA/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── zh_CN/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ ├── zh_HK/
│ │ │ │ ├── devtools.json
│ │ │ │ ├── menu.json
│ │ │ │ ├── messages.json
│ │ │ │ ├── preferences.json
│ │ │ │ └── ui.json
│ │ │ └── zh_TW/
│ │ │ ├── devtools.json
│ │ │ ├── menu.json
│ │ │ ├── messages.json
│ │ │ ├── preferences.json
│ │ │ └── ui.json
│ │ ├── index.ts
│ │ ├── ipc/
│ │ │ ├── handlers/
│ │ │ │ ├── db.ts
│ │ │ │ ├── dialog.ts
│ │ │ │ ├── fs.ts
│ │ │ │ ├── prettier.ts
│ │ │ │ ├── spaces.ts
│ │ │ │ ├── system.ts
│ │ │ │ └── theme.ts
│ │ │ └── index.ts
│ │ ├── menu/
│ │ │ ├── main.ts
│ │ │ └── utils/
│ │ │ └── index.ts
│ │ ├── preload.ts
│ │ ├── storage/
│ │ │ ├── contracts.ts
│ │ │ ├── index.ts
│ │ │ └── providers/
│ │ │ ├── markdown/
│ │ │ │ ├── index.ts
│ │ │ │ ├── migrations.ts
│ │ │ │ ├── runtime/
│ │ │ │ │ ├── constants.ts
│ │ │ │ │ ├── index.ts
│ │ │ │ │ ├── normalizers.ts
│ │ │ │ │ ├── parser.ts
│ │ │ │ │ ├── paths.ts
│ │ │ │ │ ├── search.ts
│ │ │ │ │ ├── snippets.ts
│ │ │ │ │ ├── spaceState.ts
│ │ │ │ │ ├── spaces.ts
│ │ │ │ │ ├── state.ts
│ │ │ │ │ ├── sync.ts
│ │ │ │ │ ├── types.ts
│ │ │ │ │ └── validation.ts
│ │ │ │ ├── storages/
│ │ │ │ │ ├── folders.ts
│ │ │ │ │ ├── index.ts
│ │ │ │ │ ├── snippets.ts
│ │ │ │ │ └── tags.ts
│ │ │ │ └── watcher.ts
│ │ │ └── sqlite/
│ │ │ ├── folders.ts
│ │ │ ├── index.ts
│ │ │ ├── snippets.ts
│ │ │ └── tags.ts
│ │ ├── store/
│ │ │ ├── constants.ts
│ │ │ ├── index.ts
│ │ │ ├── module/
│ │ │ │ ├── app.ts
│ │ │ │ ├── currency-rates.ts
│ │ │ │ ├── math-notebook.ts
│ │ │ │ └── preferences.ts
│ │ │ └── types/
│ │ │ ├── index.ts
│ │ │ └── theme.ts
│ │ ├── types/
│ │ │ ├── index.ts
│ │ │ └── ipc.ts
│ │ ├── updates/
│ │ │ └── index.ts
│ │ └── utils/
│ │ └── index.ts
│ └── renderer/
│ ├── App.vue
│ ├── components/
│ │ ├── app-space-shell/
│ │ │ └── AppSpaceShell.vue
│ │ ├── code-space-layout/
│ │ │ └── CodeSpaceLayout.vue
│ │ ├── devtools/
│ │ │ ├── ShadcnComparison.vue
│ │ │ ├── converters/
│ │ │ │ ├── Base64Converter.vue
│ │ │ │ ├── CaseConverter.vue
│ │ │ │ ├── ColorConverter.vue
│ │ │ │ ├── JsonToToml.vue
│ │ │ │ ├── JsonToXml.vue
│ │ │ │ ├── JsonToYaml.vue
│ │ │ │ ├── TextToAsciiBinary.vue
│ │ │ │ └── TextToUnicode.vue
│ │ │ ├── crypto/
│ │ │ │ ├── Hash.vue
│ │ │ │ ├── Hmac.vue
│ │ │ │ ├── Password.vue
│ │ │ │ └── Uuid.vue
│ │ │ ├── generators/
│ │ │ │ ├── JsonGenerator.vue
│ │ │ │ └── LoremIpsumGenerator.vue
│ │ │ ├── shadcn-comparison/
│ │ │ │ ├── RootUi.vue
│ │ │ │ ├── Shadcn2.vue
│ │ │ │ └── copy.ts
│ │ │ └── web/
│ │ │ ├── Slugify.vue
│ │ │ ├── UrlEncoder.vue
│ │ │ └── UrlParser.vue
│ │ ├── editor/
│ │ │ ├── Description.vue
│ │ │ ├── Editor.vue
│ │ │ ├── Footer.vue
│ │ │ ├── Tab.vue
│ │ │ ├── code-image/
│ │ │ │ ├── BackgroundSwitch.vue
│ │ │ │ └── CodeImage.vue
│ │ │ ├── grammars/
│ │ │ │ ├── auxiliary-grammars.ts
│ │ │ │ ├── index.ts
│ │ │ │ ├── languages.ts
│ │ │ │ └── textmate/
│ │ │ │ ├── abap.tmLanguage.json
│ │ │ │ ├── abc.tmLanguage.json
│ │ │ │ ├── actionscript-3.tmLanguage.json
│ │ │ │ ├── ada.tmLanguage.json
│ │ │ │ ├── alda.tmLanguage.json
│ │ │ │ ├── apache.tmLanguage.json
│ │ │ │ ├── apex.tmLanguage.json
│ │ │ │ ├── applescript.tmLanguage.json
│ │ │ │ ├── arm.tmLanguage.json
│ │ │ │ ├── asciidoctor.tmLanguage.json
│ │ │ │ ├── asl.tmLanguage.json
│ │ │ │ ├── asm.tmLanguage.json
│ │ │ │ ├── asp-vb-net.tmlanguage.json
│ │ │ │ ├── asymptote.tmLanguage.json
│ │ │ │ ├── autohotkey.tmLanguage.json
│ │ │ │ ├── batchfile.tmLanguage.json
│ │ │ │ ├── bibtex.tmLanguage.json
│ │ │ │ ├── bicep.tmLanguage.json
│ │ │ │ ├── c.tmLanguage.json
│ │ │ │ ├── cfscript.tmLanguage.json
│ │ │ │ ├── cirru.tmLanguage.json
│ │ │ │ ├── clojure.tmLanguage.json
│ │ │ │ ├── cobol.tmLanguage.json
│ │ │ │ ├── coffee.tmLanguage.json
│ │ │ │ ├── coldfusion.tmLanguage.json
│ │ │ │ ├── cpp-embedded-latex.tmLanguage.json
│ │ │ │ ├── cpp.embedded.macro.tmLanguage.json
│ │ │ │ ├── cpp.tmLanguage.json
│ │ │ │ ├── crystal.tmLanguage.json
│ │ │ │ ├── csharp.tmLanguage.json
│ │ │ │ ├── csound-document.tmLanguage.json
│ │ │ │ ├── csound-score.tmLanguage.json
│ │ │ │ ├── csound.tmLanguage.json
│ │ │ │ ├── css.tmLanguage.json
│ │ │ │ ├── curly.tmLanguage.json
│ │ │ │ ├── d.tmLanguage.json
│ │ │ │ ├── dart.tmLanguage.json
│ │ │ │ ├── diff.tmLanguage.json
│ │ │ │ ├── django.tmLanguage.json
│ │ │ │ ├── docker.tmLanguage.json
│ │ │ │ ├── dot.tmLanguage.json
│ │ │ │ ├── drools.tmLanguage.json
│ │ │ │ ├── edifact.tmLanguage.json
│ │ │ │ ├── eex.tmLanguage.json
│ │ │ │ ├── eiffel.tmLanguage.json
│ │ │ │ ├── ejs.tmLanguage.json
│ │ │ │ ├── elixir.tmLanguage.json
│ │ │ │ ├── elm.tmLanguage.json
│ │ │ │ ├── erlang.tmLanguage.json
│ │ │ │ ├── etc.tmLanguage.json
│ │ │ │ ├── forth.tmLanguage.json
│ │ │ │ ├── fortran.tmLanguage.json
│ │ │ │ ├── fsharp.tmLanguage.json
│ │ │ │ ├── gcode.tmLanguage.json
│ │ │ │ ├── gherkin.tmLanguage.json
│ │ │ │ ├── git-commit.tmLanguage.json
│ │ │ │ ├── git-rebase.tmLanguage.json
│ │ │ │ ├── gitignore.tmLanguage.json
│ │ │ │ ├── glsl.tmLanguage.json
│ │ │ │ ├── gnuplot.tmLanguage.json
│ │ │ │ ├── go.tmLanguage.json
│ │ │ │ ├── graphql.tmLanguage.json
│ │ │ │ ├── groovy.tmLanguage.json
│ │ │ │ ├── haml.tmLanguage.json
│ │ │ │ ├── handlebars.tmLanguage.json
│ │ │ │ ├── haskell-cabal.tmLanguage.json
│ │ │ │ ├── haskell.tmLanguage.json
│ │ │ │ ├── haxe.tmLanguage.json
│ │ │ │ ├── hjson.tmLanguage.json
│ │ │ │ ├── html-cfml.tmLanguage.json
│ │ │ │ ├── html-derivative.tmLanguage.json
│ │ │ │ ├── html-django.tmLanguage.json
│ │ │ │ ├── html-elixir.tmLanguage.json
│ │ │ │ ├── html-ruby.tmLanguage.json
│ │ │ │ ├── html.tmLanguage.json
│ │ │ │ ├── ini.tmLanguage.json
│ │ │ │ ├── io.tmLanguage.json
│ │ │ │ ├── java.tmLanguage.json
│ │ │ │ ├── javadoc.tmLanguage.json
│ │ │ │ ├── javascript.tmLanguage.json
│ │ │ │ ├── jquery.tmLanguage.json
│ │ │ │ ├── json.tmLanguage.json
│ │ │ │ ├── json5.tmLanguage.json
│ │ │ │ ├── jsonc.tmLanguage.json
│ │ │ │ ├── jsoniq.tmLanguage.json
│ │ │ │ ├── jsp.tmLanguage.json
│ │ │ │ ├── jsx-styled.tmLanguage.json
│ │ │ │ ├── jsx.tmLanguage.json
│ │ │ │ ├── julia.tmLanguage.json
│ │ │ │ ├── kotlin.tmLanguage.json
│ │ │ │ ├── kusto.tmLanguage.json
│ │ │ │ ├── latex.tmLanguage.json
│ │ │ │ ├── latte.tmLanguage.json
│ │ │ │ ├── less.tmLanguage.json
│ │ │ │ ├── liquid.tmLanguage.json
│ │ │ │ ├── lisp.tmLanguage.json
│ │ │ │ ├── livescript.tmLanguage.json
│ │ │ │ ├── log.tmLanguage.json
│ │ │ │ ├── lsl.tmLanguage.json
│ │ │ │ ├── lua.tmLanguage.json
│ │ │ │ ├── make.tmLanguage.json
│ │ │ │ ├── markdown-gf.tmLanguage.json
│ │ │ │ ├── markdown-latex-combined.tmLanguage.json
│ │ │ │ ├── markdown.tmLanguage.json
│ │ │ │ ├── mask.tmLanguage.json
│ │ │ │ ├── matlab.tmLanguage.json
│ │ │ │ ├── mediawiki.tmLanguage.json
│ │ │ │ ├── mel.tmLanguage.json
│ │ │ │ ├── mermaid.tmLanguage.json
│ │ │ │ ├── mikrotik.tmLanguage.json
│ │ │ │ ├── mips.tmLanguage.json
│ │ │ │ ├── mysql.tmLanguage.json
│ │ │ │ ├── nginx.tmLanguage.json
│ │ │ │ ├── nim.tmLanguage.json
│ │ │ │ ├── nix.tmLanguage.json
│ │ │ │ ├── nsis.tmLanguage.json
│ │ │ │ ├── nu.tmLanguage.json
│ │ │ │ ├── nunjucks.tmLanguage.json
│ │ │ │ ├── objective-c.tmLanguage.json
│ │ │ │ ├── ocaml.tmLanguage.json
│ │ │ │ ├── oeabl.tmLanguage.json
│ │ │ │ ├── pascal.tmLanguage.json
│ │ │ │ ├── perl.tmLanguage.json
│ │ │ │ ├── pgsql.tmLanguage.json
│ │ │ │ ├── php-blade.tmLanguage.json
│ │ │ │ ├── php-html.tmLanguage.json
│ │ │ │ ├── php.tmLanguage.json
│ │ │ │ ├── pig.tmLanguage.json
│ │ │ │ ├── plain-text.tmLanguage.json
│ │ │ │ ├── plsql.tmLanguage.json
│ │ │ │ ├── postcss.tmLanguage.json
│ │ │ │ ├── postscript.tmLanguage.json
│ │ │ │ ├── powerquery.tmLanguage.json
│ │ │ │ ├── powershell.tmLanguage.json
│ │ │ │ ├── praat.tmLanguage.json
│ │ │ │ ├── prisma.tmLanguage.json
│ │ │ │ ├── prolog.tmLanguage.json
│ │ │ │ ├── properties.tmLanguage.json
│ │ │ │ ├── protobuf.tmLanguage.json
│ │ │ │ ├── pug.tmLanguage.json
│ │ │ │ ├── puppet.tmLanguage.json
│ │ │ │ ├── python.tmLanguage.json
│ │ │ │ ├── qml.tmLanguage.json
│ │ │ │ ├── r.tmLanguage.json
│ │ │ │ ├── raku.tmLanguage.json
│ │ │ │ ├── razor.tmLanguage.json
│ │ │ │ ├── rdoc.tmLanguage.json
│ │ │ │ ├── red.tmLanguage.json
│ │ │ │ ├── regexp-extended.tmLanguage.json
│ │ │ │ ├── regexp-javascript.tmLanguage.json
│ │ │ │ ├── regexp-posix.tmLanguage.json
│ │ │ │ ├── regexp-python.tmLanguage.json
│ │ │ │ ├── regexp.tmLanguage.json
│ │ │ │ ├── rst.tmLanguage.json
│ │ │ │ ├── ruby.tmLanguage.json
│ │ │ │ ├── rust.tmLanguage.json
│ │ │ │ ├── sas.tmLanguage.json
│ │ │ │ ├── sass.tmLanguage.json
│ │ │ │ ├── sassdoc.tmLanguage.json
│ │ │ │ ├── scad.tmLanguage.json
│ │ │ │ ├── scala.tmLanguage.json
│ │ │ │ ├── scheme.tmLanguage.json
│ │ │ │ ├── scrypt.tmLanguage.json
│ │ │ │ ├── scss.tmLanguage.json
│ │ │ │ ├── shell-unix-bash.tmLanguage.json
│ │ │ │ ├── sjs.tmLanguage.json
│ │ │ │ ├── slim.tmLanguage.json
│ │ │ │ ├── slm.tmLanguage.json
│ │ │ │ ├── smalltalk.tmLanguage.json
│ │ │ │ ├── smarty.tmLanguage.json
│ │ │ │ ├── smithy.tmLanguage.json
│ │ │ │ ├── solidity.tmLanguage.json
│ │ │ │ ├── soytemplate.tmLanguage.json
│ │ │ │ ├── sql.tmLanguage.json
│ │ │ │ ├── stylus.tmLanguage.json
│ │ │ │ ├── svg.tmLanguage.json
│ │ │ │ ├── swift.tmLanguage.json
│ │ │ │ ├── syon.tmLanguage.json
│ │ │ │ ├── systemverilog.tmLanguage.json
│ │ │ │ ├── tcl.tmLanguage.json
│ │ │ │ ├── terraform.tmLanguage.json
│ │ │ │ ├── tex.tmLanguage.json
│ │ │ │ ├── textile.tmLanguage.json
│ │ │ │ ├── toml.tmLanguage.json
│ │ │ │ ├── tsx.tmLanguage.json
│ │ │ │ ├── twig.tmLanguage.json
│ │ │ │ ├── typescript.tmLanguage.json
│ │ │ │ ├── vala.tmLanguage.json
│ │ │ │ ├── velocity.tmLanguage.json
│ │ │ │ ├── vhdl.tmLanguage.json
│ │ │ │ ├── visualforce.tmLanguage.json
│ │ │ │ ├── vue.tmLanguage.json
│ │ │ │ ├── wollok.tmLanguage.json
│ │ │ │ ├── xml.tmLanguage.json
│ │ │ │ ├── xquery.tmLanguage.json
│ │ │ │ ├── xsl.tmLanguage.json
│ │ │ │ ├── yaml.tmLanguage.json
│ │ │ │ └── zeek.tmLanguage.json
│ │ │ ├── header/
│ │ │ │ ├── Header.vue
│ │ │ │ ├── Tags.vue
│ │ │ │ └── Tool.vue
│ │ │ ├── json-visualizer/
│ │ │ │ ├── DialogInfo.vue
│ │ │ │ ├── JsonVisualizer.vue
│ │ │ │ ├── composables/
│ │ │ │ │ └── useLayout.ts
│ │ │ │ ├── nodes/
│ │ │ │ │ ├── ArrayNode.vue
│ │ │ │ │ └── ObjectNode.vue
│ │ │ │ ├── types/
│ │ │ │ │ └── index.ts
│ │ │ │ └── utils/
│ │ │ │ ├── index.ts
│ │ │ │ └── json-parser.ts
│ │ │ ├── markdown/
│ │ │ │ ├── LaserPointer.vue
│ │ │ │ ├── Markdown.vue
│ │ │ │ ├── Presentation.vue
│ │ │ │ └── composables/
│ │ │ │ ├── index.ts
│ │ │ │ └── useMarkdown.ts
│ │ │ ├── mindmap/
│ │ │ │ └── Mindmap.vue
│ │ │ ├── preview/
│ │ │ │ └── Preview.vue
│ │ │ └── types/
│ │ │ └── index.ts
│ │ ├── layout/
│ │ │ └── TwoColumn.vue
│ │ ├── math-notebook/
│ │ │ ├── MathEditor.vue
│ │ │ ├── README.md
│ │ │ ├── ResultsPanel.vue
│ │ │ ├── SheetList.vue
│ │ │ ├── Workspace.vue
│ │ │ └── math-editor-highlight.ts
│ │ ├── preferences/
│ │ │ ├── API.vue
│ │ │ ├── Appearance.vue
│ │ │ ├── Editor.vue
│ │ │ ├── Language.vue
│ │ │ ├── Storage.vue
│ │ │ └── keys.ts
│ │ ├── sidebar/
│ │ │ ├── Sidebar.vue
│ │ │ ├── folders/
│ │ │ │ ├── Tree.vue
│ │ │ │ ├── custom-icons/
│ │ │ │ │ ├── CustomIcons.vue
│ │ │ │ │ └── icons.ts
│ │ │ │ └── types/
│ │ │ │ └── index.ts
│ │ │ ├── library/
│ │ │ │ ├── Item.vue
│ │ │ │ └── Library.vue
│ │ │ └── tags/
│ │ │ ├── Item.vue
│ │ │ └── Tags.vue
│ │ ├── snippet/
│ │ │ ├── Header.vue
│ │ │ ├── Item.vue
│ │ │ └── List.vue
│ │ ├── space-rail/
│ │ │ └── SpaceRail.vue
│ │ └── ui/
│ │ ├── action-button/
│ │ │ └── ActionButton.vue
│ │ ├── color-picker/
│ │ │ └── ColorPicker.vue
│ │ ├── empty/
│ │ │ └── Placeholder.vue
│ │ ├── folder-icon/
│ │ │ ├── FolderIcon.vue
│ │ │ ├── icons.ts
│ │ │ └── variants.ts
│ │ ├── heading/
│ │ │ └── Heading.vue
│ │ ├── input/
│ │ │ ├── Input.vue
│ │ │ └── variants.ts
│ │ ├── input-tags/
│ │ │ ├── InputTags.vue
│ │ │ └── types/
│ │ │ └── index.ts
│ │ ├── menu/
│ │ │ ├── FormItem.vue
│ │ │ ├── FormSection.vue
│ │ │ └── Item.vue
│ │ ├── shadcn/
│ │ │ ├── button/
│ │ │ │ ├── Button.vue
│ │ │ │ └── index.ts
│ │ │ ├── checkbox/
│ │ │ │ ├── Checkbox.vue
│ │ │ │ └── index.ts
│ │ │ ├── command/
│ │ │ │ ├── Command.vue
│ │ │ │ ├── CommandDialog.vue
│ │ │ │ ├── CommandEmpty.vue
│ │ │ │ ├── CommandGroup.vue
│ │ │ │ ├── CommandInput.vue
│ │ │ │ ├── CommandItem.vue
│ │ │ │ ├── CommandList.vue
│ │ │ │ ├── CommandSeparator.vue
│ │ │ │ ├── CommandShortcut.vue
│ │ │ │ └── index.ts
│ │ │ ├── context-menu/
│ │ │ │ ├── ContextMenu.vue
│ │ │ │ ├── ContextMenuCheckboxItem.vue
│ │ │ │ ├── ContextMenuContent.vue
│ │ │ │ ├── ContextMenuGroup.vue
│ │ │ │ ├── ContextMenuItem.vue
│ │ │ │ ├── ContextMenuLabel.vue
│ │ │ │ ├── ContextMenuPortal.vue
│ │ │ │ ├── ContextMenuRadioGroup.vue
│ │ │ │ ├── ContextMenuRadioItem.vue
│ │ │ │ ├── ContextMenuSeparator.vue
│ │ │ │ ├── ContextMenuShortcut.vue
│ │ │ │ ├── ContextMenuSub.vue
│ │ │ │ ├── ContextMenuSubContent.vue
│ │ │ │ ├── ContextMenuSubTrigger.vue
│ │ │ │ ├── ContextMenuTrigger.vue
│ │ │ │ └── index.ts
│ │ │ ├── dialog/
│ │ │ │ ├── Dialog.vue
│ │ │ │ ├── DialogClose.vue
│ │ │ │ ├── DialogContent.vue
│ │ │ │ ├── DialogDescription.vue
│ │ │ │ ├── DialogFooter.vue
│ │ │ │ ├── DialogHeader.vue
│ │ │ │ ├── DialogOverlay.vue
│ │ │ │ ├── DialogScrollContent.vue
│ │ │ │ ├── DialogTitle.vue
│ │ │ │ ├── DialogTrigger.vue
│ │ │ │ └── index.ts
│ │ │ ├── input/
│ │ │ │ ├── Input.vue
│ │ │ │ └── index.ts
│ │ │ ├── popover/
│ │ │ │ ├── Popover.vue
│ │ │ │ ├── PopoverAnchor.vue
│ │ │ │ ├── PopoverContent.vue
│ │ │ │ ├── PopoverTrigger.vue
│ │ │ │ └── index.ts
│ │ │ ├── resizable/
│ │ │ │ ├── ResizableHandle.vue
│ │ │ │ ├── ResizablePanel.vue
│ │ │ │ ├── ResizablePanelGroup.vue
│ │ │ │ └── index.ts
│ │ │ ├── select/
│ │ │ │ ├── Select.vue
│ │ │ │ ├── SelectContent.vue
│ │ │ │ ├── SelectGroup.vue
│ │ │ │ ├── SelectItem.vue
│ │ │ │ ├── SelectItemText.vue
│ │ │ │ ├── SelectLabel.vue
│ │ │ │ ├── SelectScrollDownButton.vue
│ │ │ │ ├── SelectScrollUpButton.vue
│ │ │ │ ├── SelectSeparator.vue
│ │ │ │ ├── SelectTrigger.vue
│ │ │ │ ├── SelectValue.vue
│ │ │ │ └── index.ts
│ │ │ ├── switch/
│ │ │ │ ├── Switch.vue
│ │ │ │ └── index.ts
│ │ │ ├── tabs/
│ │ │ │ ├── Tabs.vue
│ │ │ │ ├── TabsContent.vue
│ │ │ │ ├── TabsList.vue
│ │ │ │ ├── TabsTrigger.vue
│ │ │ │ └── index.ts
│ │ │ ├── textarea/
│ │ │ │ ├── Textarea.vue
│ │ │ │ └── index.ts
│ │ │ └── tooltip/
│ │ │ ├── Tooltip.vue
│ │ │ ├── TooltipContent.vue
│ │ │ ├── TooltipProvider.vue
│ │ │ ├── TooltipTrigger.vue
│ │ │ └── index.ts
│ │ ├── sonner/
│ │ │ ├── Sonner.vue
│ │ │ ├── templates/
│ │ │ │ └── Donate.vue
│ │ │ └── types.ts
│ │ ├── text/
│ │ │ ├── Text.vue
│ │ │ └── index.ts
│ │ ├── textarea/
│ │ │ ├── Textarea.vue
│ │ │ └── variants.ts
│ │ └── tree/
│ │ ├── Tree.vue
│ │ ├── TreeNode.vue
│ │ ├── composables.ts
│ │ ├── index.ts
│ │ ├── keys.ts
│ │ └── types.ts
│ ├── composables/
│ │ ├── __tests__/
│ │ │ └── useMathEngine.test.ts
│ │ ├── index.ts
│ │ ├── math-notebook/
│ │ │ ├── index.ts
│ │ │ ├── math-engine/
│ │ │ │ ├── constants.ts
│ │ │ │ ├── css.ts
│ │ │ │ ├── mathInstance.ts
│ │ │ │ ├── preprocess.ts
│ │ │ │ ├── timeZones.ts
│ │ │ │ └── types.ts
│ │ │ ├── useMathEngine.ts
│ │ │ └── useMathNotebook.ts
│ │ ├── types/
│ │ │ └── index.ts
│ │ ├── useApp.ts
│ │ ├── useCopyToClipboard.ts
│ │ ├── useDialog.ts
│ │ ├── useEditor.ts
│ │ ├── useFolders.ts
│ │ ├── useSnippetScroller.ts
│ │ ├── useSnippetUpdate.ts
│ │ ├── useSnippets.ts
│ │ ├── useSonner.ts
│ │ ├── useStorageMutation.ts
│ │ ├── useTags.ts
│ │ └── useTheme.ts
│ ├── electron.ts
│ ├── index.html
│ ├── ipc/
│ │ ├── index.ts
│ │ └── listeners/
│ │ ├── main-menu.ts
│ │ └── system.ts
│ ├── main.ts
│ ├── router/
│ │ └── index.ts
│ ├── services/
│ │ ├── api/
│ │ │ ├── generated/
│ │ │ │ └── index.ts
│ │ │ └── index.ts
│ │ └── notifications/
│ │ ├── donate.ts
│ │ └── index.ts
│ ├── spaceDefinitions.ts
│ ├── styles.css
│ ├── utils/
│ │ └── index.ts
│ ├── views/
│ │ ├── Devtools.vue
│ │ ├── Main.vue
│ │ ├── MarkdownPresentation.vue
│ │ ├── MathNotebook.vue
│ │ └── Preferences.vue
│ └── vue-virtual-scroller.d.ts
├── tsconfig.json
├── tsconfig.main.json
├── vite.config.mjs
└── vitest.config.ts
================================================
FILE CONTENTS
================================================
================================================
FILE: .claude/settings.json
================================================
{
"enabledPlugins": {
"frontend-design@claude-plugins-official": true
}
}
================================================
FILE: .gemini/settings.json
================================================
{
"mcpServers": {
"context7": {
"httpUrl": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "${CONTEXT7_API_KEY}",
"Accept": "application/json, text/event-stream"
}
}
},
"context": {
"fileName": ["AGENTS.md"]
}
}
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: masscode
# ko_fi: antonreshetov
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: [paypal.me/antongithub, antonreshetov.gumroad.com/l/masscode, https://buy.polar.sh/polar_cl_bpDmjg079kfiAVtdtrtBwxyRXN6NK8B4Bvqdk2QXdx7]
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.yml
================================================
name: 🐞 Bug report
description: Report an issue with massCode
title: '[Bug]: '
labels: [pending triage]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: describe
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem.
validations:
required: true
- type: textarea
id: reproduse
attributes:
label: To reproduce
description: Steps to reproduce the behavior
value: |
1. Go to ...
2. Click on ...
3. Scroll down to ..
4. See error
validations:
required: true
- type: input
id: app_details
attributes:
label: App Version and Architecture
description: What version and architecture of massCode are you running? You can get this info from the About massCode in app menu.
placeholder: e.g. 4.0.1 (arm64)
validations:
required: true
- type: textarea
id: system
attributes:
label: System info
description: Output of `npx envinfo --system`
render: shell
placeholder: System
validations:
required: true
- type: checkboxes
id: validation
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Follow our [Code of Conduct](https://github.com/massCodeIO/massCode/blob/master/CODE_OF_CONDUCT.md)
required: true
- label: Check that there isn't [already an issue](https://github.com/massCodeIO/massCode/issues) that reports the same bug to avoid creating a duplicate.
required: true
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/massCodeIO/massCode/discussions).
required: true
================================================
FILE: .github/ISSUE_TEMPLATE/config.yml
================================================
blank_issues_enabled: false
contact_links:
- name: Questions & Discussions
url: https://github.com/massCodeIO/massCode/discussions
about: Use GitHub discussions for message-board style questions and discussions.
================================================
FILE: .github/PULL_REQUEST_TEMPLATE.md
================================================
### What kind of change does this PR introduce?
> check at least one
- [ ] Bugfix
- [ ] Feature
- [ ] Refactor
- [ ] Other, please describe:
### Validations
- [ ] Follow our [CONTRIBUTING](https://github.com/massCodeIO/massCode/blob/master/CONTRIBUTING.md) guide
================================================
FILE: .github/workflows/build-sponsored.yml
================================================
name: Build Sponsored
on:
workflow_dispatch:
jobs:
build-sponsored:
name: Build Sponsored for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-15-intel
platform: mac
arch: x64
- os: macos-15
platform: mac
arch: arm64
- os: windows-latest
platform: win
- os: ubuntu-latest
platform: linux
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.16.0
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Rebuild native dependencies (macOS)
if: matrix.platform == 'mac'
run: pnpm run rebuild --arch ${{ matrix.arch }}
- name: Rebuild native dependencies (other platforms)
if: matrix.platform != 'mac'
run: pnpm run rebuild
- name: Build application (sponsored macOS)
if: matrix.platform == 'mac'
run: pnpm run build:sponsored:${{ matrix.platform }}:${{ matrix.arch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_SPONSORED: true
- name: Build application (sponsored other platforms)
if: matrix.platform != 'mac'
run: pnpm run build:sponsored:${{ matrix.platform }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_SPONSORED: true
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: sponsored-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name }}
path: |
dist/*.dmg
dist/*.pkg
dist/*.exe
dist/*.msi
dist/*.AppImage
dist/*.snap
if-no-files-found: warn
retention-days: 30
================================================
FILE: .github/workflows/issue-close-require.yml
================================================
name: Issue Close Require
on:
schedule:
- cron: '0 0 * * *'
jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- name: need reproduction
uses: actions-cool/issues-helper@v3
with:
actions: close-issues
token: ${{ secrets.GITHUB_TOKEN }}
labels: need reproduction
inactive-day: 3
================================================
FILE: .github/workflows/issue-labeled.yml
================================================
name: Issue Labeled
on:
issues:
types: [labeled]
jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
- name: need reproduction
if: github.event.label.name == 'need reproduction'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment, remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. Please describe in detail the sequence of actions that leads to the bug (skip it if it's already there). Add screenshots of errors from the console. If possible add a video. Issues marked with `need reproduction` will be closed if they have no activity within 3 days.
labels: pending triage
================================================
FILE: .github/workflows/release.yml
================================================
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Tag for release (e.g., v1.0.0)'
required: true
default: v4.0.0
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-15-intel
platform: mac
arch: x64
- os: macos-15
platform: mac
arch: arm64
- os: windows-latest
platform: win
- os: ubuntu-latest
platform: linux
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.16.0
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Rebuild native dependencies (macOS)
if: matrix.platform == 'mac'
run: pnpm run rebuild --arch ${{ matrix.arch }}
- name: Rebuild native dependencies (other platforms)
if: matrix.platform != 'mac'
run: pnpm run rebuild
- name: Build application (macOS)
if: matrix.platform == 'mac'
run: pnpm run build:${{ matrix.platform }}:${{ matrix.arch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build application (other platforms)
if: matrix.platform != 'mac'
run: pnpm run build:${{ matrix.platform }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: masscode-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name || inputs.tag }}
path: |
dist/*.dmg
dist/*.pkg
dist/*.exe
dist/*.msi
dist/*.AppImage
dist/*.snap
!dist/*-sponsored.*
!dist/*.yml
!dist/*.blockmap
if-no-files-found: warn
retention-days: 30
release:
name: Create Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download artifacts from "build" job
uses: actions/download-artifact@v4
with:
pattern: masscode-*
path: artifacts
- name: Generate changelog
run: npx changelogithub --output release-notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: artifacts/**/*
tag_name: ${{ github.ref_name || inputs.tag }}
draft: true
body_path: release-notes.md
generate_release_notes: true
append_body: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
================================================
FILE: .gitignore
================================================
dist
build/main
build/renderer
scripts/build-sponsored.sh
node_modules
.DS_Store
components.d.ts
auto-imports.d.ts
.github/*-instructions.md
.env
================================================
FILE: .prettierrc
================================================
{
"plugins": ["prettier-plugin-tailwindcss"]
}
================================================
FILE: AGENTS.md
================================================
# massCode AI Coding Guidelines
You are an expert Senior Frontend Developer specializing in Electron, Vue 3, and TypeScript.
Follow these rules strictly when generating code for massCode.
## 1. Core Stack
- **Framework:** Vue 3 (Composition API, `<script setup lang="ts">`)
- **Styling:** TailwindCSS v4 (`@tailwindcss/vite`), `tailwind-merge`, `cva`
- **UI:** Custom components (`src/renderer/components/ui`), Shadcn (based on `reka-ui`), `lucide-vue-next` icons
- **State:** Vue Composables (No Vuex/Pinia)
- **Backend:** Electron (Main), `better-sqlite3` (DB), Elysia.js (API)
- **Utilities:** `@vueuse/core`, `vue-sonner` (Notifications)
## 2. Philosophy
**YAGNI — simplicity above all.** Do not overcomplicate code for hypothetical future scenarios. The minimum viable implementation is the correct implementation. Three similar lines of code are better than a premature abstraction.
Signs of overengineering:
- A function guards against a case that will never happen
- A factory used in exactly one place that doesn't encapsulate state
- Abstraction for its own sake (a wrapper around a single line of code)
- Constants or patterns invented in advance without a real need
## 3. Architecture & Communication
**Strict Separation of Concerns:**
| Layer | Process | Access | Communication |
|:-------------|:---------|:--------------------------------------------|:------------------------------------------|
| **Renderer** | Frontend | **NO** Node.js/DB access. Only via API/IPC. | Calls API (`api.*`) or IPC (`ipc.invoke`) |
| **API** | Main | Full DB/System access. | Receives requests from Renderer |
| **Main** | Backend | Full System access. | Handles IPC & Lifecycle |
**Data Flow:** Renderer → REST API (Elysia) → Service/DB Layer → Response
## 4. File Naming
| Type | Convention | Example |
|------|------------|---------|
| Vue components | PascalCase | `Folders.vue`, `CreateDialog.vue` |
| TypeScript files | camelCase | `useSnippets.ts`, `errorMessage.ts` |
Composables get a `use` prefix. The file name matches the exported function name: `useSnippets.ts` → `export function useSnippets()`.
## 5. Critical Rules & Conventions
### A. Imports (STRICT)
**❌ DO NOT IMPORT:**
- Vue core (`ref`, `computed`, `watch`, `onMounted`) → *Auto-imported*
- Project components (`src/renderer/components/`) → *Auto-imported* (e.g., `<SidebarFolders />` for `components/sidebar/Folders.vue`)
**✅ ALWAYS IMPORT MANUALLY:**
- Shadcn UI: `import * as Select from '@/components/ui/shadcn/select'`
- Composables: `import { useApp } from '@/composables'`
- Utils: `import { cn } from '@/utils'`
- VueUse: `import { useClipboard } from '@vueuse/core'`
- Electron IPC/Store: `import { ipc, store } from '@/electron'`
### B. State & Settings
- **Global State:** Composables in `@/composables` (e.g., `useApp`, `useSnippets`) maintain shared state by defining reactive variables **outside** the exported function (module level). This ensures all components access the same state. **No Pinia/Vuex.**
- **Persistent Settings:** Use `store` from '@/electron'.
- `store.app`: UI state (sizes, visibility)
- `store.preferences`: User prefs (theme, language)
### C. Database & API
- **Renderer:** **NEVER** import `better-sqlite3`. Use `import { api } from '~/renderer/services/api'`
- **New Endpoints:**
1. Define DTO in `src/main/api/dto/`
2. Add route in `src/main/api/routes/`
3. **Run `pnpm api:generate`** to update client.
### D. System & IPC
- **File System/System Ops:** Use `ipc.invoke('channel:action', data)`.
- **Channels:** `fs:*`, `system:*`, `db:*`, `main-menu:*`, `prettier:*`, `spaces:*`.
- **Renderer:** Access Electron only via `src/renderer/electron.ts`.
### E. Spaces Architecture
massCode uses a **Spaces** system to organize different functional areas:
| Space | ID | Description |
|-------|----|-------------|
| Code | `code` | Main snippet management (folders, snippets, tags) |
| Tools | `tools` | Developer utilities (converters, generators) |
| Math | `math` | Math Notebook with calculation sheets |
**Space Definitions:** `src/renderer/spaceDefinitions.ts` — `SpaceId`, `getSpaceDefinitions()`, `getActiveSpaceId()`.
**Space State Persistence (Markdown Engine):**
- Each space can store its state in `__spaces__/{spaceId}/.state.yaml` inside the vault.
- Runtime utilities: `src/main/storage/providers/markdown/runtime/spaces.ts` — `ensureSpaceDirectory()`, `getSpaceStatePath()`.
- Generic YAML read/write: `src/main/storage/providers/markdown/runtime/spaceState.ts` — `readSpaceState<T>()`, `writeSpaceState()`.
- Space state writes use the same debounce/flush infrastructure as `state.json` (`pendingStateWriteByPath` in `constants.ts`), so they flush automatically on app exit.
- `__spaces__/` directory exists **only in markdown engine**. When engine is `sqlite`, spaces fall back to `electron-store`.
**Space IPC Channels:**
- `spaces:math:read` — read Math Notebook state (auto-migrates from electron-store on first read in markdown mode).
- `spaces:math:write` — persist Math Notebook state.
- Handlers: `src/main/ipc/handlers/spaces.ts`.
**Space-Aware Sync:**
- `system:storage-synced` event dispatches refresh based on `getActiveSpaceId()`:
- `code` / `null` → refresh folders + snippets
- `math` → `reloadFromDisk()` via `useMathNotebook()`
- `tools` → no-op (no vault data)
- Mutable operations must call `markPersistedStorageMutation()` to prevent sync loops.
### F. Localization
- **Primary Language:** English (EN) is the base language. All new keys **MUST** be added to `src/main/i18n/locales/en_US/` first.
- **Strictly No Hardcoding:** Never use hardcoded strings in templates or logic. Always use the localization system.
- **Usage:** Use `i18n.t('namespace:key.path')` in both templates and scripts.
- **Default Namespace:** The `ui` namespace is the default. You can use `i18n.t('key.path')` instead of `i18n.t('ui:key.path')`.
- **Imports:** `import { i18n } from '@/electron'`
## 6. UI/UX Guidelines
- **Variants:** Use `cva` for component variants.
- **Classes:** Use `cn()` to merge Tailwind classes.
- **Notifications:** Use `useSonner()` composable.
- **Utilities / Composables:**
- **Check `@vueuse/core` first.** Most common logic (clipboard, events, sensors) is already implemented.
- **Only** create custom composables if no suitable VueUse utility exists.
- Remember to **manually import** them (e.g., `import { useClipboard } from '@vueuse/core'`).
- **Component Usage (STRICT):**
- **NEVER** reimplement basic UI elements (buttons, inputs, checkboxes, etc.).
- **ALWAYS** use existing components from `src/renderer/components/ui/`.
- **Missing Elements:** If a required UI element does not exist, create it in `src/renderer/components/ui/` first, following established patterns (Tailwind, cva, cn), then use it.
- **Naming:** They are auto-imported with a `Ui` prefix (e.g., `<UiButton />`, `<UiInput />`, `<UiCheckbox />`).
## 7. Component Decomposition
Split a component when it exceeds ~300 lines or has more than 3 unrelated responsibilities:
1. Extract constants and static data
2. Extract pure functions into utils (only if used in multiple places)
3. Move state and effects into a composable
4. Break the template into child components
Keep no logic in `<template>` more complex than a ternary operator.
## 8. Development Workflow & Commands
**Linting (CRITICAL):**
- **ALWAYS** scope lint commands to specific files/dirs.
- **NEVER** run lint on the whole project during a task.
- Usage: `pnpm lint <path>` or `pnpm lint:fix <path>`
**Other Commands:**
- `pnpm dev`: Start dev server
- `pnpm api:generate`: Regenerate API client (required after API changes)
- `pnpm build`: Build for production
## 9. Code Examples
**Component Setup:**
```html
<script setup lang="ts">
import * as Dialog from '@/components/ui/shadcn/dialog' // Manual import
import { useSnippets } from '@/composables' // Manual import
const { snippets } = useSnippets()
// ref, computed are auto-imported (Vue core)
</script>
<template>
<div>
<!-- Use auto-imported UI component -->
<UiButton>Click me</UiButton>
<!-- Use Shadcn components with namespace -->
<Dialog.Dialog>
<Dialog.DialogTrigger as-child>
<UiButton variant="outline">Open</UiButton>
</Dialog.DialogTrigger>
<Dialog.DialogContent>
Snippet count: {{ snippets.length }}
</Dialog.DialogContent>
</Dialog.Dialog>
</div>
</template>
```
**Data Fetching (Renderer):**
```typescript
import { api } from '~/renderer/services/api'
const { data } = await api.snippets.getSnippets({ folderId: 1 })
```
**IPC Call:**
```typescript
import { ipc } from '@/electron'
await ipc.invoke('fs:assets', { buffer, fileName })
```
**Localization:**
```html
<script setup lang="ts">
import { i18n } from '@/electron'
</script>
<template>
<div>
<!-- Using default 'ui' namespace -->
<p>{{ i18n.t('common.save') }}</p>
<!-- Using specific namespace -->
<p>{{ i18n.t('messages:snippets.count', { count: 10 }) }}</p>
</div>
</template>
```
**Creating New API Endpoint (DTO & Route):**
1. **Define DTO** (`src/main/api/dto/snippets.ts`):
```typescript
import { t } from 'elysia'
// Define validation schema
const snippetsDuplicate = t.Object({
id: t.Number()
})
// Register in main DTO model
export const snippetsDTO = new Elysia().model({
// ... other DTOs
snippetsDuplicate
})
```
2. **Add Route** (`src/main/api/routes/snippets.ts`):
```typescript
import { useDB } from '../../db'
app.post('/duplicate', ({ body }) => {
const db = useDB()
// Database logic here...
return { id: newId }
}, {
body: 'snippetsDuplicate', // Use registered DTO name
detail: { tags: ['Snippets'] }
})
```
3. **Generate Client:** Run `pnpm api:generate`
================================================
FILE: CHANGELOG.md
================================================
# [4.4.0](https://github.com/massCodeIO/massCode/compare/v4.3.0...v4.4.0) (2025-12-19)
### Bug Fixes
* **devtools:** update scroll position on change route ([864afb1](https://github.com/massCodeIO/massCode/commit/864afb181dfc2d17d46d9d8af9ffae152c044ed8))
* **elysia:** prevent DB hangs during saves ([#643](https://github.com/massCodeIO/massCode/issues/643)) ([f6583b7](https://github.com/massCodeIO/massCode/commit/f6583b7cb2d4555b008820a9121bd46808955f09))
* **i18n:** fix Czech translations ([#651](https://github.com/massCodeIO/massCode/issues/651)) ([55367e2](https://github.com/massCodeIO/massCode/commit/55367e2334075d559b12c92d2e12c4e9ea8aa49f))
### Features
* **devtools:** add JSON generator ([#644](https://github.com/massCodeIO/massCode/issues/644)) ([630cf86](https://github.com/massCodeIO/massCode/commit/630cf8629a8d06cc16e7980b8f562bc778851033))
* **devtools:** add Lorem Ipsum generator ([#645](https://github.com/massCodeIO/massCode/issues/645)) ([332362a](https://github.com/massCodeIO/massCode/commit/332362ae73c4338f00f99715f4be3173a39d2615))
* **devtools:** add notifications for copy to clipboard ([#646](https://github.com/massCodeIO/massCode/issues/646)) ([00755ba](https://github.com/massCodeIO/massCode/commit/00755ba5aab109ee151458d062cae6462e14a101))
# [4.3.0](https://github.com/massCodeIO/massCode/compare/v4.2.2...v4.3.0) (2025-11-26)
### Bug Fixes
* **folders:** ensure context and toolbar folder creation respect parent ([#640](https://github.com/massCodeIO/massCode/issues/640)) ([b2877c2](https://github.com/massCodeIO/massCode/commit/b2877c29994f4c227da967e801dc13d3731aeba0))
### Features
* **editor:** add Power Query (M) language support ([#639](https://github.com/massCodeIO/massCode/issues/639)) ([a49b5d0](https://github.com/massCodeIO/massCode/commit/a49b5d04ab28cd1bc163a24f8b8c431c72baa6f5))
* **folders:** add multi-selection ([#641](https://github.com/massCodeIO/massCode/issues/641)) ([daef94f](https://github.com/massCodeIO/massCode/commit/daef94f718fd7ec9611f8c21a618c8a33f833feb))
* **preferences:** add api port to preference option ([#631](https://github.com/massCodeIO/massCode/issues/631)) ([d542824](https://github.com/massCodeIO/massCode/commit/d542824361becdcfcd7bd980adff8a7f8f0354ce))
## [4.2.2](https://github.com/massCodeIO/massCode/compare/v4.2.1...v4.2.2) (2025-10-29)
### Bug Fixes
* **db:** ensure directory exists before accessing the db ([#628](https://github.com/massCodeIO/massCode/issues/628)) ([d20bd9a](https://github.com/massCodeIO/massCode/commit/d20bd9a2aa44e58d36abd019936761afeb439766))
* **editor:** jumping scroll when editing ([#629](https://github.com/massCodeIO/massCode/issues/629)) ([ee7e384](https://github.com/massCodeIO/massCode/commit/ee7e38458c541c455b74203ec6a59749090bd758))
## [4.2.1](https://github.com/massCodeIO/massCode/compare/v4.2.0...v4.2.1) (2025-10-28)
# [4.2.0](https://github.com/massCodeIO/massCode/compare/v4.1.0...v4.2.0) (2025-10-08)
### Bug Fixes
* **editor:** prevent header and editor display for multiple selected snippets ([e1d4ccd](https://github.com/massCodeIO/massCode/commit/e1d4ccd995f5d1ea14f50d9d8bef51101ffb4bb1))
* **editor:** show code preview panel ([5e91b74](https://github.com/massCodeIO/massCode/commit/5e91b74c93a57b491bf4b84241e8b2ff664551dd))
* **i18n:** update sidebar toggle translations ([f819f4a](https://github.com/massCodeIO/massCode/commit/f819f4acd83f90387e8644b88e871f5451b17d40))
* **scrollbar:** suppress horizontal scrolling ([53f6aef](https://github.com/massCodeIO/massCode/commit/53f6aef8497be9aad13b680d801a7bbcd8312198))
* **snippets:** use default folder language for fragments [#611](https://github.com/massCodeIO/massCode/issues/611) ([#612](https://github.com/massCodeIO/massCode/issues/612)) ([4c52a5e](https://github.com/massCodeIO/massCode/commit/4c52a5e4a6c607dbb8009dd1c660f964a474e3a0))
* update entitlements and enable hardened runtime for macOS builds ([d350977](https://github.com/massCodeIO/massCode/commit/d350977b02c158789b887f7cf54981310c738bd4))
### Features
* add show/hide sidebar toggle ([#610](https://github.com/massCodeIO/massCode/issues/610)) ([64cc14f](https://github.com/massCodeIO/massCode/commit/64cc14f803ed27490c8cfe087ccb3c3d9fd523ee))
# [4.1.0](https://github.com/massCodeIO/massCode/compare/v4.0.4...v4.1.0) (2025-10-03)
### Bug Fixes
* add help menu ([a27d605](https://github.com/massCodeIO/massCode/commit/a27d6059057b7adb10ccafbe78ba2b353efe657f))
* set folder custom icon ([#607](https://github.com/massCodeIO/massCode/issues/607)) ([505a8a0](https://github.com/massCodeIO/massCode/commit/505a8a0e735979ebbd887280a5017bc19a491681))
### Features
* add json visualizer ([#609](https://github.com/massCodeIO/massCode/issues/609)) ([afce45c](https://github.com/massCodeIO/massCode/commit/afce45c3e131e402ae3e180d8db57504b444bf19))
* **editor:** add highlighting for search terms ([#606](https://github.com/massCodeIO/massCode/issues/606)) ([48b7f56](https://github.com/massCodeIO/massCode/commit/48b7f56b4cc45e14664d9521e100ad2c265e5e38))
## [4.0.4](https://github.com/massCodeIO/massCode/compare/v4.0.3...v4.0.4) (2025-09-30)
### Bug Fixes
* **editor:** vertical scrolling [#603](https://github.com/massCodeIO/massCode/issues/603) ([#604](https://github.com/massCodeIO/massCode/issues/604)) ([dc75eb0](https://github.com/massCodeIO/massCode/commit/dc75eb0f1ce5a811e1b0eb4ff549b4193436badb))
## [4.0.3](https://github.com/massCodeIO/massCode/compare/v4.0.2...v4.0.3) (2025-09-30)
### Bug Fixes
* **db:** add SQLite file validation and backup for non-SQLite file [#592](https://github.com/massCodeIO/massCode/issues/592) ([#601](https://github.com/massCodeIO/massCode/issues/601)) ([1951d6a](https://github.com/massCodeIO/massCode/commit/1951d6a75ed894550cd25dc74137bda7cd6c909f))
## [4.0.2](https://github.com/massCodeIO/massCode/compare/v4.0.1...v4.0.2) (2025-09-29)
### Bug Fixes
* **db:** check tables, set default values during migration [#581](https://github.com/massCodeIO/massCode/issues/581) ([#599](https://github.com/massCodeIO/massCode/issues/599)) ([ee52846](https://github.com/massCodeIO/massCode/commit/ee52846c0489b550b4f4c227ecc3f14543008cc6))
* **menu:** update preview code shortcut to include Alt modifier ([de92898](https://github.com/massCodeIO/massCode/commit/de92898092914484cbf16ce1110b0c93a0ef9e17))
## [4.0.1](https://github.com/massCodeIO/massCode/compare/v4.0.0...v4.0.1) (2025-09-29)
### Bug Fixes
* **editor:** line number overlapping [#594](https://github.com/massCodeIO/massCode/issues/594) ([#596](https://github.com/massCodeIO/massCode/issues/596)) ([7641421](https://github.com/massCodeIO/massCode/commit/7641421269cfc35c0e9cd4a0ed4a6b58358f8952))
* **menu:** double window menu ([#595](https://github.com/massCodeIO/massCode/issues/595)) ([c5dc66c](https://github.com/massCodeIO/massCode/commit/c5dc66cf842d88162624a064dc78f229f7dd1769)), closes [#593](https://github.com/massCodeIO/massCode/issues/593)
# [4.0.0](https://github.com/massCodeIO/massCode/compare/v3.12.1...v4.0.0) (2025-09-27)
### Features
* v4 ([#590](https://github.com/massCodeIO/massCode/issues/590)) ([d50d939](https://github.com/massCodeIO/massCode/commit/d50d9391b395380961ae3e1e5d27cc66c583cf35)), closes [#504](https://github.com/massCodeIO/massCode/issues/504) [#505](https://github.com/massCodeIO/massCode/issues/505) [#506](https://github.com/massCodeIO/massCode/issues/506) [#508](https://github.com/massCodeIO/massCode/issues/508) [#509](https://github.com/massCodeIO/massCode/issues/509) [#511](https://github.com/massCodeIO/massCode/issues/511) [#513](https://github.com/massCodeIO/massCode/issues/513) [#514](https://github.com/massCodeIO/massCode/issues/514) [#515](https://github.com/massCodeIO/massCode/issues/515) [#517](https://github.com/massCodeIO/massCode/issues/517) [#518](https://github.com/massCodeIO/massCode/issues/518) [#519](https://github.com/massCodeIO/massCode/issues/519) [#520](https://github.com/massCodeIO/massCode/issues/520) [#521](https://github.com/massCodeIO/massCode/issues/521) [#522](https://github.com/massCodeIO/massCode/issues/522) [#523](https://github.com/massCodeIO/massCode/issues/523) [#524](https://github.com/massCodeIO/massCode/issues/524) [#525](https://github.com/massCodeIO/massCode/issues/525) [#527](https://github.com/massCodeIO/massCode/issues/527) [#528](https://github.com/massCodeIO/massCode/issues/528) [#529](https://github.com/massCodeIO/massCode/issues/529) [#530](https://github.com/massCodeIO/massCode/issues/530)
## [3.12.1](https://github.com/massCodeIO/massCode/compare/v3.12.0...v3.12.1) (2025-06-13)
### Features
* check only v3 & handle github rate limit ([30d0987](https://github.com/massCodeIO/massCode/commit/30d0987ccf0b895486e1d1377ef7df1450df3e66))
# [3.12.0](https://github.com/massCodeIO/massCode/compare/v3.11.0...v3.12.0) (2025-02-10)
### Bug Fixes
* **search:** delete marks by reset search ([#500](https://github.com/massCodeIO/massCode/issues/500)) ([2142bd9](https://github.com/massCodeIO/massCode/commit/2142bd91b794a1a319eb682f55d51318b14977d5))
* **snippets:** truncate name ([#501](https://github.com/massCodeIO/massCode/issues/501)) ([54be51b](https://github.com/massCodeIO/massCode/commit/54be51bd188e0a385d83c751a176a6f808b1c8ed))
### Features
* add window menu with minimize option ([#499](https://github.com/massCodeIO/massCode/issues/499)) ([2f013d1](https://github.com/massCodeIO/massCode/commit/2f013d18e6067fbef2ba213b46be0088c5794f67)), closes [#498](https://github.com/massCodeIO/massCode/issues/498)
# [3.11.0](https://github.com/massCodeIO/massCode/compare/v3.10.0...v3.11.0) (2024-02-19)
### Features
* add fuzzy search ([a0eba0a](https://github.com/massCodeIO/massCode/commit/a0eba0ac89335ad134999bc1a679b99d523096c7))
* add search by description ([134c424](https://github.com/massCodeIO/massCode/commit/134c4249f474c6653d0c8e1a8470b13e2fdd5359))
* **i18n:** add new Czech translations ([3166034](https://github.com/massCodeIO/massCode/commit/3166034bf8e576bebb23dd8fcb8f65719c8f45ea))
* **i18n:** add Persian locales ([a32dc0f](https://github.com/massCodeIO/massCode/commit/a32dc0ff8a187b4eb80971c15082e848ed4d5b23))
* **i18n:** add Polish locales ([cd44fb4](https://github.com/massCodeIO/massCode/commit/cd44fb4d87ff873d6483c1eaeff3f45f5a9a287f))
# [3.10.0](https://github.com/massCodeIO/massCode/compare/v3.9.0...v3.10.0) (2023-10-12)
### Bug Fixes
* **snippets:** delete fragment ([8b362a0](https://github.com/massCodeIO/massCode/commit/8b362a00c1dc61b6e415dfa37257c9a83b3d37d8))
### Features
* add mindmap ([#419](https://github.com/massCodeIO/massCode/issues/419)) ([238388d](https://github.com/massCodeIO/massCode/commit/238388de5bd3288121415a3860e8818036e96fcc))
* **i18n:** add French locales ([#417](https://github.com/massCodeIO/massCode/issues/417)) ([5b27fda](https://github.com/massCodeIO/massCode/commit/5b27fdad3180a43177a2b047afe221114efe39f2))
# [3.9.0](https://github.com/massCodeIO/massCode/compare/v3.8.0...v3.9.0) (2023-10-05)
### Bug Fixes
* devtools menu in win [#415](https://github.com/massCodeIO/massCode/issues/415) ([#416](https://github.com/massCodeIO/massCode/issues/416)) ([a8909e4](https://github.com/massCodeIO/massCode/commit/a8909e475dafb4ff876d438e185f61ae9baf4510))
### Features
* **i18n:** add new Czech translations ([#411](https://github.com/massCodeIO/massCode/issues/411)) ([e7e0cdc](https://github.com/massCodeIO/massCode/commit/e7e0cdcaca4718ffe828ff7ae9119895cabb79bc))
* **i18n:** add Turkish locales ([#412](https://github.com/massCodeIO/massCode/issues/412)) ([bc6da09](https://github.com/massCodeIO/massCode/commit/bc6da09021d95eeb9ba35f2a5373e464b155df88))
# [3.8.0](https://github.com/massCodeIO/massCode/compare/v3.7.0...v3.8.0) (2023-09-29)
### Features
* add dev tools ([#407](https://github.com/massCodeIO/massCode/issues/407)) ([eea5900](https://github.com/massCodeIO/massCode/commit/eea5900f6765d62a64863c5a8bbb28bebffac862))
* add reload db ([#408](https://github.com/massCodeIO/massCode/issues/408)) ([d6ff713](https://github.com/massCodeIO/massCode/commit/d6ff71324d478e3e2f6590a3ae01ed30feb43877))
* **icons:** add DigitalOcean, Moodle and Oracle icons ([#388](https://github.com/massCodeIO/massCode/issues/388)) ([864e2f6](https://github.com/massCodeIO/massCode/commit/864e2f6ff42c79ac99c63d84e470a0beb1aab362))
# [3.7.0](https://github.com/massCodeIO/massCode/compare/v3.6.0...v3.7.0) (2023-06-14)
### Bug Fixes
* **snippets:** multiple select ([#373](https://github.com/massCodeIO/massCode/issues/373)) ([63c90e9](https://github.com/massCodeIO/massCode/commit/63c90e9b9c29f678f2236a5897f337eef385320e))
* **snippets:** remove prev characters by typing name [#347](https://github.com/massCodeIO/massCode/issues/347) ([#351](https://github.com/massCodeIO/massCode/issues/351)) ([ddc31e7](https://github.com/massCodeIO/massCode/commit/ddc31e7b5d792aafc531b95c37dfc738571ca509))
### Features
* **folders:** add custom icon ([#376](https://github.com/massCodeIO/massCode/issues/376)) ([3c6f762](https://github.com/massCodeIO/massCode/commit/3c6f7626b3b977d16a3076984998a652bfd7b81d))
* hide subfolder snippets ([#371](https://github.com/massCodeIO/massCode/issues/371)) ([e2c8d4f](https://github.com/massCodeIO/massCode/commit/e2c8d4f08294998b195a397fe12a6dff3572e46c))
* **snippets:** add compact mode ([#372](https://github.com/massCodeIO/massCode/issues/372)) ([84b39d1](https://github.com/massCodeIO/massCode/commit/84b39d1d4caae305d566290614492b298330cd51))
# [3.6.0](https://github.com/massCodeIO/massCode/compare/v3.5.0...v3.6.0) (2023-02-22)
### Bug Fixes
* **main:** blinking context menu ([#345](https://github.com/massCodeIO/massCode/issues/345)) ([23f57c5](https://github.com/massCodeIO/massCode/commit/23f57c5fabb7f1273ccb6a8b85419a9a808458f3))
* **snippets:** invalid prettier es6 option ([#323](https://github.com/massCodeIO/massCode/issues/323)) ([08e5123](https://github.com/massCodeIO/massCode/commit/08e512381601faa60c4aad590ca4e4c789e64e19))
* **snippets:** wrapping long lines in screenshot ([#326](https://github.com/massCodeIO/massCode/issues/326)) ([891b548](https://github.com/massCodeIO/massCode/commit/891b548c021c7f8817e28379cd86f77d23171b40))
### Features
* **grammars:** add bicep ([#325](https://github.com/massCodeIO/massCode/issues/325)) ([e461e51](https://github.com/massCodeIO/massCode/commit/e461e516c089437bd8391c3dda474c5c5cd8124e))
* **grammars:** add kusto (KQL) ([#324](https://github.com/massCodeIO/massCode/issues/324)) ([b92e403](https://github.com/massCodeIO/massCode/commit/b92e4033530d77c5ffb956a5b10b76c58e6776d2))
* **i18n:** add Czech locales ([#294](https://github.com/massCodeIO/massCode/issues/294)) ([7fe6696](https://github.com/massCodeIO/massCode/commit/7fe66967c6e73467948626ba19eb7a99b019c65d))
* **i18n:** add Romanian locales ([#334](https://github.com/massCodeIO/massCode/issues/334)) ([9f55ff1](https://github.com/massCodeIO/massCode/commit/9f55ff1ec219c81281c30e6733407230d6a30b44))
* **snippets:** copy screenshot to clipboard ([#327](https://github.com/massCodeIO/massCode/issues/327)) ([f06b084](https://github.com/massCodeIO/massCode/commit/f06b0842b14502bb4e2f9882ed5ed79625652043))
# [3.5.0](https://github.com/massCodeIO/massCode/compare/v3.4.1...v3.5.0) (2023-01-07)
### Bug Fixes
* **snippets:** export to html [#309](https://github.com/massCodeIO/massCode/issues/309) ([#320](https://github.com/massCodeIO/massCode/issues/320)) ([2f3bada](https://github.com/massCodeIO/massCode/commit/2f3badaf78378c68a7f667edb26a8a5039d282a9))
* **snippets:** use 'dom-to-image' instead 'html2canvas' [#297](https://github.com/massCodeIO/massCode/issues/297) ([#317](https://github.com/massCodeIO/massCode/issues/317)) ([2ba53ac](https://github.com/massCodeIO/massCode/commit/2ba53ac1408dc083fcbbeccd6010fa93e1cbe6a9))
### Features
* **i18n:** add Greek locales ([#304](https://github.com/massCodeIO/massCode/issues/304)) ([19f0942](https://github.com/massCodeIO/massCode/commit/19f0942e229d64ebf976f540f1b73c9fa85ee563))
* **i18n:** add Ukrainian locales ([#319](https://github.com/massCodeIO/massCode/issues/319)) ([a44ebd2](https://github.com/massCodeIO/massCode/commit/a44ebd222731fb0965fd9df87b8cc7835c8c42df))
* **snippets:** save screenshot as svg ([#318](https://github.com/massCodeIO/massCode/issues/318)) ([4cf24c9](https://github.com/massCodeIO/massCode/commit/4cf24c9ba49931ac36e18c1e9cdc407639e4d709))
* **snippets:** use codemirror for screenshot ([#321](https://github.com/massCodeIO/massCode/issues/321)) ([9d264e0](https://github.com/massCodeIO/massCode/commit/9d264e0659f1e2b064eab1e93072c672b330ed15))
## [3.4.1](https://github.com/massCodeIO/massCode/compare/v3.4.0...v3.4.1) (2022-08-29)
### Bug Fixes
* **grammars:** update xml & xsl [#263](https://github.com/massCodeIO/massCode/issues/263) ([#268](https://github.com/massCodeIO/massCode/issues/268)) ([fa79043](https://github.com/massCodeIO/massCode/commit/fa7904344f1261bcba5f2b711fd290d33275afc8))
# [3.4.0](https://github.com/massCodeIO/massCode/compare/v3.3.0...v3.4.0) (2022-08-22)
### Bug Fixes
* **editor:** editor height by resize window [#242](https://github.com/massCodeIO/massCode/issues/242) ([#253](https://github.com/massCodeIO/massCode/issues/253)) ([7865ff8](https://github.com/massCodeIO/massCode/commit/7865ff85023b5db0243d22f346dd6121ee639864))
* **snippet:** set first fragment when creating a snippet ([#256](https://github.com/massCodeIO/massCode/issues/256)) ([d382625](https://github.com/massCodeIO/massCode/commit/d382625859a371e009be8def83839eb2791edf27))
### Features
* **i18n:** add German locales ([#244](https://github.com/massCodeIO/massCode/issues/244)) ([d842b29](https://github.com/massCodeIO/massCode/commit/d842b291670fa77b63e8083e670152a667afa369))
# [3.3.0](https://github.com/massCodeIO/massCode/compare/v3.2.0...v3.3.0) (2022-08-15)
### Bug Fixes
* **editor:** update editor value only if snippet id is changed ([#228](https://github.com/massCodeIO/massCode/issues/228)) ([78f6f7e](https://github.com/massCodeIO/massCode/commit/78f6f7ebedd781f987df4e07540c3f29c3f40217))
* **markdown:** crash if value is empty ([#233](https://github.com/massCodeIO/massCode/issues/233)) ([23bb935](https://github.com/massCodeIO/massCode/commit/23bb935e975fdbc9b3821195229685265fa89d9b))
* **markdown:** render mermaid ([#231](https://github.com/massCodeIO/massCode/issues/231)) ([1df5319](https://github.com/massCodeIO/massCode/commit/1df53194e162b57bbbe610efba8c685ced9c86ec))
* restore scroll to folder on init ([#234](https://github.com/massCodeIO/massCode/issues/234)) ([3fb66e4](https://github.com/massCodeIO/massCode/commit/3fb66e462d324130c0ce0c2dccb3945a86ad2a18))
* **snippets:** use only markdown for presentation ([#232](https://github.com/massCodeIO/massCode/issues/232)) ([834327a](https://github.com/massCodeIO/massCode/commit/834327a20540847661346948974cda457bdcedeb))
### Features
* add snippets selection history ([#238](https://github.com/massCodeIO/massCode/issues/238)) ([a7540c9](https://github.com/massCodeIO/massCode/commit/a7540c91fd9a62aa4dd2f8253f30be1b70cd5bff))
* **main:menu:** add keymap to control editor font size ([#229](https://github.com/massCodeIO/massCode/issues/229)) ([cb17910](https://github.com/massCodeIO/massCode/commit/cb17910e87eb5275ab693f4fb8d4728cda971835))
* **markdown:** persist preview state ([#236](https://github.com/massCodeIO/massCode/issues/236)) ([3fadd32](https://github.com/massCodeIO/massCode/commit/3fadd327a2f4c753124ccc956123a1b52617d176))
* **snippets:** add snippet link ([#230](https://github.com/massCodeIO/massCode/issues/230)) ([5a744f5](https://github.com/massCodeIO/massCode/commit/5a744f5d482c783b7ee1e2ba4cb94dbea8b667e9))
* use escape to exit from markdown, code & screenshot previews ([#235](https://github.com/massCodeIO/massCode/issues/235)) ([12c6906](https://github.com/massCodeIO/massCode/commit/12c69060af04bbd4d29f2c9b9826022ca6d72572))
# [3.2.0](https://github.com/massCodeIO/massCode/compare/v3.1.0...v3.2.0) (2022-08-11)
### Features
* add presentation mode ([#215](https://github.com/massCodeIO/massCode/issues/215)) ([0b540cf](https://github.com/massCodeIO/massCode/commit/0b540cf9214a30a3b11d50a517f44efced527e5f))
* **i18n:** add Japanese locales ([#214](https://github.com/massCodeIO/massCode/issues/214)) ([5ceea07](https://github.com/massCodeIO/massCode/commit/5ceea076c691ed6e8d96050d8232e5dadc925a85))
* **keymap:** add `cmd+` / `cmd-` to control editor font size ([#222](https://github.com/massCodeIO/massCode/issues/222)) ([d8b2872](https://github.com/massCodeIO/massCode/commit/d8b2872c5073038e505290eebbfc291c09aec31a))
* **markdown:** add optional codemirror as code block renderer ([#218](https://github.com/massCodeIO/massCode/issues/218)) ([4a76beb](https://github.com/massCodeIO/massCode/commit/4a76beb76f4e2bd6a5d82296f8d09b6508026028))
* notarizing macOS builds ([#219](https://github.com/massCodeIO/massCode/issues/219)) ([0a9c214](https://github.com/massCodeIO/massCode/commit/0a9c214da6f680a5bfc1998f195fe12e6ba0d153))
* **snippets:** add restore from trash ([#221](https://github.com/massCodeIO/massCode/issues/221)) ([0db6756](https://github.com/massCodeIO/massCode/commit/0db67561ee57ac98b17aace22fedb13db97ebedb))
# [3.1.0](https://github.com/massCodeIO/massCode/compare/v3.0.0...v3.1.0) (2022-08-08)
### Bug Fixes
* **editor:** clear search marks ([6a1bfc1](https://github.com/massCodeIO/massCode/commit/6a1bfc11b73403cc249c19555d5e4aae7d7f4936))
### Features
* add collapse/expand all folders action ([#199](https://github.com/massCodeIO/massCode/issues/199)) ([b1ee963](https://github.com/massCodeIO/massCode/commit/b1ee963f2f61cd5d0e82c85ea290693c75627b5a))
* add create a new storage ([#197](https://github.com/massCodeIO/massCode/issues/197)) ([da2f192](https://github.com/massCodeIO/massCode/commit/da2f19203da237ce567f821010d3b7e7dbaac919))
* **editor:** add embed image in mardown ([#201](https://github.com/massCodeIO/massCode/issues/201)) ([37dcae9](https://github.com/massCodeIO/massCode/commit/37dcae9ba53c5f96af7b1b3655adaf234351702f))
* **i18n:** add Português (Brasil) locale ([#194](https://github.com/massCodeIO/massCode/issues/194)) ([3e60142](https://github.com/massCodeIO/massCode/commit/3e601425b4b8c96a868b730d257183cdf91dbac8))
* **main: menu:** add snippet collection link ([#198](https://github.com/massCodeIO/massCode/issues/198)) ([861f889](https://github.com/massCodeIO/massCode/commit/861f889f473aea59a7f032663a89c09079e944e9))
* **themes:** add material palenight ([#195](https://github.com/massCodeIO/massCode/issues/195)) ([d644074](https://github.com/massCodeIO/massCode/commit/d644074dceb64ae798942c26d0487eb9cd17df01))
* **themes:** add tokyo night ([#196](https://github.com/massCodeIO/massCode/issues/196)) ([f17aa89](https://github.com/massCodeIO/massCode/commit/f17aa8918b0da0a1bdc1c59f6545f8f0fd791e65))
# [3.0.0](https://github.com/massCodeIO/massCode/compare/v2.11.0...v3.0.0) (2022-08-05)
### Features
* add codemirror & use `.tmLanguage` directly as grammar ([#190](https://github.com/massCodeIO/massCode/issues/190)) ([a36bcf0](https://github.com/massCodeIO/massCode/commit/a36bcf005f4210a372b424ccc7e7c3fb84f7d634))
# [2.11.0](https://github.com/massCodeIO/massCode/compare/v2.10.0...v2.11.0) (2022-08-04)
### Bug Fixes
* **snippets:** folder rename [#162](https://github.com/massCodeIO/massCode/issues/162) ([#169](https://github.com/massCodeIO/massCode/issues/169)) ([c5ddd23](https://github.com/massCodeIO/massCode/commit/c5ddd231c6baecda6df572dda4406d50cc803575))
### Features
* **i18n:** add Chinese traditional locale ([#161](https://github.com/massCodeIO/massCode/issues/161)) ([8b00fcd](https://github.com/massCodeIO/massCode/commit/8b00fcd58eca6c42402a747f23ac57ee8be28927))
* **i18n:** add Spanish locale ([bd68311](https://github.com/massCodeIO/massCode/commit/bd6831123158a38166025a3683412a290ca74114))
# [2.10.0](https://github.com/massCodeIO/massCode/compare/v2.9.0...v2.10.0) (2022-07-21)
### Bug Fixes
* **editor:** fallback to monospace font [#149](https://github.com/massCodeIO/massCode/issues/149) ([3d9efcd](https://github.com/massCodeIO/massCode/commit/3d9efcdc6dd82d6ae598e160333c3fb116b87aa9))
* **editor:** height when opening code preview ([#131](https://github.com/massCodeIO/massCode/issues/131)) ([c8d8443](https://github.com/massCodeIO/massCode/commit/c8d84432d71873a5b64c66c9f1afc4043031a20d))
### Features
* add tooltips ([#159](https://github.com/massCodeIO/massCode/issues/159)) ([9c90e71](https://github.com/massCodeIO/massCode/commit/9c90e713e9e6aa4d3425f0c68be2ebfba0fd5965))
* **i18n:** add Simplified Chinese for i18n ([#154](https://github.com/massCodeIO/massCode/issues/154)) ([843b91d](https://github.com/massCodeIO/massCode/commit/843b91de41752face2e8a86ae23a0e8d5ad1f57a))
* **snippets:** add snippets showcase link ([e30a174](https://github.com/massCodeIO/massCode/commit/e30a17469bf7da14e3dfaac289fbc25254bd5432))
* support i18n, add russian local ([#152](https://github.com/massCodeIO/massCode/issues/152)) ([59da3d9](https://github.com/massCodeIO/massCode/commit/59da3d95ee28f637fc3314cfc28cf940f7e3ee18))
# [2.9.0](https://github.com/massCodeIO/massCode/compare/v2.8.1...v2.9.0) (2022-07-13)
### Features
* **snippets:** add html & css renderer to snippets preview ([#126](https://github.com/massCodeIO/massCode/issues/126)) ([21828e6](https://github.com/massCodeIO/massCode/commit/21828e63a142c13953495e3d8693fe946deabe50))
## [2.8.1](https://github.com/massCodeIO/massCode/compare/v2.8.0...v2.8.1) (2022-07-09)
### Bug Fixes
* **editor:** search highlighting ([0bdab6c](https://github.com/massCodeIO/massCode/commit/0bdab6ceda460074cb1781b9ded3958309f8750f))
* **snippets:** blinking system folder when click ([bc7cdfe](https://github.com/massCodeIO/massCode/commit/bc7cdfee4090e7e65f036b6ad3b2a00913937ad6))
* **snippets:** clear search field after click folder ([6360b5c](https://github.com/massCodeIO/massCode/commit/6360b5cab456881a67ccad0ab4da61d7b5ad4e4d))
* **snippets:** double get snippets when add new snippet ([c38af77](https://github.com/massCodeIO/massCode/commit/c38af77500dd147aa3ff83bfa492464589f5b748))
* **snippets:** search [#117](https://github.com/massCodeIO/massCode/issues/117) ([beb8591](https://github.com/massCodeIO/massCode/commit/beb8591003f45305a1f08455ff4e26e785135e27))
# [2.8.0](https://github.com/massCodeIO/massCode/compare/v2.7.1...v2.8.0) (2022-07-08)
### Bug Fixes
* **markdown:** proper bg color for code block depending on theme ([85eaa64](https://github.com/massCodeIO/massCode/commit/85eaa6475c7f167b26f83e04424781844caf85c7))
* **snippets:** update editor if fragments is changed [#113](https://github.com/massCodeIO/massCode/issues/113) ([8908af9](https://github.com/massCodeIO/massCode/commit/8908af9906611d4cd604fe869840748a0bd6ce8a))
### Features
* **snippets:** create screenshot of snippets ([#115](https://github.com/massCodeIO/massCode/issues/115)) ([024dfa5](https://github.com/massCodeIO/massCode/commit/024dfa5870d9e7dd36f533dcb06898e9bc50a641))
## [2.7.1](https://github.com/massCodeIO/massCode/compare/v2.7.0...v2.7.1) (2022-07-07)
### Bug Fixes
* **editor:** update value after format ([3a91111](https://github.com/massCodeIO/massCode/commit/3a911112d7dcebc0b0299ada6e1e5e550c899197))
* **markdown:** render task list ([#107](https://github.com/massCodeIO/massCode/issues/107)) ([4ee1970](https://github.com/massCodeIO/massCode/commit/4ee19704291e55ef66b5e617ed56afc7a732edd5))
* **snippets:** await fetch snippets by click on system folders ([4f2a203](https://github.com/massCodeIO/massCode/commit/4f2a203611130713e20f64f1f4a6605d552f3dfe))
### Performance Improvements
* **editor:** set value only if snippet id is changed ([#109](https://github.com/massCodeIO/massCode/issues/109)) ([56bd929](https://github.com/massCodeIO/massCode/commit/56bd9296deae1f37a0f467b596fc4b2be0d4021c))
* **snippets:** no need to fetch snippets after patch ([3a51e69](https://github.com/massCodeIO/massCode/commit/3a51e695ac61e268cc499acd71f61ad48a57f28d))
# [2.7.0](https://github.com/massCodeIO/massCode/compare/v2.6.1...v2.7.0) (2022-07-06)
### Bug Fixes
* **snippets:** fragmetns scroll [#92](https://github.com/massCodeIO/massCode/issues/92) ([#105](https://github.com/massCodeIO/massCode/issues/105)) ([35e57dd](https://github.com/massCodeIO/massCode/commit/35e57dd233bbc518b7124084b1e64104ab9879ed))
* **snippets:** update snippets list after add new ([#101](https://github.com/massCodeIO/massCode/issues/101)) ([55bb05d](https://github.com/massCodeIO/massCode/commit/55bb05dae55a559c8bd4519713eeab24fb690218))
### Features
* add mermaid diagram for markdown ([#104](https://github.com/massCodeIO/massCode/issues/104)) ([e578056](https://github.com/massCodeIO/massCode/commit/e57805675fe352f1e9a7618d40b0e725e6fee2ba))
* **db:** add migration from SnippetsLab >= v2.1 ([#98](https://github.com/massCodeIO/massCode/issues/98)) ([542870d](https://github.com/massCodeIO/massCode/commit/542870d621673308549fdde1937f336029524830))
* **main: menu:** add donate via PayPal ([86bf46a](https://github.com/massCodeIO/massCode/commit/86bf46af9ffcaaf64cfd964c145f555ccb40ee05))
## [2.6.1](https://github.com/massCodeIO/massCode/compare/v2.6.0...v2.6.1) (2022-05-06)
### Bug Fixes
* **ui:** button spacing ([41ade18](https://github.com/massCodeIO/massCode/commit/41ade1819235ca1690450734807208279ef99ec8))
# [2.6.0](https://github.com/massCodeIO/massCode/compare/v2.5.0...v2.6.0) (2022-05-06)
### Bug Fixes
* **snippets:** deselect after context menu action ([4fb7b95](https://github.com/massCodeIO/massCode/commit/4fb7b95c8c9cb410ba25923ea90a498943db9837))
* **snippets:** flickering lang selector via add new fragment ([3c59f26](https://github.com/massCodeIO/massCode/commit/3c59f26463f2863fd20ae43c018a0e69c97ccc2a))
* **snippets:** multiple add to favorites ([1776679](https://github.com/massCodeIO/massCode/commit/1776679c78bc1b4fec892dbac736d64e6aed3e9e))
* **snippets:** show placeholder for not selected snippet ([25b4494](https://github.com/massCodeIO/massCode/commit/25b449416e74f6c253fc701c08a62c7d4770afe7))
### Features
* **snippets:** add description ([#74](https://github.com/massCodeIO/massCode/issues/74)) ([7e78922](https://github.com/massCodeIO/massCode/commit/7e78922a0536858111ffbe5ee34d9f3c156d6154))
* **snippets:** add sort by `name`, `createdAt` & `updatedAt` ([#69](https://github.com/massCodeIO/massCode/issues/69)) ([3603fad](https://github.com/massCodeIO/massCode/commit/3603fad4691dd55c329c1ce11e9050abe96e1e4a))
# [2.5.0](https://github.com/massCodeIO/massCode/compare/v2.4.0...v2.5.0) (2022-04-29)
### Bug Fixes
* **main: menu:** add check for updates for other platforms ([94676b6](https://github.com/massCodeIO/massCode/commit/94676b65c1dca707fae18fc1119d79636d20b89a))
### Features
* **main: menu:** add check for updates ([702d0f5](https://github.com/massCodeIO/massCode/commit/702d0f550306f57b2964c9588a579d6f3bbaf7c5))
* **snippets:** more languages support for prettier ([#58](https://github.com/massCodeIO/massCode/issues/58)) ([658d3c0](https://github.com/massCodeIO/massCode/commit/658d3c0bf69a801e9f4ff3c6ebd7d1b3c1e91f02))
# [2.4.0](https://github.com/massCodeIO/massCode/compare/v2.3.0...v2.4.0) (2022-04-27)
### Features
* **api:** create snippets ([#56](https://github.com/massCodeIO/massCode/issues/56)) ([4abd6bd](https://github.com/massCodeIO/massCode/commit/4abd6bd53660c8b2750700139ba0fa4202532c35))
* **main: menu:** add VS Code extension link ([98c4720](https://github.com/massCodeIO/massCode/commit/98c4720a3bf40fe3031808ccbf22717f4ac87d15))
# [2.3.0](https://github.com/massCodeIO/massCode/compare/v2.2.0...v2.3.0) (2022-04-26)
### Bug Fixes
* **api:** don't mutate snippets table during embed folders ([f60d045](https://github.com/massCodeIO/massCode/commit/f60d04586b5b7890df7dbcf5f0c71aedd4a455b4))
* **main: db:** migrate after move storage ([5406083](https://github.com/massCodeIO/massCode/commit/54060831a8bd3d3a11f63b8cb044e2c777d28f8d))
* **main: db:** set empty `value` for content if `value` is `null` on migrate from v1 [#38](https://github.com/massCodeIO/massCode/issues/38) ([1874d1c](https://github.com/massCodeIO/massCode/commit/1874d1c3c925175a74f95527d6aafb3307b09ffe))
* **snippets:** remove selected by click for system folder ([ebd9f29](https://github.com/massCodeIO/massCode/commit/ebd9f29ae31db0f5e03cec76e79a072c4b36b127))
### Features
* **main: menu:** add raycast & alfred extensions links ([aab76b6](https://github.com/massCodeIO/massCode/commit/aab76b61ad7191a929e3c3861b1394811ad926da))
* **snippets:** allow add snippets to inbox ([#52](https://github.com/massCodeIO/massCode/issues/52)) ([5cf809a](https://github.com/massCodeIO/massCode/commit/5cf809aea45e20d3cab9152dcb986652583413b6))
# [2.2.0](https://github.com/massCodeIO/massCode/compare/v2.1.1...v2.2.0) (2022-04-19)
### Bug Fixes
* **search:** set selected folder & snippet after focus on editor after search ([069e296](https://github.com/massCodeIO/massCode/commit/069e296f0aa3792990b8a25a1cfd314c853946fa))
* **snippets:** persist scroll position by change view ([ba05384](https://github.com/massCodeIO/massCode/commit/ba05384c62eb39115bcc6c0fdd5d0f0a6a83b6c5))
### Features
* **editor:** add `highlightGutter` & `highlightLine` settings ([#45](https://github.com/massCodeIO/massCode/issues/45)) ([52f8455](https://github.com/massCodeIO/massCode/commit/52f845575b641b1eeaa3a2a893b72f362908c744))
## [2.1.1](https://github.com/massCodeIO/massCode/compare/v2.1.0...v2.1.1) (2022-04-18)
### Bug Fixes
* **editor:** disable multiple selection by edit snippet after search ([ec2c1eb](https://github.com/massCodeIO/massCode/commit/ec2c1eb39605a87f575b0e5e970232b7ef5078fa))
* **sidebar:** tag highlight, spell fix tabs -> tags ([#33](https://github.com/massCodeIO/massCode/issues/33)) ([9be3e13](https://github.com/massCodeIO/massCode/commit/9be3e13b1fad2c8a5d027d36f743d7f1bc4afd86))
* **snippets:** color text for ghost for multiple dragged snippets ([fc25202](https://github.com/massCodeIO/massCode/commit/fc25202059819f298e27e4506c0625756219c97d))
# [2.1.0](https://github.com/massCodeIO/massCode/compare/v2.0.1...v2.1.0) (2022-04-15)
### Bug Fixes
* **snippets:** disable markdown preview by select other fragment [#27](https://github.com/massCodeIO/massCode/issues/27) ([#31](https://github.com/massCodeIO/massCode/issues/31)) ([a7dfceb](https://github.com/massCodeIO/massCode/commit/a7dfcebd7d0721a7c28f412ced93d4bf8d4e6518))
* unsubscribe on unmount for emiiter events [#29](https://github.com/massCodeIO/massCode/issues/29) ([#32](https://github.com/massCodeIO/massCode/issues/32)) ([d1d0bc5](https://github.com/massCodeIO/massCode/commit/d1d0bc583801d8655a1736310b4baef9e4f58372))
### Features
* **main: db:** migrate from SnippetsLab ([#30](https://github.com/massCodeIO/massCode/issues/30)) ([1d48506](https://github.com/massCodeIO/massCode/commit/1d485067c5b6f476d92149905b437ae918a16963))
## [2.0.1](https://github.com/massCodeIO/massCode/compare/v2.0.0...v2.0.1) (2022-04-15)
### Bug Fixes
* **snippets:** system folder highlight ([4cfe131](https://github.com/massCodeIO/massCode/commit/4cfe131bc79f55b28b1929905adfd86a7ada6086))
# [2.0.0](https://github.com/massCodeIO/massCode/compare/v2.0.0-beta.6...v2.0.0) (2022-04-15)
### Bug Fixes
* **snippets:** sort by `updatedAt` ([f5f50e6](https://github.com/massCodeIO/massCode/commit/f5f50e6a68d5b309fabe77f402b370a6d4d22d43))
### Features
* **api:** add controller to get snippets with folder ([3a2f1fb](https://github.com/massCodeIO/massCode/commit/3a2f1fb0f1d224e943942ad02be851c97a62ef97))
* **main: menu:** add find menu ([e42349e](https://github.com/massCodeIO/massCode/commit/e42349e25f6cfdbb9b74d3f7815a3e7eabd2b39a))
* **snippets:** show time for today updated & full date for other snippets ([3724a5b](https://github.com/massCodeIO/massCode/commit/3724a5b459034bab90a3410c5e2d720394c33581))
# [2.0.0-beta.6](https://github.com/massCodeIO/massCode/compare/v2.0.0-beta.5...v2.0.0-beta.6) (2022-04-14)
### Features
* add 4 light & 4 dark app theme ([#26](https://github.com/massCodeIO/massCode/issues/26)) ([e9dff1e](https://github.com/massCodeIO/massCode/commit/e9dff1e7739f770d557dc8cea4fcfc2bd131d0cd))
* **folders:** add rename context menu ([#25](https://github.com/massCodeIO/massCode/issues/25)) ([654767b](https://github.com/massCodeIO/massCode/commit/654767b98dbf25390af892ac3eb1ba93f7cefee0))
* **snippets:** exit from edit mode by enter for fragment ([9e3e301](https://github.com/massCodeIO/massCode/commit/9e3e301006953bc81ac7fee9bb3c1920b1ec5d39))
# [2.0.0-beta.5](https://github.com/massCodeIO/massCode/compare/v2.0.0-beta.4...v2.0.0-beta.5) (2022-04-13)
### Bug Fixes
* **snippets:** cut off snippets name for Windows [#20](https://github.com/massCodeIO/massCode/issues/20) ([#24](https://github.com/massCodeIO/massCode/issues/24)) ([097d2cb](https://github.com/massCodeIO/massCode/commit/097d2cbf688fdfc7404d1e7d9e479bb70dd42ed0))
* **snippets:** open external link in markdown ([b5d3ee0](https://github.com/massCodeIO/massCode/commit/b5d3ee01cf7ad48dffb0255d10b652f98659867b))
### Features
* add prettier for snippets formatting ([#22](https://github.com/massCodeIO/massCode/issues/22)) ([14b0f86](https://github.com/massCodeIO/massCode/commit/14b0f86ab67ed7bea7277c424988f75e07a8ed91))
* resizable layout ([#19](https://github.com/massCodeIO/massCode/issues/19)) ([a1e41b3](https://github.com/massCodeIO/massCode/commit/a1e41b3ab567854eda7b9c636cb94c6e34614242))
* update main menu ([#21](https://github.com/massCodeIO/massCode/issues/21)) ([6d14e7d](https://github.com/massCodeIO/massCode/commit/6d14e7df657f4762a8e43f207e909ee3eaed33cf))
# [2.0.0-beta.4](https://github.com/massCodeIO/massCode/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2022-04-12)
### Bug Fixes
* **editor:** undo/redo stack ([84096c4](https://github.com/massCodeIO/massCode/commit/84096c47bcf88b49229997d592f473f23812672e))
* **snippets:** sort in 'All snippets' ([ab799d5](https://github.com/massCodeIO/massCode/commit/ab799d5df478bed659d56cb6529c1dd589355c0f))
### Features
* add editor preferences ([#18](https://github.com/massCodeIO/massCode/issues/18)) ([d1fe23f](https://github.com/massCodeIO/massCode/commit/d1fe23fd510445426424bef85df2e3cf01c086e4))
* **snippets:** add markdown preview ([#15](https://github.com/massCodeIO/massCode/issues/15)) ([c208871](https://github.com/massCodeIO/massCode/commit/c2088712ffbc38c2ce2593ec50dbaeaa6291bd7a))
# [2.0.0-beta.3](https://github.com/massCodeIO/massCode/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2022-04-11)
### Bug Fixes
* **main: db:** create app folder [#14](https://github.com/massCodeIO/massCode/issues/14) ([750637d](https://github.com/massCodeIO/massCode/commit/750637d068dae50dc10cc7308e9f5862754f0177))
* **snippets:** scroll to top ([2dbecaf](https://github.com/massCodeIO/massCode/commit/2dbecaff987d9376e62fab0e98aa9194ef01d2d3))
# [2.0.0-beta.2](https://github.com/massCodeIO/massCode/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2022-04-10)
### Features
* support win ([#13](https://github.com/massCodeIO/massCode/issues/13)) ([edc114c](https://github.com/massCodeIO/massCode/commit/edc114cd4995913f039da0197c2560c5a99828f1))
# [2.0.0-beta.1](https://github.com/massCodeIO/massCode/compare/9fd7085f113be898b9bde3a78eca1eff56c7a391...v2.0.0-beta.1) (2022-04-09)
### Bug Fixes
* **build:** change main script, move files to `src` ([6eb1e8a](https://github.com/massCodeIO/massCode/commit/6eb1e8a788abb15ec32d4089868ee2f5b30c6b30))
* **build:** include renderer to build ([8ea99c5](https://github.com/massCodeIO/massCode/commit/8ea99c5f1206876786e2a9d046fbc59d7048a2a0))
* **editor:** init theme ([1de3afa](https://github.com/massCodeIO/massCode/commit/1de3afae2669c9bf3125281c7192f6dd40b82d06))
* **editor:** set lang during init ([34c340d](https://github.com/massCodeIO/massCode/commit/34c340d91df1e3a93632526108fd3dfc30f3fd50))
* **editor:** update height ([2f55391](https://github.com/massCodeIO/massCode/commit/2f5539138448c6b062be3afca041a8e65c18192f))
* in build need to push to main route ([4dc4974](https://github.com/massCodeIO/massCode/commit/4dc497434e5612e87f178ae3ec9875eb95fe121f))
* **ipc:** cancel delete snippet ([7c71b49](https://github.com/massCodeIO/massCode/commit/7c71b4924a0c876ab767fa398ce4557a4bb48e9a))
* **main: api:** path resolve ([07d7f8c](https://github.com/massCodeIO/massCode/commit/07d7f8cf24cfc4d2fca14c77e579e9a39cc21c31))
* **main: db:** remove from app store `selectedFolderId` & `selectedFolderIds` ([8e364f1](https://github.com/massCodeIO/massCode/commit/8e364f1ea8617f0fd705b9982e381a39a7fa722d))
* **main: ipc:** add typing ([07cfb74](https://github.com/massCodeIO/massCode/commit/07cfb7432ad67992e13a57cf42c243a923879b5f))
* **main: store:** set cwd to v2 to prevent conflict ([075b490](https://github.com/massCodeIO/massCode/commit/075b4907de48d5c97ff1ee2a9ba5414ebf60afb4))
* **main:** import config in build ([aa68762](https://github.com/massCodeIO/massCode/commit/aa6876221b7e83c81e28c9f9d460d756270df148))
* **main:** ipc listener for `restart` ([4ea5460](https://github.com/massCodeIO/massCode/commit/4ea5460675aeb8e6d9013fda3bc09b084d293c95))
* **main:** set storage & backup path in dev mode ([dd455cf](https://github.com/massCodeIO/massCode/commit/dd455cfe8b0137bc752039908facdc647ea04725))
* **router:** import all views at once ([7762315](https://github.com/massCodeIO/massCode/commit/7762315e512c3135c8d0f08b670c110c2f251c74))
* **snippets:** `currentContent` & `currentLanguage` getters ([4b6e4e4](https://github.com/massCodeIO/massCode/commit/4b6e4e4952c701f691ec4b284447bb6553e8cb28))
* **snippets:** add `folder` prop as optional ([e28c761](https://github.com/massCodeIO/massCode/commit/e28c7614f3a921665276ed0f8a920d028c6d03c6))
* **snippets:** add new snippet from list header ([686c982](https://github.com/massCodeIO/massCode/commit/686c9829c6188c67bcc832e4b786b2089c35af34))
* **snippets:** blur snippets after context menu ([c8b1c6a](https://github.com/massCodeIO/massCode/commit/c8b1c6a4be754bf3f1efade02599c03c65d1cb2e))
* **snippets:** check for `undefined` ([f2b6a2f](https://github.com/massCodeIO/massCode/commit/f2b6a2f13c4cf03c20b97dc207fe30ed276eee56))
* **snippets:** delete fragments ([453fc05](https://github.com/massCodeIO/massCode/commit/453fc053862bc5045bd4e9c9837cafaed16831ea))
* **snippets:** delete from electron store snippet id ([b5dcb73](https://github.com/massCodeIO/massCode/commit/b5dcb7345badebaecaa7f46da8154fa100d7ce58))
* **snippets:** filter by not deleted ([c1099e7](https://github.com/massCodeIO/massCode/commit/c1099e73070a191f0235de52ef7446f27ba82c34))
* **snippets:** focus snippet name by add new snippet ([e2e4ff3](https://github.com/massCodeIO/massCode/commit/e2e4ff3d0193945fbb2cf0b578498f98c92f6f4b))
* **snippets:** get all snippets after patch ([f6b0d76](https://github.com/massCodeIO/massCode/commit/f6b0d7659a828a982224334355605a88495c2061))
* **snippets:** set first selected ([24bc85c](https://github.com/massCodeIO/massCode/commit/24bc85c5a82f0cc725e177d24a8533f0d4b20594))
* **snippets:** unset `selectedIds` by `setSnippetsByAlias` ([7d76a6c](https://github.com/massCodeIO/massCode/commit/7d76a6c3ede566f9d872914f29989dc2d2537ead))
* **tags:** scroll ([b060225](https://github.com/massCodeIO/massCode/commit/b0602254a11e8e4df30948beeb0120dabfeb54bc))
* **ui: tree:** disable `hoveredNodeId` if is dragged tree node ([6eab5e6](https://github.com/massCodeIO/massCode/commit/6eab5e67feea2f8abd8d9a8fc0e04a255d26bec2))
### Features
* add analytics ([#12](https://github.com/massCodeIO/massCode/issues/12)) ([d73856c](https://github.com/massCodeIO/massCode/commit/d73856cc631616d465a1c185466a99b9dcbf7840))
* add custom scroll, restore snippet position during init ([#10](https://github.com/massCodeIO/massCode/issues/10)) ([889624f](https://github.com/massCodeIO/massCode/commit/889624fb2e2307dcf89896027c775eeb1a91b4ac))
* add db (basic) ([#1](https://github.com/massCodeIO/massCode/issues/1)) ([bccf129](https://github.com/massCodeIO/massCode/commit/bccf129b4a4c10d5df5f48684fd1e51818db41a2))
* add editor (base) ([9fd7085](https://github.com/massCodeIO/massCode/commit/9fd7085f113be898b9bde3a78eca1eff56c7a391))
* add folder component & retrieve folders from store ([9120886](https://github.com/massCodeIO/massCode/commit/91208869996ac254cbfe2e596d852c523a81d0fc))
* add folder tree ([#2](https://github.com/massCodeIO/massCode/issues/2)) ([ac025f0](https://github.com/massCodeIO/massCode/commit/ac025f031c4d1cf0c2bfe1253812de2dd827581a))
* add init app ([5e4de2a](https://github.com/massCodeIO/massCode/commit/5e4de2a84288d21b80d9cae6688a9b48a01b8e08))
* add search ([#9](https://github.com/massCodeIO/massCode/issues/9)) ([e8f4bce](https://github.com/massCodeIO/massCode/commit/e8f4bceec2c1eccc36496eea4beda8be75af4dbb))
* add sidebar (basic) ([118e83a](https://github.com/massCodeIO/massCode/commit/118e83a808c683d9b8e2795bb6426bf84b68823c))
* add snippet list (basic) ([5681c75](https://github.com/massCodeIO/massCode/commit/5681c754a4a9457f4dc41bf0696e65a1a2503c4a))
* add snippets header, fragments (basic) ([8ae34ee](https://github.com/massCodeIO/massCode/commit/8ae34ee0249646cdcc2d770959a8f6c3af63c47e))
* add storage preferences ([#11](https://github.com/massCodeIO/massCode/issues/11)) ([7756db5](https://github.com/massCodeIO/massCode/commit/7756db5cd65638bfffe12cf8df8d5af1e4ec7a38))
* add tags ([#8](https://github.com/massCodeIO/massCode/issues/8)) ([c84386c](https://github.com/massCodeIO/massCode/commit/c84386c997669220368064ddc71489c8d0c599e0))
* **api:** add snippets batch delete ([f27295a](https://github.com/massCodeIO/massCode/commit/f27295a795c8a2422ee8470674a5a3af2857af27))
* **composable:** add `useApi` ([b29cd11](https://github.com/massCodeIO/massCode/commit/b29cd11a133cbf218ac824f0c18ee9791b9e4e6e))
* **composable:** add emitter ([80f7fc5](https://github.com/massCodeIO/massCode/commit/80f7fc5bf124cdb63e27c1722611814f1cd875d9))
* drop .env & add `config.ts` ([1ad8639](https://github.com/massCodeIO/massCode/commit/1ad8639041111d39679f2d9d2d942dd9145ad800))
* **editor:** add old languages mapping ([bfd86ba](https://github.com/massCodeIO/massCode/commit/bfd86ba6a1553f4c92fe65860fa76ffab08d75d0))
* **editor:** disable all keybindings ([b75d987](https://github.com/massCodeIO/massCode/commit/b75d987bdf5c0aca21744339e4f969ae7f61b283))
* fetch multiple folders with snippets ([62d427d](https://github.com/massCodeIO/massCode/commit/62d427db4987929ed548d99697e57345ccd7bd29))
* **folders:** add alias ([7297274](https://github.com/massCodeIO/massCode/commit/729727414a6a483e7a3ccd76d52046a00609bde3))
* **folders:** add context menu for add new, delete ([9f921b2](https://github.com/massCodeIO/massCode/commit/9f921b2ea7780c9ef1a34448c2bf31398be89835))
* **main: api:** add middleware for POST, PATCH & PUT ([df26660](https://github.com/massCodeIO/massCode/commit/df266606c5e1716dd8fd2e85f1eaf763abdd7fd0))
* **main: components:** return instance of menu ([5b12cc7](https://github.com/massCodeIO/massCode/commit/5b12cc7dcb35bf246a6b506365f85637bcd39011))
* **main: db:** map old languages during migration ([9e91d5a](https://github.com/massCodeIO/massCode/commit/9e91d5a0f5ff7686f1aeb1c1b62b0b8e19583fca))
* **main: ipc:** add context menu for snippets ([24f33c2](https://github.com/massCodeIO/massCode/commit/24f33c2523690406a2c65fba2bafa297e06c4192))
* **main: ipc:** add restart app listener ([1b8ea86](https://github.com/massCodeIO/massCode/commit/1b8ea860bb5969fd62bed02526fce154f1572f6e))
* **main: ipc:** create notification ([8a66475](https://github.com/massCodeIO/massCode/commit/8a66475819e59dbb4133fc655f0d1e69d7c1bdb1))
* **main: store:** store selected folder & snippet id ([b0547e2](https://github.com/massCodeIO/massCode/commit/b0547e23d7a6b085c27aac5a82ea18a8404af56d))
* **main:** add `createPopupMenu` constructor ([cc806ba](https://github.com/massCodeIO/massCode/commit/cc806ba003f16c8d35799f18cf6c66003fcfb4ff))
* **main:** add context menu ipc, typing ([d5c11ee](https://github.com/massCodeIO/massCode/commit/d5c11ee8f23e36d98588706592b3c7fd0bc235a1))
* **main:** check for update ([09ec5ee](https://github.com/massCodeIO/massCode/commit/09ec5eed378658bc6ec59c90b61d48b771d3fdb1))
* **main:** disable `webSecurity` ([3bd9999](https://github.com/massCodeIO/massCode/commit/3bd9999bfb276fc30a732b7ff60f297e0fbbc210))
* **main:** expose `on` & `once` events ([008e11a](https://github.com/massCodeIO/massCode/commit/008e11aa2ea8c010003182f7e6cc51eebd05000c))
* **main:** expose only `invoke` ipc ([daf42b5](https://github.com/massCodeIO/massCode/commit/daf42b5b134edd479bd93db0d669b260783ac832))
* **main:** extend exposed store methods ([e24ee88](https://github.com/massCodeIO/massCode/commit/e24ee88da68a3cc74cee9875855a9eeba8751cf3))
* **main:** provide preferences ([9520dc9](https://github.com/massCodeIO/massCode/commit/9520dc9523267eecfc3440f5ca99fe432534bc3c))
* **main:** provide store to renderer ([9829f0a](https://github.com/massCodeIO/massCode/commit/9829f0ad56b8b1a2a033961b67aee0e215bbe922))
* **main:** remove trash as folder from default ([34c8287](https://github.com/massCodeIO/massCode/commit/34c8287bc2da2319e9363431862851f8b9fcb766))
* **main:** set window width to 1000 ([a89367b](https://github.com/massCodeIO/massCode/commit/a89367b988fecb8592d5efc52fddf40a38317b96))
* **main:** store window bounds on move & resize ([3d1e88d](https://github.com/massCodeIO/massCode/commit/3d1e88d486c094c921a76cdd165af82b8b46e540))
* **sidebar:** add focus, selected state ([bc7f2d3](https://github.com/massCodeIO/massCode/commit/bc7f2d34f89e9b8ccc31bd852b5d487fa36b5429))
* **snippets:** add copy to clipboard ([1699335](https://github.com/massCodeIO/massCode/commit/169933530ca173c08b85d404e90d161edaa3a9bd))
* **snippets:** add date format, name placeholder ([da12895](https://github.com/massCodeIO/massCode/commit/da128951251d8514e4ad276779e9c043aedf2628))
* **snippets:** add delete fragment ([40c54fb](https://github.com/massCodeIO/massCode/commit/40c54fb14563be3b82d2fd95e8cec1626b887277))
* **snippets:** add delete method ([caad594](https://github.com/massCodeIO/massCode/commit/caad594b2b0f17117d94f44fbe98ff11dc7fe546))
* **snippets:** add delete, duplicate & add to favorites ([bc306fe](https://github.com/massCodeIO/massCode/commit/bc306fece419dbc0e1b2e7034a35648b05136052))
* **snippets:** add ediable snippet name, focus name for new snippet ([2798fa0](https://github.com/massCodeIO/massCode/commit/2798fa0b0ad6c1c84ea214355162175254b1cf91))
* **snippets:** add empty trash ([8bcf972](https://github.com/massCodeIO/massCode/commit/8bcf97297f02a5e2e24182aa94849f1380e689b9))
* **snippets:** add fragment coun ([6fdf620](https://github.com/massCodeIO/massCode/commit/6fdf62095083d6597a77a11629f0348a70c2ca4a))
* **snippets:** add h-scroll for fragments ([8ec47a6](https://github.com/massCodeIO/massCode/commit/8ec47a631f1a3021db72157ead99e9b28f3f399f))
* **snippets:** add multiple selection ([#6](https://github.com/massCodeIO/massCode/issues/6)) ([dcd0ff4](https://github.com/massCodeIO/massCode/commit/dcd0ff4a9483a89fb04e46facf8d4703c709e200))
* **snippets:** add new fragment ([fa1e828](https://github.com/massCodeIO/massCode/commit/fa1e828df9018f52181bc1ba95861762241089b7))
* **snippets:** add new snippet action ([60f35d7](https://github.com/massCodeIO/massCode/commit/60f35d733be3257722b2410e88d424d2a78d8258))
* **snippets:** add new snippet method ([412b3a1](https://github.com/massCodeIO/massCode/commit/412b3a14d7d0c5e6375f9e3212878cd13c4d5057))
* **snippets:** add patch method ([41ba0c8](https://github.com/massCodeIO/massCode/commit/41ba0c8c55e55cc45e832c09701fccf188c31934))
* **snippets:** add placeholder for not selected ([445431f](https://github.com/massCodeIO/massCode/commit/445431fdc3d63bdd086912e2e402a7674f20795b))
* **snippets:** add separeate context menu & actions ([2dc81b5](https://github.com/massCodeIO/massCode/commit/2dc81b5b633340b875a1dcc72f65cb715c05cec2))
* **snippets:** add snippets to folder by drag & drop ([a27b042](https://github.com/massCodeIO/massCode/commit/a27b04246625646aee2dfea224fda19a0c555d1b))
* **snippets:** editable fragment name ([8df0ea3](https://github.com/massCodeIO/massCode/commit/8df0ea368c5bbf5bcef9f418408ce842e6114203))
* **snippets:** get all snipptes, set snippets by folder id or alias ([313301c](https://github.com/massCodeIO/massCode/commit/313301c4fa1e7c2078f61d9b41454f6df4519a63))
* **snippets:** listen `context-menu:close` to remove highlight ([3fce6b5](https://github.com/massCodeIO/massCode/commit/3fce6b5ab4b5522c9f80b3a23f1ee166070c5987))
* **snippets:** retrieve snippets from store, update style ([88e7546](https://github.com/massCodeIO/massCode/commit/88e75462ce61885430094f81397a50a7c43b271a))
* **snippets:** select new fragment after add ([04c51af](https://github.com/massCodeIO/massCode/commit/04c51af36984f7d8c63e769c57c5e9f3d1d09e96))
* **snippets:** show only non deleted snippets ([f895d97](https://github.com/massCodeIO/massCode/commit/f895d9741cb653619e55daee3073aedb6cbe106c))
* **snippets:** sort by date ([dea7dc2](https://github.com/massCodeIO/massCode/commit/dea7dc27af6e2b8a3b3b21a60b1eeb47725e9905))
* **snippets:** use debounce for update content ([6d56cb5](https://github.com/massCodeIO/massCode/commit/6d56cb5643d4515acfd43f78521bae8d32060046))
* **store:** add app store, set app theme ([a48d439](https://github.com/massCodeIO/massCode/commit/a48d439932576d20df78fda3f117e6c022a791e1))
* **store:** add snippets & folders store (basic) ([18462a4](https://github.com/massCodeIO/massCode/commit/18462a48212e188767c8b19bbb8b040754cb08e1))
* **ui: tree:** add & expose`hoveredNodeId` ([59d7886](https://github.com/massCodeIO/massCode/commit/59d7886025a6c12b41eb96f6dc45994903fc0b02))
* **ui:** add `AppActionButton` ([20e739e](https://github.com/massCodeIO/massCode/commit/20e739e358c160c8934010c4ae3a8ebcf00efd20))
* **ui:** add `contextMenuHandler` for AppTree ([f8ded2a](https://github.com/massCodeIO/massCode/commit/f8ded2a680418b50c747ac74e3ba775242786ca7))
* update db table by API request, remove manual restart server ([cdbec6f](https://github.com/massCodeIO/massCode/commit/cdbec6f30719da5a4b712a1b2322083ed33814e2))
* update init ([cb3507d](https://github.com/massCodeIO/massCode/commit/cb3507db680dfc0df3b02afd11cd02dac083a5fe))
================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Code Of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, political party, or sexual identity and orientation. Note, however, that religion, political party, or other ideological affiliation provide no exemptions for the behavior we outline as unacceptable in this Code of Conduct.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team by DM at [email](reshetov.art@gmail.com). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
================================================
FILE: CONTRIBUTING.md
================================================
Hey there! We are really excited that you are interested in contributing. Before submitting your contribution, please make sure to take a moment and read through the following guide:
## Sending Pull Request
### Discuss First
Before you start to work on a feature pull request, it's always better to open a feature request issue first to [discuss](https://github.com/massCodeIO/massCode/discussions) with the maintainers whether the feature is desired and the design of those features. This would help save time for both the maintainers and the contributors and help features to be shipped faster.
For typo fixes, it's recommended to batch multiple typo fixes into one pull request to maintain a cleaner commit history.
### Commit Convention
We use [Conventional Commits](https://www.conventionalcommits.org/) for commit messages, which allows the changelog to be auto-generated based on the commits. Please read the guide through if you aren't familiar with it already.
Only `fix:` and `feat:` will be presented in the changelog.
Note that `fix:` and `feat:` are for actual code changes (that might affect logic). For typo or document changes, use docs: or chore: instead:
- ~~`fix: typo`~~ -> `docs: fix typo`
### Pull Request
If you don't know how to send a Pull Request, we recommend reading the [guide](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request).
When sending a pull request, make sure your PR's title also follows the Commit Convention.
If your PR fixes or resolves an existing issue, please add the following line in your PR description (replace 123 with a real issue number):
```
fix #123
```
It's ok to have multiple commits in a single PR, you don't need to rebase or force push for your changes as we will use Squash and Merge to squash the commits into one commit when merging.
And of course please test your code before PR.
================================================
FILE: LICENSE
================================================
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero 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
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
================================================
FILE: README.md
================================================
<p align="center">
<img src="./.github/assets/logo.png" alt="massCode" width="150">
</p>
<h1 align="center">massCode</h1>
<p align="center">
A free, open-source code snippet manager to create, organize, and instantly access your personal snippet library.
</p>
<p align="center">
<strong>Built with Electron, Vue & Codemirror.</strong>
<br>
Inspired by applications like SnippetsLab and Quiver.
</p>
<p align="center">
<img alt="GitHub package.json version" src="https://img.shields.io/github/package-json/v/massCodeIO/massCode">
<img alt="GitHub All Releases" src="https://img.shields.io/github/downloads/massCodeIO/massCode/total">
<img alt="GitHub" src="https://img.shields.io/github/license/massCodeIO/massCode">
</p>
<p align="center">
<a href="https://github.com/massCodeIO/massCode/releases">Latest Release</a> |
<a href="https://masscode.io/documentation/">Documentation</a> |
<a href="https://github.com/massCodeIO/massCode/blob/master/CHANGELOG.md">Change Log</a>
</p>
<p align="center">
Extensions:
<a href="https://marketplace.visualstudio.com/items?itemName=AntonReshetov.masscode-assistant">VS Code</a> |
<a href="https://www.raycast.com/antonreshetov/masscode">Raycast</a>
</p>
<p align="center">
<strong>SPONSORS</strong>
</p>
<p align="center">
<a href="https://m.do.co/c/f2bb3bfab2e6">
<img src='.github/assets/DO.svg'>
</a>
<a href="https://mysigmail.com/?ref=github/massCodeIO">
<img src='.github/assets/MySigMail.svg'>
</a>
</p>
## Support
massCode is an open-source project and completely free to use.
Maintaining and adding new features requires significant time and effort. If you find massCode useful, consider supporting its development. Your contribution helps keep the project alive and moving forward.
You can support massCode through the following channels:
<div align="center">
[](https://opencollective.com/masscode)
[](https://paypal.me/antongithub)
[](https://antonreshetov.gumroad.com/l/masscode)
[](https://buy.polar.sh/polar_cl_bpDmjg079kfiAVtdtrtBwxyRXN6NK8B4Bvqdk2QXdx7)
</div>
## Features
### Organization
Organize your snippets with multi-level folders and tags. Each snippet can contain multiple fragments (tabs), giving you fine-grained control over structure and grouping.
### Editor
Built on [CodeMirror](https://github.com/codemirror/codemirror5) with `.tmLanguage` grammars for syntax highlighting.
* Supports over [600 grammars](https://github.com/github/linguist/blob/master/vendor/README.md), with 160+ available out of the box.
* Integrated [Prettier](https://prettier.io) for clean, consistent code formatting.
### Real-time HTML & CSS Preview
Write and instantly preview HTML and CSS snippets. Perfect for prototyping, testing ideas, or quick visual checks.
### Markdown
Full Markdown support with syntax highlighting, tables, lists, and more.
* Integrated [Mermaid](https://mermaid-js.github.io/mermaid/#) for dynamic diagrams and charts.
### Presentation Mode
Turn a sequence of snippets into a presentation. Useful for classrooms, team meetings, conference talks, or simply walking through your own notes.
### Mindmap
Generate mind maps from Markdown. Fast, intuitive, and ideal for structuring and visualizing ideas.
### JSON Visualizer
Visualize and explore your JSON data with an interactive graph view. Perfect for quickly inspecting complex responses, APIs, or configuration files.
### Math Notebook
A calculator notepad inspired by [Numi](https://numi.app). Write expressions in natural language and get instant results on each line. Supports arithmetic, percentages, unit conversions, 28 currencies with live rates, date & time operations, variables, and more.
### Beautiful Screenshots
Export snippets as polished images with customizable themes and backgrounds.
### Developer Tools
Handy built-in utilities for everyday dev tasks:
* **Text Tools**: Case Converter, Slug Generator, URL Parser
* **Crypto & Security**: Hash/HMAC, Password Generator, UUID
* **Encoders/Decoders**: URL, Base64, JSON ⇄ TOML/XML/YAML, Text ⇄ ASCII/Binary/Unicode, Color Converter
### Custom Themes
Fully customize the UI and editor syntax highlighting with JSON theme files stored in `~/.massCode/themes/`. Supports light and dark types with live reload.
### Integrations
Extend your workflow with:
* [VS Code Extension](https://marketplace.visualstudio.com/items?itemName=AntonReshetov.masscode-assistant): zen mode snippet search, instant insertion, and save selected code as snippets.
* [Raycast Extension](https://www.raycast.com/antonreshetov/masscode): quick snippet access directly from Raycast.
## Storage
massCode supports two storage engines — you can switch between them in **Settings → Storage**.
### Markdown Vault
The default storage engine. Snippets are stored as plain `.md` files on disk with frontmatter metadata. The vault structure mirrors your folder hierarchy.
* **Git-friendly** — track changes, sync via GitHub or any Git remote.
* **Cloud sync** — works with iCloud, Dropbox, Syncthing, or any file sync service.
* **Live sync** — massCode watches the vault directory and picks up external changes in real time.
### SQLite (Legacy)
All data is stored in a single SQLite database file. SQLite engine is deprecated and will be removed in future versions. Please migrate to Markdown Vault.
## Overview
massCode was created as a personal learning project and evolved into an open-source tool. The goal: combine the best features of snippet managers (free and paid) into one flexible, developer-friendly application.
## Build Locally
### Prerequisites
- Node.js (>=20.16.0)
- pnpm (>= 9.0.0)
### Install Dependencies
```bash
pnpm install
```
### Build
To build for current platform:
```bash
pnpm build
```
To build for a specific platform:
```bash
pnpm build:mac # macOS
pnpm build:win # Windows
pnpm build:linux # Linux
```
### Development
To run in development mode:
```bash
pnpm dev
```
This will start the application with hot reloading.
## Troubleshooting
### macOS
If you encounter the error message "massCode" is damaged and can't be opened. You should move it to the Trash while installing software on macOS, it may be due to security settings restrictions in macOS.
**Option 1: System Settings (macOS 13+)**
1. Open **System Settings** → **Privacy & Security**
2. Scroll down to find "massCode" in the list of blocked applications
3. Click **Allow Anyway** or **Open Anyway**
4. You may need to enter your administrator password
**Option 2: Terminal command**
```bash
sudo xattr -r -d com.apple.quarantine /Applications/massCode.app
```
## Follow
- News and updates on [X](https://x.com/anton_reshetov).
- [Discussions](https://github.com/massCodeIO/massCode/discussions).

## License
[AGPL-3.0](https://github.com/massCodeIO/massCode/blob/master/LICENSE)
Copyright (c) 2019-present, [Anton Reshetov](https://github.com/antonreshetov).
================================================
FILE: build/entitlements.mac.inherit.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>
================================================
FILE: commitlint.config.js
================================================
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'polish',
'refactor',
'release',
'revert',
'style',
'test',
'types',
],
],
},
}
================================================
FILE: components.json
================================================
{
"$schema": "https://shadcn-vue.com/schema.json",
"style": "new-york",
"typescript": true,
"tailwind": {
"config": "",
"css": "src/renderer/styles.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"aliases": {
"components": "@/components",
"utils": "@/utils",
"ui": "@/components/ui/shadcn2",
"lib": "@/utils",
"composables": "~/composables"
},
"registries": {}
}
================================================
FILE: electron-builder.json
================================================
{
"$schema": "https://json.schemastore.org/electron-builder",
"appId": "io.masscode.app",
"productName": "massCode",
"directories": {
"output": "dist"
},
"files": [
"build/renderer/**/*",
"build/main/**/*",
"!build/**/*.map"
],
"mac": {
"target": "dmg",
"icon": "build/icons/icon.icns",
"entitlements": "build/entitlements.mac.inherit.plist",
"category": "public.app-category.productivity",
"hardenedRuntime": true,
"identity": null
},
"win": {
"target": ["nsis", "portable"],
"icon": "build/icons/icon.ico"
},
"linux": {
"target": ["AppImage"],
"icon": "build/icons/icon.png"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"shortcutName": "massCode",
"artifactName": "${productName}-${version}-${arch}.${ext}"
},
"portable": {
"artifactName": "${productName}-${version}-${arch}-portable.${ext}"
},
"protocols": [
{
"name": "massCode",
"schemes": ["masscode"]
}
]
}
================================================
FILE: electron-builder.sponsored.json
================================================
{
"$schema": "https://json.schemastore.org/electron-builder",
"appId": "io.masscode.app",
"productName": "massCode",
"directories": {
"output": "dist"
},
"files": [
"build/renderer/**/*",
"build/main/**/*",
"!build/**/*.map"
],
"artifactName": "${productName}-${version}-${arch}-sponsored.${ext}",
"mac": {
"target": "dmg",
"icon": "build/icons/icon.icns",
"entitlements": "build/entitlements.mac.inherit.plist",
"category": "public.app-category.productivity",
"hardenedRuntime": true,
"identity": null
},
"win": {
"target": ["nsis", "portable"],
"icon": "build/icons/icon.ico"
},
"linux": {
"target": ["AppImage"],
"icon": "build/icons/icon.png"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"shortcutName": "massCode",
"artifactName": "${productName}-${version}-${arch}-sponsored.${ext}"
},
"portable": {
"artifactName": "${productName}-${version}-${arch}-portable-sponsored.${ext}"
},
"protocols": [
{
"name": "massCode",
"schemes": ["masscode"]
}
]
}
================================================
FILE: eslint.config.js
================================================
const antfu = require('@antfu/eslint-config').default
module.exports = antfu({
rules: {
'vue/max-attributes-per-line': [
'error',
{
singleline: 1,
},
],
},
ignores: ['src/renderer/services/api/generated/**/*'],
})
================================================
FILE: nodemon.json
================================================
{
"watch": ["src/main"],
"ext": "ts,json",
"ignore": [
"src/main/i18n/locales/**/*.json"
],
"exec": "tsc -p tsconfig.main.json",
"delay": 1000
}
================================================
FILE: package.json
================================================
{
"name": "masscode",
"version": "4.7.1",
"description": "A free and open source code snippets manager for developers",
"author": {
"name": "Anton Reshetov",
"url": "https://github.com/antonreshetov"
},
"license": "AGPL-3.0",
"repository": "https://github.com/massCodeIO/massCode",
"main": "build/main/index.js",
"engines": {
"pnpm": ">=9.0.0"
},
"scripts": {
"dev": "npm run build:main && concurrently -k \"vite\" \"npm:dev:main\" \"npm:dev:start\"",
"dev:main": "nodemon",
"dev:start": "cross-env NODE_ENV=development electronmon .",
"build": "vite build && npm run build:main && electron-builder",
"build:mac": "vite build && npm run build:main && npm run build:mac:x64 && npm run build:mac:arm64",
"build:mac:x64": "vite build && npm run build:main && electron-builder --mac --x64",
"build:mac:arm64": "vite build && npm run build:main && electron-builder --mac --arm64",
"build:win": "vite build && npm run build:main && electron-builder --win --x64",
"build:linux": "vite build && npm run build:main && electron-builder --linux --x64",
"build:sponsored:mac": "vite build && npm run build:main && npm run build:sponsored:mac:x64 && npm run build:sponsored:mac:arm64",
"build:sponsored:mac:x64": "vite build && npm run build:main && electron-builder --config electron-builder.sponsored.json --mac --x64",
"build:sponsored:mac:arm64": "vite build && npm run build:main && electron-builder --config electron-builder.sponsored.json --mac --arm64",
"build:sponsored:win": "vite build && npm run build:main && electron-builder --config electron-builder.sponsored.json --win --x64",
"build:sponsored:linux": "vite build && npm run build:main && electron-builder --config electron-builder.sponsored.json --linux --x64",
"build:all": "vite build && npm run build:main && npm run build:mac && npm run build:win && npm run build:linux",
"build:main": "npm run copy:locales && tsc -p tsconfig.main.json",
"api:generate": "node scripts/api-generate.js",
"copy:locales": "node scripts/copy-locales.js",
"bench:load-test": "node scripts/bench-load-test.js",
"bench:seed": "node scripts/bench-seed.js",
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"release": "bumpp -c 'build: release v' -t",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"rebuild": "electron-rebuild",
"prepare": "simple-git-hooks && npm run rebuild"
},
"dependencies": {
"@dagrejs/dagre": "^1.1.5",
"@elysiajs/cors": "^1.2.0",
"@elysiajs/node": "^1.4.2",
"@elysiajs/swagger": "^1.3.1",
"@faker-js/faker": "^10.1.0",
"@sinclair/typebox": "^0.34.41",
"@vue-flow/background": "^1.3.2",
"@vue-flow/controls": "^1.1.3",
"@vue-flow/core": "^1.46.5",
"@vue-flow/minimap": "^1.5.4",
"@vueuse/core": "^12.7.0",
"better-sqlite3": "^12.4.1",
"change-case": "^5.4.4",
"chokidar": "^4.0.3",
"chroma-js": "^3.1.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"codemirror": "^5.65.18",
"codemirror-textmate": "^1.1.0",
"color-name-list": "^11.22.0",
"crypto-js": "^4.2.0",
"date-fns": "^4.1.0",
"dom-to-image": "^2.6.0",
"electron-store": "^8.2.0",
"elysia": "^1.4.16",
"fs-extra": "^11.3.0",
"i18next": "^24.2.2",
"i18next-fs-backend": "^2.6.0",
"interactjs": "^1.10.27",
"js-yaml": "^4.1.0",
"ky": "^1.7.5",
"lucide-vue-next": "^0.476.0",
"marked": "^15.0.8",
"markmap-lib": "^0.18.11",
"markmap-view": "^0.18.10",
"mathjs": "^15.1.1",
"mermaid": "^11.6.0",
"nanoid": "^3.3.8",
"nearest-color": "^0.4.4",
"onigasm": "^2.2.5",
"prettier": "^3.5.3",
"reka-ui": "^2.9.0",
"sanitize-html": "^2.15.0",
"slash": "^3.0.0",
"slugify": "^1.6.6",
"tailwind-merge": "^3.0.2",
"toml": "^3.0.0",
"uuid": "^11.1.0",
"vue-sonner": "^1.3.0",
"vue-virtual-scroller": "2.0.0-beta.8",
"vuedraggable": "^4.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^3.16.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@electron/rebuild": "^3.7.1",
"@tailwindcss/postcss": "^4.0.9",
"@tailwindcss/vite": "^4.0.9",
"@types/better-sqlite3": "^7.6.12",
"@types/chroma-js": "^3.1.1",
"@types/codemirror": "^5.60.15",
"@types/crypto-js": "^4.2.2",
"@types/dagre": "^0.7.53",
"@types/dom-to-image": "^2.6.7",
"@types/fs-extra": "^11.0.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.10.8",
"@types/sanitize-html": "^2.15.0",
"@vitejs/plugin-vue": "^5.2.1",
"autoprefixer": "^10.4.20",
"bumpp": "^9.10.2",
"concurrently": "^9.1.2",
"cross-env": "^7.0.3",
"electron": "^34.0.1",
"electron-builder": "^25.1.8",
"electronmon": "^2.0.3",
"eslint": "^9.18.0",
"lint-staged": "^15.4.2",
"nodemon": "^3.1.9",
"prettier-plugin-tailwindcss": "^0.6.11",
"sass": "^1.85.1",
"simple-git-hooks": "^2.11.1",
"tailwindcss": "^4.0.9",
"tw-animate-css": "^1.4.0",
"typescript": "^5.7.3",
"unplugin-auto-import": "^19.1.0",
"unplugin-vue-components": "^28.4.0",
"vite": "^6.1.1",
"vitest": "^4.0.18",
"vue": "^3.5.13",
"vue-router": "^4.5.0",
"vue-tsc": "^3.2.5"
},
"pnpm": {
"onlyBuiltDependencies": [
"better-sqlite3",
"electron"
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged",
"commit-msg": "npx commitlint --edit $1"
},
"lint-staged": {
"*.{js,ts,vue}": [
"prettier --write",
"eslint --fix"
]
},
"electronmon": {
"patterns": [
"!scripts/**/*",
"!src/renderer/**/*",
"!src/main/**/*"
]
},
"volta": {
"node": "20.16.0"
}
}
================================================
FILE: postcss.config.js
================================================
module.exports = {
plugins: {
'@tailwindcss/postcss': {},
},
}
================================================
FILE: scripts/api-generate.js
================================================
const child_process = require('node:child_process')
const { styleText } = require('node:util')
const Store = require('electron-store')
const store = new Store({ name: 'preferences', cwd: 'v2' })
const apiPort = store.get('apiPort', 4321)
const url = `http://localhost:${apiPort}/swagger/json`
async function generateApi() {
try {
console.log(styleText('blue', 'Generating API...'))
child_process.execSync(
`npx swagger-typescript-api@13.0.23 -p ${url} -o ./src/renderer/services/api/generated -n index.ts`,
)
console.log(styleText('green', 'API is successfully generated'))
}
catch (err) {
console.log(styleText('red', 'Error generating API'))
console.log(err)
}
}
generateApi()
================================================
FILE: scripts/bench-load-test.js
================================================
#!/usr/bin/env node
const { performance } = require('node:perf_hooks')
const process = require('node:process')
function getErrorMessage(error) {
if (error instanceof Error) {
const cause = error.cause
if (cause && typeof cause === 'object' && 'message' in cause) {
const causeMessage = String(cause.message || '').trim()
if (causeMessage) {
return `${error.message} (${causeMessage})`
}
}
return error.message
}
return String(error)
}
function parseArgs(argv) {
const options = {
baseUrl: process.env.MASSCODE_API_URL || 'http://localhost:4321',
fragments: 3,
keep: false,
query: '',
snippets: 100,
}
for (let index = 0; index < argv.length; index += 1) {
const argument = argv[index]
if (argument === '--base-url') {
options.baseUrl = String(argv[index + 1] || options.baseUrl)
index += 1
continue
}
if (argument === '--snippets') {
options.snippets = Number(argv[index + 1] || options.snippets)
index += 1
continue
}
if (argument === '--fragments') {
options.fragments = Number(argv[index + 1] || options.fragments)
index += 1
continue
}
if (argument === '--query') {
options.query = String(argv[index + 1] || '')
index += 1
continue
}
if (argument === '--keep') {
options.keep = true
}
}
options.snippets
= Number.isFinite(options.snippets) && options.snippets > 0
? Math.trunc(options.snippets)
: 100
options.fragments
= Number.isFinite(options.fragments) && options.fragments > 0
? Math.trunc(options.fragments)
: 3
return options
}
async function requestJson(baseUrl, pathname, options) {
const requestUrl = new URL(pathname, baseUrl)
let response
try {
response = await fetch(requestUrl, options)
}
catch (error) {
const details = getErrorMessage(error)
throw new Error(
[
`Failed to reach API at ${requestUrl.origin}.`,
'Start massCode first (for example: "pnpm dev") or pass a different URL with --base-url.',
`Details: ${details}`,
].join(' '),
)
}
if (!response.ok) {
const errorBody = await response.text()
throw new Error(
`Request failed (${response.status}) ${pathname}: ${errorBody || response.statusText}`,
)
}
if (response.status === 204) {
return null
}
return response.json()
}
async function measure(name, callback) {
const startedAt = performance.now()
const result = await callback()
return {
duration: performance.now() - startedAt,
name,
result,
}
}
function formatDuration(duration) {
return `${duration.toFixed(2)}ms`
}
function printMetrics(metrics) {
console.log('\nLoad Test Results')
console.log('-----------------')
metrics.forEach((metric) => {
const payload
= metric.result && typeof metric.result === 'object'
? ` ${JSON.stringify(metric.result)}`
: ''
console.log(`${metric.name}: ${formatDuration(metric.duration)}${payload}`)
})
}
async function createSnippet(baseUrl, name) {
const createdSnippet = await requestJson(baseUrl, '/snippets/', {
body: JSON.stringify({ name }),
headers: {
'content-type': 'application/json',
},
method: 'POST',
})
return createdSnippet.id
}
async function createSnippetContent(baseUrl, snippetId, label, value) {
await requestJson(baseUrl, `/snippets/${snippetId}/contents`, {
body: JSON.stringify({
label,
language: 'typescript',
value,
}),
headers: {
'content-type': 'application/json',
},
method: 'POST',
})
}
async function deleteSnippet(baseUrl, snippetId) {
try {
await requestJson(baseUrl, `/snippets/${snippetId}`, {
method: 'DELETE',
})
}
catch {
// ignore cleanup errors
}
}
async function getSnippets(baseUrl, query) {
const searchParams = new URLSearchParams()
Object.entries(query || {}).forEach(([key, value]) => {
if (value === undefined || value === null || value === '') {
return
}
searchParams.set(key, String(value))
})
const pathWithQuery = searchParams.size
? `/snippets/?${searchParams.toString()}`
: '/snippets/'
return requestJson(baseUrl, pathWithQuery, {
method: 'GET',
})
}
async function resetStorageCache(baseUrl) {
await requestJson(baseUrl, '/system/storage-cache/reset', {
method: 'POST',
})
}
async function main() {
const options = parseArgs(process.argv.slice(2))
const baseUrl = options.baseUrl.endsWith('/')
? options.baseUrl
: `${options.baseUrl}/`
const engineResponse = await requestJson(baseUrl, '/system/storage-engine', {
method: 'GET',
})
const runToken = Date.now()
const snippetPrefix = `load-test-${runToken}`
const createdSnippetIds = []
console.log(`API: ${baseUrl}`)
console.log(`Engine: ${engineResponse.engine}`)
console.log(
`Preparing snippets: ${options.snippets} x ${options.fragments} fragments`,
)
for (
let snippetIndex = 1;
snippetIndex <= options.snippets;
snippetIndex += 1
) {
const snippetId = await createSnippet(
baseUrl,
`${snippetPrefix}-snippet-${snippetIndex}`,
)
createdSnippetIds.push(snippetId)
for (
let fragmentIndex = 1;
fragmentIndex <= options.fragments;
fragmentIndex += 1
) {
const contentToken = `${snippetPrefix}-f-${snippetIndex}-${fragmentIndex}`
await createSnippetContent(
baseUrl,
snippetId,
`Fragment ${fragmentIndex}`,
`export const token = '${contentToken}'`,
)
}
}
const defaultSearchQuery
= options.query
|| `${snippetPrefix}-f-${Math.max(1, Math.floor(options.snippets / 2))}-1`
const metrics = []
metrics.push(
await measure('coldStart(getSnippets after cache reset)', async () => {
await resetStorageCache(baseUrl)
const snippets = await getSnippets(baseUrl, {
search: defaultSearchQuery,
})
return {
matches: snippets.length,
}
}),
)
metrics.push(
await measure('hotStart(getSnippets repeated)', async () => {
const snippets = await getSnippets(baseUrl, {
search: defaultSearchQuery,
})
return {
matches: snippets.length,
}
}),
)
metrics.push(
await measure('uncachedSearch(reset + search)', async () => {
await resetStorageCache(baseUrl)
const snippets = await getSnippets(baseUrl, {
search: defaultSearchQuery,
})
return {
matches: snippets.length,
}
}),
)
metrics.push(
await measure('cachedSearch(repeated same query)', async () => {
const snippets = await getSnippets(baseUrl, {
search: defaultSearchQuery,
})
return {
matches: snippets.length,
}
}),
)
printMetrics(metrics)
if (!options.keep) {
for (const snippetId of createdSnippetIds) {
await deleteSnippet(baseUrl, snippetId)
}
}
}
main().catch((error) => {
console.error(getErrorMessage(error))
process.exitCode = 1
})
================================================
FILE: scripts/bench-seed.js
================================================
#!/usr/bin/env node
const { performance } = require('node:perf_hooks')
const process = require('node:process')
const ALLOWED_SNIPPETS = [1000, 5000, 10000]
const ALLOWED_FRAGMENTS = [3, 4]
const DEFAULT_BASE_URL
= process.env.MASSCODE_API_URL || 'http://localhost:4321'
const DEFAULT_CONCURRENCY = 6
const DEFAULT_PREFIX = 'seed'
function getErrorMessage(error) {
if (error instanceof Error) {
const cause = error.cause
if (cause && typeof cause === 'object' && 'message' in cause) {
const causeMessage = String(cause.message || '').trim()
if (causeMessage) {
return `${error.message} (${causeMessage})`
}
}
return error.message
}
return String(error)
}
function parseInteger(value, fallback) {
const parsed = Number(value)
if (!Number.isFinite(parsed)) {
return fallback
}
const integer = Math.trunc(parsed)
return integer > 0 ? integer : fallback
}
function parseArgs(argv) {
const options = {
all: false,
baseUrl: DEFAULT_BASE_URL,
concurrency: DEFAULT_CONCURRENCY,
fragments: 3,
help: false,
prefix: DEFAULT_PREFIX,
profiles: '',
snippets: 1000,
token: Date.now().toString(36),
}
for (let index = 0; index < argv.length; index += 1) {
const argument = argv[index]
if (argument === '--help' || argument === '-h') {
options.help = true
continue
}
if (argument === '--all') {
options.all = true
continue
}
if (argument === '--base-url') {
options.baseUrl = String(argv[index + 1] || options.baseUrl)
index += 1
continue
}
if (argument === '--snippets') {
options.snippets = parseInteger(argv[index + 1], options.snippets)
index += 1
continue
}
if (argument === '--fragments') {
options.fragments = parseInteger(argv[index + 1], options.fragments)
index += 1
continue
}
if (argument === '--concurrency') {
options.concurrency = parseInteger(argv[index + 1], options.concurrency)
index += 1
continue
}
if (argument === '--prefix') {
options.prefix
= String(argv[index + 1] || options.prefix).trim() || options.prefix
index += 1
continue
}
if (argument === '--token') {
options.token
= String(argv[index + 1] || options.token).trim() || options.token
index += 1
continue
}
if (argument === '--profiles') {
options.profiles = String(argv[index + 1] || '')
index += 1
continue
}
}
options.concurrency = Math.max(1, options.concurrency)
return options
}
function printHelp() {
console.log(`
Fake snippets seed for benchmarking.
Usage:
node scripts/bench-seed.js [options]
Options:
--snippets <count> Allowed: ${ALLOWED_SNIPPETS.join(', ')} (default: 1000)
--fragments <count> Allowed: ${ALLOWED_FRAGMENTS.join(', ')} (default: 3)
--profiles <list> Comma-separated profiles: "1000x3,5000x4"
--all Generate all profiles: 1000/5000/10000 x 3/4
--concurrency <count> Parallel workers (default: ${DEFAULT_CONCURRENCY})
--base-url <url> API base URL (default: ${DEFAULT_BASE_URL})
--prefix <value> Name prefix (default: ${DEFAULT_PREFIX})
--token <value> Dataset token (default: generated from timestamp)
--help Show this help
`)
}
function validateProfile(profile) {
if (!ALLOWED_SNIPPETS.includes(profile.snippets)) {
throw new Error(
`Unsupported snippets count "${profile.snippets}". Allowed values: ${ALLOWED_SNIPPETS.join(', ')}`,
)
}
if (!ALLOWED_FRAGMENTS.includes(profile.fragments)) {
throw new Error(
`Unsupported fragments count "${profile.fragments}". Allowed values: ${ALLOWED_FRAGMENTS.join(', ')}`,
)
}
}
function parseProfile(value) {
const match = value.trim().match(/^(\d+)x(\d+)$/i)
if (!match) {
throw new Error(
`Invalid profile "${value}". Expected format: <snippets>x<fragments>, for example 1000x3`,
)
}
const profile = {
snippets: Number(match[1]),
fragments: Number(match[2]),
}
validateProfile(profile)
return profile
}
function resolveProfiles(options) {
if (options.all) {
return ALLOWED_SNIPPETS.flatMap(snippets =>
ALLOWED_FRAGMENTS.map(fragments => ({ fragments, snippets })),
)
}
if (options.profiles.trim()) {
const uniqueProfiles = new Map()
options.profiles
.split(',')
.map(item => item.trim())
.filter(Boolean)
.forEach((item) => {
const profile = parseProfile(item)
uniqueProfiles.set(`${profile.snippets}x${profile.fragments}`, profile)
})
if (uniqueProfiles.size === 0) {
throw new Error('No valid profiles provided')
}
return [...uniqueProfiles.values()]
}
const profile = {
fragments: options.fragments,
snippets: options.snippets,
}
validateProfile(profile)
return [profile]
}
function normalizeBaseUrl(value) {
return value.endsWith('/') ? value : `${value}/`
}
async function requestJson(baseUrl, pathname, options) {
const requestUrl = new URL(pathname, baseUrl)
let response
try {
response = await fetch(requestUrl, options)
}
catch (error) {
throw new Error(
`Failed to reach API at ${requestUrl.origin}. Start massCode first (for example: "pnpm dev"). Details: ${getErrorMessage(error)}`,
)
}
if (!response.ok) {
const errorBody = await response.text()
throw new Error(
`Request failed (${response.status}) ${pathname}: ${errorBody || response.statusText}`,
)
}
if (response.status === 204) {
return null
}
return response.json()
}
async function createSnippet(baseUrl, name) {
const createdSnippet = await requestJson(baseUrl, '/snippets/', {
body: JSON.stringify({ name }),
headers: {
'content-type': 'application/json',
},
method: 'POST',
})
return createdSnippet.id
}
async function createSnippetContent(baseUrl, snippetId, label, value) {
await requestJson(baseUrl, `/snippets/${snippetId}/contents`, {
body: JSON.stringify({
label,
language: 'typescript',
value,
}),
headers: {
'content-type': 'application/json',
},
method: 'POST',
})
}
function formatDuration(durationMs) {
if (durationMs < 1_000) {
return `${durationMs.toFixed(0)}ms`
}
const seconds = durationMs / 1_000
if (seconds < 60) {
return `${seconds.toFixed(2)}s`
}
return `${(seconds / 60).toFixed(2)}m`
}
function buildSnippetName(options, profile, snippetIndex) {
return [
options.prefix,
options.token,
`${profile.snippets}x${profile.fragments}`,
'snippet',
String(snippetIndex).padStart(5, '0'),
].join('-')
}
function buildFragmentBody(options, profile, snippetIndex, fragmentIndex) {
const token = [
options.prefix,
options.token,
profile.snippets,
profile.fragments,
snippetIndex,
fragmentIndex,
].join('-')
return [
'// Generated by bench-seed.js',
`export const seedToken = '${token}'`,
`export const profile = '${profile.snippets}x${profile.fragments}'`,
`export const snippetIndex = ${snippetIndex}`,
`export const fragmentIndex = ${fragmentIndex}`,
].join('\n')
}
async function runProfile(baseUrl, options, profile) {
const total = profile.snippets
const workerCount = Math.min(total, options.concurrency)
const profileLabel = `${profile.snippets}x${profile.fragments}`
const startedAt = performance.now()
let completed = 0
let nextSnippetIndex = 1
let workerError = null
console.log(`\n[${profileLabel}] Start seeding`)
console.log(`[${profileLabel}] Snippets: ${profile.snippets}`)
console.log(`[${profileLabel}] Fragments per snippet: ${profile.fragments}`)
console.log(`[${profileLabel}] Workers: ${workerCount}`)
console.log(`[${profileLabel}] Prefix: ${options.prefix}`)
console.log(`[${profileLabel}] Token: ${options.token}`)
const progressTimer = setInterval(() => {
const percent = ((completed / total) * 100).toFixed(1)
console.log(
`[${profileLabel}] Progress: ${completed}/${total} (${percent}%)`,
)
}, 5_000)
async function worker() {
while (!workerError) {
const snippetIndex = nextSnippetIndex
nextSnippetIndex += 1
if (snippetIndex > total) {
return
}
const snippetName = buildSnippetName(options, profile, snippetIndex)
try {
const snippetId = await createSnippet(baseUrl, snippetName)
for (
let fragmentIndex = 1;
fragmentIndex <= profile.fragments;
fragmentIndex += 1
) {
const fragmentBody = buildFragmentBody(
options,
profile,
snippetIndex,
fragmentIndex,
)
await createSnippetContent(
baseUrl,
snippetId,
`Fragment ${fragmentIndex}`,
fragmentBody,
)
}
}
catch (error) {
workerError = new Error(
`Profile ${profileLabel}: failed at snippet #${snippetIndex} ("${snippetName}"). ${getErrorMessage(error)}`,
)
}
finally {
completed += 1
}
}
}
await Promise.all(Array.from({ length: workerCount }, () => worker()))
clearInterval(progressTimer)
if (workerError) {
throw workerError
}
const durationMs = performance.now() - startedAt
console.log(`[${profileLabel}] Completed in ${formatDuration(durationMs)}`)
return {
durationMs,
fragments: profile.fragments,
snippets: profile.snippets,
}
}
async function main() {
const options = parseArgs(process.argv.slice(2))
if (options.help) {
printHelp()
return
}
const profiles = resolveProfiles(options)
const baseUrl = normalizeBaseUrl(options.baseUrl)
const engineResponse = await requestJson(baseUrl, '/system/storage-engine', {
method: 'GET',
})
console.log(`API: ${baseUrl}`)
console.log(`Engine: ${engineResponse.engine}`)
console.log(
`Profiles: ${profiles.map(p => `${p.snippets}x${p.fragments}`).join(', ')}`,
)
const summary = []
for (const profile of profiles) {
summary.push(await runProfile(baseUrl, options, profile))
}
console.log('\nSeeding summary')
console.log('--------------')
summary.forEach((result) => {
console.log(
`${result.snippets}x${result.fragments}: ${formatDuration(result.durationMs)}`,
)
})
}
main().catch((error) => {
console.error(getErrorMessage(error))
process.exitCode = 1
})
================================================
FILE: scripts/copy-locales.js
================================================
const fs = require('node:fs')
const path = require('node:path')
const { styleText } = require('node:util')
const sourceDir = path.join(__dirname, '../src/main/i18n/locales')
const targetDir = path.join(__dirname, '../build/main/i18n/locales')
function copyDirRecursive(sourceDir, targetDir) {
if (!fs.existsSync(targetDir)) {
fs.mkdirSync(targetDir, { recursive: true })
}
const files = fs.readdirSync(sourceDir)
for (const file of files) {
const sourcePath = path.join(sourceDir, file)
const targetPath = path.join(targetDir, file)
const stat = fs.statSync(sourcePath)
if (stat.isDirectory()) {
copyDirRecursive(sourcePath, targetPath)
}
else {
fs.copyFileSync(sourcePath, targetPath)
}
}
}
console.log(styleText('blue', 'Localization files copying...'))
copyDirRecursive(sourceDir, targetDir)
console.log(styleText('green', 'Localization files copying completed'))
================================================
FILE: src/main/api/dto/common/query.ts
================================================
import { t } from 'elysia'
const Order = {
ASC: 'ASC',
DESC: 'DESC',
} as const
export const commonQuery = t.Optional(
t.Object({
search: t.Optional(t.String()),
sort: t.Optional(t.String()),
order: t.Optional(t.Enum(Order)),
}),
)
================================================
FILE: src/main/api/dto/common/response.ts
================================================
import { t } from 'elysia'
export const commonAddResponse = t.Object({
id: t.Union([t.Number(), t.BigInt()]),
})
================================================
FILE: src/main/api/dto/folders.ts
================================================
import Elysia, { t } from 'elysia'
const foldersAdd = t.Object({
name: t.String(),
parentId: t.Optional(t.Union([t.Number(), t.Null()])),
})
const foldersUpdate = t.Object({
name: t.Optional(t.String()),
icon: t.Optional(t.Union([t.String(), t.Null()])),
defaultLanguage: t.Optional(t.String()),
parentId: t.Optional(t.Union([t.Number(), t.Null()])),
isOpen: t.Optional(t.Number({ minimum: 0, maximum: 1 })),
orderIndex: t.Optional(t.Number()),
})
const foldersItem = t.Object({
id: t.Number(),
name: t.String(),
createdAt: t.Number(),
updatedAt: t.Number(),
icon: t.Union([t.String(), t.Null()]),
parentId: t.Union([t.Number(), t.Null()]),
isOpen: t.Number(),
defaultLanguage: t.String(),
orderIndex: t.Number(),
})
const foldersItemWithChildren = t.Recursive(This =>
t.Object({
...foldersItem.properties,
children: t.Array(This),
}),
)
const foldersResponse = t.Array(foldersItem)
const foldersTreeResponse = t.Array(foldersItemWithChildren)
export const foldersDTO = new Elysia().model({
foldersAdd,
foldersResponse,
foldersUpdate,
foldersTreeResponse,
})
export type FoldersAdd = typeof foldersAdd.static
export type FoldersResponse = typeof foldersResponse.static
export type FoldersTree = typeof foldersTreeResponse.static
export type FoldersItem = typeof foldersItem.static
================================================
FILE: src/main/api/dto/snippet-contents.ts
================================================
import Elysia, { t } from 'elysia'
const snippetContentsAdd = t.Object({
snippetId: t.Number(),
label: t.Union([t.String(), t.Null()]),
value: t.Union([t.String(), t.Null()]),
language: t.String(),
})
export const snippetContentsDTO = new Elysia().model({
snippetContentsAdd,
})
export type SnippetContentsAdd = typeof snippetContentsAdd.static
================================================
FILE: src/main/api/dto/snippets.ts
================================================
import Elysia, { t } from 'elysia'
import { commonQuery } from './common/query'
const snippetsAdd = t.Object({
name: t.String(),
folderId: t.Optional(t.Union([t.Number(), t.Null()])),
})
const snippetsUpdate = t.Object({
name: t.Optional(t.String()),
folderId: t.Optional(t.Union([t.Number(), t.Null()])),
description: t.Optional(t.Union([t.String(), t.Null()])),
isDeleted: t.Optional(t.Number({ minimum: 0, maximum: 1 })),
isFavorites: t.Optional(t.Number({ minimum: 0, maximum: 1 })),
})
const snippetContentsAdd = t.Object({
label: t.String(),
value: t.Union([t.String(), t.Null()]),
language: t.String(), // TODO: enum
})
const snippetContentsUpdate = t.Object({
label: t.Optional(t.String()),
value: t.Optional(t.Union([t.String(), t.Null()])),
language: t.Optional(t.String()), // TODO: enum
})
const snippetItem = t.Object({
id: t.Number(),
name: t.String(),
description: t.Union([t.String(), t.Null()]),
tags: t.Array(
t.Object({
id: t.Number(),
name: t.String(),
}),
),
folder: t.Nullable(
t.Object({
id: t.Number(),
name: t.String(),
}),
),
contents: t.Array(
t.Object({
id: t.Number(),
label: t.String(),
value: t.Union([t.String(), t.Null()]),
language: t.String(),
}),
),
isFavorites: t.Number(),
isDeleted: t.Number(),
createdAt: t.Number(),
updatedAt: t.Number(),
})
const snippetsResponse = t.Array(snippetItem)
const snippetsCountsResponse = t.Object({
total: t.Number(),
trash: t.Number(),
})
export const snippetsDTO = new Elysia().model({
snippetContentsAdd,
snippetContentsUpdate,
snippetsAdd,
snippetsUpdate,
snippetsCountsResponse,
snippetsQuery: t.Object({
...commonQuery.properties,
folderId: t.Optional(t.Number()),
tagId: t.Optional(t.Number()),
isFavorites: t.Optional(t.Number({ minimum: 0, maximum: 1 })),
isDeleted: t.Optional(t.Number({ minimum: 0, maximum: 1 })),
isInbox: t.Optional(t.Number({ minimum: 0, maximum: 1 })),
}),
snippetsResponse,
})
export type SnippetsAdd = typeof snippetsAdd.static
export type SnippetsResponse = typeof snippetsResponse.static
export type SnippetsCountsResponse = typeof snippetsCountsResponse.static
================================================
FILE: src/main/api/dto/tags.ts
================================================
import Elysia, { t } from 'elysia'
const tagsAdd = t.Object({
name: t.String(),
})
const tagsItem = t.Object({
id: t.Number(),
name: t.String(),
})
export const tagsResponse = t.Array(tagsItem)
export const tagsAddResponse = t.Object({
id: t.Number(),
})
export const tagsDTO = new Elysia().model({
tagsAdd,
tagsResponse,
tagsAddResponse,
})
export type TagsAdd = typeof tagsAdd.static
export type TagsResponse = typeof tagsResponse.static
================================================
FILE: src/main/api/index.ts
================================================
import { cors } from '@elysiajs/cors'
import { swagger } from '@elysiajs/swagger'
import { app as electronApp } from 'electron'
import { Elysia } from 'elysia'
import { store } from '../store'
import { importEsm } from '../utils'
import folders from './routes/folders'
import snippets from './routes/snippets'
import system from './routes/system'
import tags from './routes/tags'
export async function initApi() {
// поскольку @elysiajs/node использует crossws, который работает только в ESM среде,
// то делаем хак с динамическим импортом
const { node } = await importEsm('@elysiajs/node')
const app = new Elysia({ adapter: node() })
const port = store.preferences.get('apiPort')
app
.use(cors({ origin: '*' }))
.use(
swagger({
documentation: {
info: {
title: 'massCode API',
version: electronApp.getVersion(),
},
},
}),
)
.use(snippets)
.use(folders)
.use(system)
.use(tags)
.listen(port)
// eslint-disable-next-line no-console
console.log(`\nAPI started on port ${port}\n`)
}
================================================
FILE: src/main/api/routes/folders.ts
================================================
import type { FoldersResponse, FoldersTree } from '../dto/folders'
import { Elysia } from 'elysia'
import { useStorage } from '../../storage'
import { commonAddResponse } from '../dto/common/response'
import { foldersDTO } from '../dto/folders'
const app = new Elysia({ prefix: '/folders' })
function parseStorageError(
error: unknown,
): { code: string, message: string } | null {
if (!(error instanceof Error)) {
return null
}
const separatorIndex = error.message.indexOf(':')
if (separatorIndex <= 0) {
return null
}
return {
code: error.message.slice(0, separatorIndex),
message: error.message.slice(separatorIndex + 1).trim(),
}
}
function mapStorageError(status: unknown, error: unknown): never {
const setStatus = status as (
code: number,
payload: { message: string },
) => never
const parsedError = parseStorageError(error)
if (!parsedError) {
return setStatus(500, { message: 'Internal storage error' })
}
if (parsedError.code === 'NAME_CONFLICT') {
return setStatus(409, { message: parsedError.message })
}
if (parsedError.code === 'FOLDER_NOT_FOUND') {
return setStatus(404, { message: parsedError.message })
}
if (
parsedError.code === 'INVALID_NAME'
|| parsedError.code === 'RESERVED_NAME'
) {
return setStatus(400, { message: parsedError.message })
}
return setStatus(500, {
message: parsedError.message || 'Internal storage error',
})
}
app
.use(foldersDTO)
// Получение списка папок
.get(
'/',
() => {
const storage = useStorage()
const result = storage.folders.getFolders()
return result as FoldersResponse
},
{
response: 'foldersResponse',
detail: {
tags: ['Folders'],
},
},
)
// Получение папок в виде древовидной структуры
.get(
'/tree',
(): any => {
const storage = useStorage()
return storage.folders.getFoldersTree() as FoldersTree
},
{
response: 'foldersTreeResponse',
detail: {
tags: ['Folders'],
},
},
)
// Добавление папки
.post(
'/',
({ body, status }) => {
const storage = useStorage()
try {
const { id } = storage.folders.createFolder(body)
return { id }
}
catch (error) {
return mapStorageError(status, error)
}
},
{
body: 'foldersAdd',
response: commonAddResponse,
detail: {
tags: ['Folders'],
},
},
)
// Обновление папки
.patch(
'/:id',
({ params, body, status }) => {
const storage = useStorage()
try {
const { invalidInput, notFound } = storage.folders.updateFolder(
Number(params.id),
body,
)
if (invalidInput) {
return status(400, { message: 'Need at least one field to update' })
}
if (notFound) {
return status(404, { message: 'Folder not found' })
}
return { message: 'Folder updated' }
}
catch (error) {
return mapStorageError(status, error)
}
},
{
body: 'foldersUpdate',
detail: {
tags: ['Folders'],
},
},
)
// Удаление папки
.delete(
'/:id',
({ params, status }) => {
const storage = useStorage()
try {
const { deleted } = storage.folders.deleteFolder(Number(params.id))
if (!deleted) {
return status(404, { message: 'Folder not found' })
}
return { message: 'Folder deleted' }
}
catch (error) {
return mapStorageError(status, error)
}
},
{
detail: {
tags: ['Folders'],
},
},
)
export default app
================================================
FILE: src/main/api/routes/snippets.ts
================================================
import type { SnippetsCountsResponse, SnippetsResponse } from '../dto/snippets'
import Elysia from 'elysia'
import { useStorage } from '../../storage'
import { commonAddResponse } from '../dto/common/response'
import { snippetsDTO } from '../dto/snippets'
const app = new Elysia({ prefix: '/snippets' })
function parseStorageError(
error: unknown,
): { code: string, message: string } | null {
if (!(error instanceof Error)) {
return null
}
const separatorIndex = error.message.indexOf(':')
if (separatorIndex <= 0) {
return null
}
return {
code: error.message.slice(0, separatorIndex),
message: error.message.slice(separatorIndex + 1).trim(),
}
}
function mapStorageError(status: unknown, error: unknown): never {
const setStatus = status as (
code: number,
payload: { message: string },
) => never
const parsedError = parseStorageError(error)
if (!parsedError) {
return setStatus(500, { message: 'Internal storage error' })
}
if (parsedError.code === 'NAME_CONFLICT') {
return setStatus(409, { message: parsedError.message })
}
if (
parsedError.code === 'FOLDER_NOT_FOUND'
|| parsedError.code === 'SNIPPET_NOT_FOUND'
) {
return setStatus(404, { message: parsedError.message })
}
if (
parsedError.code === 'INVALID_NAME'
|| parsedError.code === 'RESERVED_NAME'
) {
return setStatus(400, { message: parsedError.message })
}
return setStatus(500, {
message: parsedError.message || 'Internal storage error',
})
}
app
.use(snippetsDTO)
// Получение списка сниппетов c возможностью фильтрации
.get(
'/',
({ query }) => {
const storage = useStorage()
const result = storage.snippets.getSnippets(query)
return result as SnippetsResponse
},
{
query: 'snippetsQuery',
response: 'snippetsResponse',
detail: {
tags: ['Snippets'],
},
},
)
// Получение кол-ва сниппетов
.get(
'/counts',
() => {
const storage = useStorage()
return storage.snippets.getSnippetsCounts() as SnippetsCountsResponse
},
{
response: 'snippetsCountsResponse',
detail: {
tags: ['Snippets'],
},
},
)
// Создание сниппета
.post(
'/',
({ body, status }) => {
const storage = useStorage()
try {
const { id } = storage.snippets.createSnippet(body)
return { id }
}
catch (error) {
return mapStorageError(status, error)
}
},
{
body: 'snippetsAdd',
response: commonAddResponse,
detail: {
tags: ['Snippets'],
},
},
)
// Добавление содержимого сниппета
.post(
'/:id/contents',
({ params, body, status }) => {
const storage = useStorage()
try {
const { id } = storage.snippets.createSnippetContent(
Number(params.id),
body,
)
return { id }
}
catch (error) {
return mapStorageError(status, error)
}
},
{
body: 'snippetContentsAdd',
response: commonAddResponse,
detail: {
tags: ['Snippets'],
},
},
)
// Обновление сниппета
.patch(
'/:id',
({ params, body, status }) => {
const storage = useStorage()
try {
const { invalidInput, notFound } = storage.snippets.updateSnippet(
Number(params.id),
body,
)
if (invalidInput) {
return status(400, { message: 'Need at least one field to update' })
}
if (notFound) {
return status(404, { message: 'Snippet not found' })
}
return { message: 'Snippet updated' }
}
catch (error) {
return mapStorageError(status, error)
}
},
{
body: 'snippetsUpdate',
detail: {
tags: ['Snippets'],
},
},
)
// Обновление содержимого сниппета
.patch(
'/:id/contents/:contentId',
({ params, body, status }) => {
const storage = useStorage()
const { invalidInput, notFound, parentNotFound }
= storage.snippets.updateSnippetContent(
Number(params.id),
Number(params.contentId),
body,
)
if (invalidInput) {
return status(400, { message: 'Need at least one field to update' })
}
if (notFound) {
return status(404, { message: 'Snippet content not found' })
}
if (parentNotFound) {
return status(404, { message: 'Snippet not found' })
}
return { message: 'Snippet content updated' }
},
{
body: 'snippetContentsUpdate',
detail: {
tags: ['Snippets'],
},
},
)
// Добавление тега к сниппету
.post(
'/:id/tags/:tagId',
({ params, status }) => {
const storage = useStorage()
const { snippetFound, tagFound } = storage.snippets.addTagToSnippet(
Number(params.id),
Number(params.tagId),
)
if (!snippetFound) {
return status(404, { message: 'Snippet not found' })
}
if (!tagFound) {
return status(404, { message: 'Tag not found' })
}
return { message: 'Tag added to snippet' }
},
{
detail: {
tags: ['Snippets'],
},
},
)
// Удаление тега из сниппета
.delete(
'/:id/tags/:tagId',
({ params, status }) => {
const storage = useStorage()
const { snippetFound, tagFound, relationFound }
= storage.snippets.deleteTagFromSnippet(
Number(params.id),
Number(params.tagId),
)
if (!snippetFound) {
return status(404, { message: 'Snippet not found' })
}
if (!tagFound) {
return status(404, { message: 'Tag not found' })
}
if (!relationFound) {
return status(404, {
message: 'Tag is not associated with this snippet',
})
}
return { message: 'Tag removed from snippet' }
},
{
detail: {
tags: ['Snippets'],
},
},
)
// Удаление сниппета
.delete(
'/:id',
({ params, status }) => {
const storage = useStorage()
const { deleted } = storage.snippets.deleteSnippet(Number(params.id))
if (!deleted) {
return status(404, { message: 'Snippet not found' })
}
return { message: 'Snippet deleted' }
},
{
detail: {
tags: ['Snippets'],
},
},
)
// Удаление всех сниппетов в корзине
.delete(
'/trash',
({ status }) => {
const storage = useStorage()
const { deletedCount } = storage.snippets.emptyTrash()
if (!deletedCount) {
return status(404, { message: 'No snippets in trash' })
}
return {
message: `Successfully emptied trash: ${deletedCount} snippet(s) deleted`,
}
},
{
detail: {
tags: ['Snippets'],
},
},
)
// Удаление содержимого сниппета
.delete(
'/:id/contents/:contentId',
({ params, status }) => {
const storage = useStorage()
const { deleted } = storage.snippets.deleteSnippetContent(
Number(params.contentId),
)
if (!deleted) {
return status(404, { message: 'Snippet content not found' })
}
return { message: 'Snippet content deleted' }
},
{
detail: {
tags: ['Snippets'],
},
},
)
export default app
================================================
FILE: src/main/api/routes/system.ts
================================================
import { Elysia } from 'elysia'
import { resetRuntimeCache } from '../../storage/providers/markdown'
import { getVaultPath } from '../../storage/providers/markdown/runtime'
import { store } from '../../store'
const app = new Elysia({ prefix: '/system' })
app.get(
'/storage-engine',
() => {
const engine = store.preferences.get('storage.engine')
return { engine }
},
{
detail: {
tags: ['System'],
},
},
)
app.get(
'/storage-vault-path',
() => {
return {
vaultPath: getVaultPath(),
}
},
{
detail: {
tags: ['System'],
},
},
)
app.post(
'/storage-cache/reset',
() => {
if (store.preferences.get('storage.engine') === 'markdown') {
resetRuntimeCache()
}
return {
reset: true,
}
},
{
detail: {
tags: ['System'],
},
},
)
export default app
================================================
FILE: src/main/api/routes/tags.ts
================================================
import type { TagsResponse } from '../dto/tags'
import Elysia from 'elysia'
import { useStorage } from '../../storage'
import { tagsDTO } from '../dto/tags'
const app = new Elysia({ prefix: '/tags' })
app
.use(tagsDTO)
// Получение списка тегов
.get(
'/',
() => {
const storage = useStorage()
const result = storage.tags.getTags()
return result as TagsResponse
},
{
response: 'tagsResponse',
detail: {
tags: ['Tags'],
},
},
)
// Добавление тега
.post(
'/',
({ body }) => {
const storage = useStorage()
const { id } = storage.tags.createTag(body.name)
return { id }
},
{
body: 'tagsAdd',
response: 'tagsAddResponse',
detail: {
tags: ['Tags'],
},
},
)
// Удаление тега и удаление его из всех сниппетов
.delete(
'/:id',
({ params, status }) => {
const storage = useStorage()
const { deleted } = storage.tags.deleteTag(Number(params.id))
if (!deleted) {
return status(404, { message: 'Tag not found' })
}
return { message: 'Tag deleted' }
},
{
detail: {
tags: ['Tags'],
},
},
)
export default app
================================================
FILE: src/main/currencyRates.ts
================================================
import { store } from './store'
const CACHE_TTL = 1000 * 60 * 60
interface CurrencyRatesApiResponse {
result?: string
rates?: Record<string, number>
time_last_update_unix?: number
}
export interface CurrencyRatesPayload {
rates: Record<string, number>
fetchedAt: number
source: 'live' | 'cache' | 'unavailable'
}
function normalizeRates(rates: Record<string, number>) {
const normalized: Record<string, number> = { USD: 1 }
Object.entries(rates).forEach(([code, value]) => {
if (typeof value === 'number' && Number.isFinite(value)) {
normalized[code] = value
}
})
normalized.USD = 1
return normalized
}
export async function getCurrencyRates(): Promise<CurrencyRatesPayload> {
const cached = store.currencyRates.get('cache')
if (cached && Date.now() - cached.fetchedAt < CACHE_TTL) {
return {
...cached,
source: 'cache',
}
}
try {
const response = await fetch('https://open.er-api.com/v6/latest/USD')
if (!response.ok) {
throw new Error(
`Currency rates request failed with status ${response.status}`,
)
}
const data = (await response.json()) as CurrencyRatesApiResponse
if (data.result !== 'success' || !data.rates) {
throw new Error('Currency rates response is invalid')
}
const payload = {
rates: normalizeRates(data.rates),
fetchedAt: data.time_last_update_unix
? data.time_last_update_unix * 1000
: Date.now(),
}
store.currencyRates.set('cache', payload)
return {
...payload,
source: 'live',
}
}
catch {
if (cached) {
return {
...cached,
source: 'cache',
}
}
return {
rates: {},
fetchedAt: 0,
source: 'unavailable',
}
}
}
================================================
FILE: src/main/db/index.ts
================================================
/* eslint-disable node/prefer-global/process */
import type { Backup } from './types'
import path from 'node:path'
import Database from 'better-sqlite3'
import { format } from 'date-fns'
import fs from 'fs-extra'
import { store } from '../store'
import { log } from '../utils'
const DB_NAME = 'massCode.db'
const isDev = process.env.NODE_ENV === 'development'
let db: Database.Database | null = null
let backupTimer: NodeJS.Timeout | null = null
function isSqliteStorageEngine(): boolean {
return store.preferences.get('storage.engine') === 'sqlite'
}
function isSqliteFile(dbPath: string): boolean {
try {
if (!fs.existsSync(dbPath))
return false
const buffer = fs.readFileSync(dbPath).subarray(0, 16)
return buffer.toString('ascii') === 'SQLite format 3\x00'
}
catch {
return false
}
}
function tableExists(db: Database.Database, table: string): boolean {
const row = db
.prepare(
`
SELECT name
FROM sqlite_master
WHERE type='table' AND name=?
`,
)
.get(table)
return !!row
}
export function useDB() {
if (db)
return db
const dbPath = `${store.preferences.get('storagePath')}/${DB_NAME}`
const dbDir = path.dirname(dbPath)
if (!fs.existsSync(dbDir)) {
fs.mkdirSync(dbDir, { recursive: true })
}
if (fs.existsSync(dbPath) && !isSqliteFile(dbPath)) {
const backupPath = `${dbPath}.old`
try {
fs.moveSync(dbPath, backupPath)
}
catch {}
}
try {
db = new Database(dbPath, {
// eslint-disable-next-line no-console
verbose: isDev ? console.log : undefined,
})
db.pragma('journal_mode = WAL')
db.pragma('foreign_keys = ON')
// Поскольку из коробки в SQLite регистронезависимый поиск возможен только для ASCII,
// то добавляем самостоятельно функцию для сравнения строк без учета регистра
db.function('unicode_lower', (str: unknown) => {
if (typeof str !== 'string')
return str
return str.toLowerCase()
})
// Таблица для папок
db.exec(`
CREATE TABLE IF NOT EXISTS folders (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
defaultLanguage TEXT NOT NULL,
parentId INTEGER,
isOpen INTEGER NOT NULL,
orderIndex INTEGER NOT NULL DEFAULT 0,
icon TEXT,
createdAt INTEGER NOT NULL,
updatedAt INTEGER NOT NULL,
FOREIGN KEY(parentId) REFERENCES folders(id)
)
`)
// Таблица для сниппетов
db.exec(`
CREATE TABLE IF NOT EXISTS snippets (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
description TEXT,
folderId INTEGER,
isDeleted INTEGER NOT NULL,
isFavorites INTEGER NOT NULL,
createdAt INTEGER NOT NULL,
updatedAt INTEGER NOT NULL,
FOREIGN KEY(folderId) REFERENCES folders(id)
)
`)
// Таблица для содержимого (фрагментов) сниппетов
db.exec(`
CREATE TABLE IF NOT EXISTS snippet_contents (
id INTEGER PRIMARY KEY AUTOINCREMENT,
snippetId INTEGER NOT NULL,
label TEXT,
value TEXT,
language TEXT,
FOREIGN KEY(snippetId) REFERENCES snippets(id)
)
`)
// Таблица для тегов
db.exec(`
CREATE TABLE IF NOT EXISTS tags (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL UNIQUE,
createdAt INTEGER NOT NULL,
updatedAt INTEGER NOT NULL
)
`)
// Таблица для связи сниппетов с тегами (многие ко многим)
db.exec(`
CREATE TABLE IF NOT EXISTS snippet_tags (
snippetId INTEGER NOT NULL,
tagId INTEGER NOT NULL,
PRIMARY KEY(snippetId, tagId),
FOREIGN KEY(snippetId) REFERENCES snippets(id),
FOREIGN KEY(tagId) REFERENCES tags(id)
)
`)
return db
}
catch (error) {
log('Database initialization failed', error)
throw error
}
}
export function reloadDB() {
try {
// Закрываем текущую базу данных, если она открыта
if (db) {
db.close()
db = null
// eslint-disable-next-line no-console
console.log('Current database has been closed')
}
// Определяем путь к новой базе данных
const dbPath = `${store.preferences.get('storagePath')}/${DB_NAME}`
// Создаем новое соединение с базой данных
db = new Database(dbPath, {
// eslint-disable-next-line no-console
verbose: isDev ? console.log : undefined,
})
db.pragma('journal_mode = WAL')
db.pragma('foreign_keys = ON')
// eslint-disable-next-line no-console
console.log(`Database successfully reloaded: ${dbPath}`)
}
catch (error) {
log('Error while reloading the database', error)
throw error
}
}
export function clearDB() {
try {
const db = useDB()
const stmt = db.transaction(() => {
const tables = [
// Таблицы со внешними ключами должны быть первыми
'snippet_tags',
'snippet_contents',
'snippets',
// Остальные таблицы можно удалить в любом порядке
'tags',
'folders',
]
for (const table of tables) {
if (tableExists(db, table)) {
db.prepare(`DELETE FROM ${table}`).run()
}
}
// Сброс автоинкремента — тоже только если таблица есть
if (tableExists(db, 'sqlite_sequence')) {
db.prepare('DELETE FROM sqlite_sequence').run()
}
})
stmt()
}
catch (error) {
log('Error while clearing the database', error)
throw error
}
}
export async function moveDB(path: string) {
try {
const currentPath = `${store.preferences.get('storagePath')}/${DB_NAME}`
const newPath = `${path}/${DB_NAME}`
const isExists = await fs.exists(newPath)
if (isExists) {
throw new Error(`Database already exists at the new path: ${newPath}`)
}
if (db) {
db.close()
db = null
}
await fs.move(currentPath, newPath, { overwrite: true })
store.preferences.set('storagePath', path)
reloadDB()
}
catch (error) {
log('Error while moving the database', error)
throw error
}
}
export async function createBackup(manual = false) {
try {
if (!isSqliteStorageEngine()) {
return null
}
const db = useDB()
const backupSettings = store.preferences.get('backup')
await fs.ensureDir(backupSettings.path)
const date = format(Date.now(), 'yyyy-MM-dd_HH-mm-ss-SSS')
const backupFileName = manual
? `massCode-manual-backup-${date}.db`
: `massCode-backup-${date}.db`
const backupFilePath = path.join(backupSettings.path, backupFileName)
const stmt = db.prepare(`VACUUM INTO ?`)
stmt.run(backupFilePath)
store.preferences.set('backup.lastBackupTime', Date.now())
await cleanupOldBackups()
return backupFilePath
}
catch (error) {
log('Error creating database backup', error)
throw error
}
}
async function cleanupOldBackups() {
try {
const backupSettings = store.preferences.get('backup')
const files = await fs.readdir(backupSettings.path)
const backupFiles = files
.filter(
file => file.startsWith('massCode-backup-') && file.endsWith('.db'),
)
.map(file => ({
name: file,
path: path.join(backupSettings.path, file),
stat: fs.statSync(path.join(backupSettings.path, file)),
}))
.sort((a, b) => b.stat.mtime.getTime() - a.stat.mtime.getTime())
if (backupFiles.length > backupSettings.maxBackups) {
const filesToDelete = backupFiles.slice(backupSettings.maxBackups)
for (const file of filesToDelete) {
await fs.remove(file.path)
}
}
}
catch (error) {
console.error('Error cleaning up old backups:', error)
}
}
export async function deleteBackup(backupPath: string) {
await fs.remove(backupPath)
}
function shouldCreateBackup() {
if (!isSqliteStorageEngine()) {
return false
}
const backupSettings = store.preferences.get('backup')
if (!backupSettings.enabled) {
return false
}
const lastBackupTime = backupSettings.lastBackupTime
if (!lastBackupTime) {
return true // Если бекап никогда не создавался
}
const now = Date.now()
const intervalMs = backupSettings.interval * 60 * 60 * 1000 // Конвертируем часы в миллисекунды
return now - lastBackupTime >= intervalMs
}
export async function startAutoBackup() {
try {
if (backupTimer) {
clearInterval(backupTimer)
backupTimer = null
}
if (!isSqliteStorageEngine()) {
return
}
const backupSettings = store.preferences.get('backup')
if (!backupSettings.enabled) {
return
}
if (shouldCreateBackup()) {
await createBackup()
}
const intervalMs = backupSettings.interval * 60 * 60 * 1000 // Конвертируем часы в миллисекунды
backupTimer = setInterval(async () => {
try {
if (shouldCreateBackup()) {
await createBackup()
}
}
catch (error) {
log('Error during scheduled backup', error)
}
}, intervalMs)
}
catch (error) {
log('Error starting auto backup', error)
}
}
export function stopAutoBackup() {
if (backupTimer) {
clearInterval(backupTimer)
backupTimer = null
}
}
export async function restoreFromBackup(backupFilePath: string) {
try {
const storagePath = store.preferences.get('storagePath')
const currentDbPath = path.join(storagePath, DB_NAME)
const backupExists = await fs.exists(backupFilePath)
if (!backupExists) {
throw new Error(`Backup file does not exist: ${backupFilePath}`)
}
if (db) {
db.close()
db = null
}
await fs.copy(backupFilePath, currentDbPath, { overwrite: true })
reloadDB()
console.warn(`Database restored from backup: ${backupFilePath}`)
}
catch (error) {
log('Error restoring database from backup', error)
throw error
}
}
export async function getBackupList() {
try {
const backupSettings = store.preferences.get('backup')
if (!(await fs.exists(backupSettings.path))) {
return []
}
const files = await fs.readdir(backupSettings.path)
const backupFiles: Backup[] = []
for (const file of files) {
if (
file.startsWith('massCode-backup-')
|| (file.startsWith('massCode-manual-backup-') && file.endsWith('.db'))
) {
const filePath = path.join(backupSettings.path, file)
const stat = await fs.stat(filePath)
backupFiles.push({
name: file,
path: filePath,
size: stat.size,
createdAt: stat.mtime,
})
}
}
return backupFiles.sort(
(a, b) => b.createdAt.getTime() - a.createdAt.getTime(),
)
}
catch (error) {
log('Error getting backup list', error)
return []
}
}
export async function moveBackupStorage(newPath: string) {
try {
const backupSettings = store.preferences.get('backup')
const newPathExists = await fs.exists(newPath)
if (!newPathExists) {
throw new Error(`Target directory does not exist: ${newPath}`)
}
const newPathStat = await fs.stat(newPath)
if (!newPathStat.isDirectory()) {
throw new Error(`Target path is not a directory: ${newPath}`)
}
const files = await fs.readdir(backupSettings.path)
const backupFiles = files.filter(
file =>
(file.startsWith('massCode-backup-')
|| file.startsWith('massCode-manual-backup-'))
&& file.endsWith('.db'),
)
for (const file of backupFiles) {
const sourcePath = path.join(backupSettings.path, file)
const targetPath = path.join(newPath, file)
await fs.move(sourcePath, targetPath, { overwrite: true })
}
store.preferences.set('backup.path', newPath)
}
catch (error) {
log('Error while moving backup storage', error)
throw error
}
}
================================================
FILE: src/main/db/migrate.ts
================================================
// import type Database from 'better-sqlite3'
import type { JSONDB } from './types'
import { clearDB, useDB } from '.'
export function migrateJsonToSqlite(jsonData: JSONDB) {
return new Promise((resolve, reject) => {
try {
const db = useDB()
clearDB()
// Подготовленные выражения для вставки данных
const insertFolderStmt = db.prepare(`
INSERT INTO folders (name, defaultLanguage, parentId, isOpen, createdAt, updatedAt, icon, orderIndex)
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
`)
const updateFolderParentStmt = db.prepare(`
UPDATE folders SET parentId = ? WHERE id = ?
`)
const insertTagStmt = db.prepare(`
INSERT INTO tags (name, createdAt, updatedAt)
VALUES (?, ?, ?)
`)
const insertSnippetStmt = db.prepare(`
INSERT INTO snippets (name, description, folderId, isDeleted, isFavorites, createdAt, updatedAt)
VALUES (?, ?, ?, ?, ?, ?, ?)
`)
const insertSnippetContentStmt = db.prepare(`
INSERT INTO snippet_contents (snippetId, label, value, language)
VALUES (?, ?, ?, ?)
`)
const insertSnippetTagStmt = db.prepare(`
INSERT INTO snippet_tags (snippetId, tagId)
VALUES (?, ?)
`)
// Словари для сопоставления оригинальных string id с новыми числовыми id
const folderIdMap: Record<string, number> = {}
const tagIdMap: Record<string, number> = {}
const snippetIdMap: Record<string, number> = {}
// Транзакция для миграции данных
const transaction = db.transaction(() => {
// Миграция папок
jsonData.folders.forEach((folder) => {
const result = insertFolderStmt.run(
folder.name || 'Untitled Folder',
folder.defaultLanguage || 'plain_text',
null, // parentId обновим позже
folder.isOpen ? 1 : 0,
folder.createdAt || Date.now(),
folder.updatedAt || Date.now(),
folder.icon || null,
folder.index ?? 0,
)
folderIdMap[folder.id] = Number(result.lastInsertRowid)
})
// Обновляем поле parentId для папок, у которых оно задано
jsonData.folders.forEach((folder) => {
if (folder.parentId) {
const newId = folderIdMap[folder.id]
const parentNewId = folderIdMap[folder.parentId]
if (parentNewId) {
updateFolderParentStmt.run(parentNewId, newId)
}
}
})
// Миграция тегов
jsonData.tags.forEach((tag) => {
const result = insertTagStmt.run(
tag.name || 'Untitled Tag',
tag.createdAt || Date.now(),
tag.updatedAt || Date.now(),
)
tagIdMap[tag.id] = Number(result.lastInsertRowid)
})
// Миграция сниппетов, их содержимого и связей с тегами
jsonData.snippets.forEach((snippet) => {
// Определяем новый id папки для сниппета
const mappedFolderId = folderIdMap[snippet.folderId] || null
const result = insertSnippetStmt.run(
snippet.name || 'Untitled Snippet',
snippet.description || null,
mappedFolderId,
snippet.isDeleted ? 1 : 0,
snippet.isFavorites ? 1 : 0,
snippet.createdAt || Date.now(),
snippet.updatedAt || Date.now(),
)
const newSnippetId = Number(result.lastInsertRowid)
snippetIdMap[snippet.id] = newSnippetId
// Устанавливаем содержимое сниппета
snippet.content.forEach((content) => {
insertSnippetContentStmt.run(
newSnippetId,
content.label || null,
content.value || null,
content.language || null,
)
})
// Устанавливаем связи сниппета с тегами
if (snippet.tagsIds && snippet.tagsIds.length > 0) {
snippet.tagsIds.forEach((tagOrigId) => {
const mappedTagId = tagIdMap[tagOrigId]
if (mappedTagId) {
insertSnippetTagStmt.run(newSnippetId, mappedTagId)
}
})
}
})
})
transaction()
resolve(true)
}
catch (error) {
reject(error)
}
})
}
================================================
FILE: src/main/db/types/index.ts
================================================
interface Folder {
id: string
name: string
defaultLanguage: string | null
parentId: string | null
isOpen: boolean
isSystem: boolean
index: number
createdAt: number
updatedAt: number
icon: string | null
}
interface SnippetContent {
label: string
value: string
language: string
}
interface Snippet {
id: string
name: string
content: SnippetContent[]
description: string | null
folderId: string
tagsIds: string[]
isDeleted: boolean
isFavorites: boolean
createdAt: number
updatedAt: number
}
interface Tag {
id: string
name: string
createdAt: number
updatedAt: number
}
export interface JSONDB {
folders: Folder[]
snippets: Snippet[]
tags: Tag[]
}
export interface Backup {
name: string
path: string
size: number
createdAt: Date
}
================================================
FILE: src/main/i18n/index.ts
================================================
import { lstatSync, readdirSync } from 'node:fs'
import { join } from 'node:path'
import i18next from 'i18next'
import Backend from 'i18next-fs-backend'
import { store } from '../store'
import { language } from './language'
const storedLng = store.preferences.get('language')
const lng
= storedLng && Object.keys(language).includes(storedLng) ? storedLng : 'en_US'
i18next.use(Backend).init({
fallbackLng: 'en_US',
lng,
debug: false,
ns: ['devtools', 'menu', 'messages', 'preferences', 'special', 'ui'],
defaultNS: 'ui',
initImmediate: false,
preload: readdirSync(join(__dirname, './locales')).filter((fileName) => {
const joinedPath = join(join(__dirname, './locales'), fileName)
const isDirectory = lstatSync(joinedPath).isDirectory()
return isDirectory
}),
backend: {
loadPath: join(__dirname, './locales/{{lng}}/{{ns}}.json'),
},
})
i18next.addResourceBundle(lng, 'language', language)
export default i18next
================================================
FILE: src/main/i18n/language.ts
================================================
export const language = {
cs_CZ: 'Čeština',
de_DE: 'Deutsch',
el_GR: 'Ελληνικά',
en_US: 'English',
es_ES: 'Español',
fa_IR: 'فارسی',
fr_FR: 'French',
ja_JP: '日本語',
pl_PL: 'Polski',
pt_BR: 'Português (Brasil)',
ro_RO: 'Română',
ru_RU: 'Русский',
tr_TR: 'Türkçe',
uk_UA: 'Українська',
zh_CN: '中文 (简体)',
zh_HK: '中文 (繁體 香港特別行政區)'
gitextract_ny75g84n/ ├── .claude/ │ └── settings.json ├── .gemini/ │ └── settings.json ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.yml │ │ └── config.yml │ ├── PULL_REQUEST_TEMPLATE.md │ └── workflows/ │ ├── build-sponsored.yml │ ├── issue-close-require.yml │ ├── issue-labeled.yml │ └── release.yml ├── .gitignore ├── .prettierrc ├── AGENTS.md ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── build/ │ ├── entitlements.mac.inherit.plist │ └── icons/ │ └── icon.icns ├── commitlint.config.js ├── components.json ├── electron-builder.json ├── electron-builder.sponsored.json ├── eslint.config.js ├── nodemon.json ├── package.json ├── postcss.config.js ├── scripts/ │ ├── api-generate.js │ ├── bench-load-test.js │ ├── bench-seed.js │ └── copy-locales.js ├── src/ │ ├── main/ │ │ ├── api/ │ │ │ ├── dto/ │ │ │ │ ├── common/ │ │ │ │ │ ├── query.ts │ │ │ │ │ └── response.ts │ │ │ │ ├── folders.ts │ │ │ │ ├── snippet-contents.ts │ │ │ │ ├── snippets.ts │ │ │ │ └── tags.ts │ │ │ ├── index.ts │ │ │ └── routes/ │ │ │ ├── folders.ts │ │ │ ├── snippets.ts │ │ │ ├── system.ts │ │ │ └── tags.ts │ │ ├── currencyRates.ts │ │ ├── db/ │ │ │ ├── index.ts │ │ │ ├── migrate.ts │ │ │ └── types/ │ │ │ └── index.ts │ │ ├── i18n/ │ │ │ ├── index.ts │ │ │ ├── language.ts │ │ │ └── locales/ │ │ │ ├── README.md │ │ │ ├── cs_CZ/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── de_DE/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── el_GR/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── en_US/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── es_ES/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── fa_IR/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── fr_FR/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── ja_JP/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── pl_PL/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── pt_BR/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── ro_RO/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── ru_RU/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── tr_TR/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── uk_UA/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── zh_CN/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ ├── zh_HK/ │ │ │ │ ├── devtools.json │ │ │ │ ├── menu.json │ │ │ │ ├── messages.json │ │ │ │ ├── preferences.json │ │ │ │ └── ui.json │ │ │ └── zh_TW/ │ │ │ ├── devtools.json │ │ │ ├── menu.json │ │ │ ├── messages.json │ │ │ ├── preferences.json │ │ │ └── ui.json │ │ ├── index.ts │ │ ├── ipc/ │ │ │ ├── handlers/ │ │ │ │ ├── db.ts │ │ │ │ ├── dialog.ts │ │ │ │ ├── fs.ts │ │ │ │ ├── prettier.ts │ │ │ │ ├── spaces.ts │ │ │ │ ├── system.ts │ │ │ │ └── theme.ts │ │ │ └── index.ts │ │ ├── menu/ │ │ │ ├── main.ts │ │ │ └── utils/ │ │ │ └── index.ts │ │ ├── preload.ts │ │ ├── storage/ │ │ │ ├── contracts.ts │ │ │ ├── index.ts │ │ │ └── providers/ │ │ │ ├── markdown/ │ │ │ │ ├── index.ts │ │ │ │ ├── migrations.ts │ │ │ │ ├── runtime/ │ │ │ │ │ ├── constants.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── normalizers.ts │ │ │ │ │ ├── parser.ts │ │ │ │ │ ├── paths.ts │ │ │ │ │ ├── search.ts │ │ │ │ │ ├── snippets.ts │ │ │ │ │ ├── spaceState.ts │ │ │ │ │ ├── spaces.ts │ │ │ │ │ ├── state.ts │ │ │ │ │ ├── sync.ts │ │ │ │ │ ├── types.ts │ │ │ │ │ └── validation.ts │ │ │ │ ├── storages/ │ │ │ │ │ ├── folders.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── snippets.ts │ │ │ │ │ └── tags.ts │ │ │ │ └── watcher.ts │ │ │ └── sqlite/ │ │ │ ├── folders.ts │ │ │ ├── index.ts │ │ │ ├── snippets.ts │ │ │ └── tags.ts │ │ ├── store/ │ │ │ ├── constants.ts │ │ │ ├── index.ts │ │ │ ├── module/ │ │ │ │ ├── app.ts │ │ │ │ ├── currency-rates.ts │ │ │ │ ├── math-notebook.ts │ │ │ │ └── preferences.ts │ │ │ └── types/ │ │ │ ├── index.ts │ │ │ └── theme.ts │ │ ├── types/ │ │ │ ├── index.ts │ │ │ └── ipc.ts │ │ ├── updates/ │ │ │ └── index.ts │ │ └── utils/ │ │ └── index.ts │ └── renderer/ │ ├── App.vue │ ├── components/ │ │ ├── app-space-shell/ │ │ │ └── AppSpaceShell.vue │ │ ├── code-space-layout/ │ │ │ └── CodeSpaceLayout.vue │ │ ├── devtools/ │ │ │ ├── ShadcnComparison.vue │ │ │ ├── converters/ │ │ │ │ ├── Base64Converter.vue │ │ │ │ ├── CaseConverter.vue │ │ │ │ ├── ColorConverter.vue │ │ │ │ ├── JsonToToml.vue │ │ │ │ ├── JsonToXml.vue │ │ │ │ ├── JsonToYaml.vue │ │ │ │ ├── TextToAsciiBinary.vue │ │ │ │ └── TextToUnicode.vue │ │ │ ├── crypto/ │ │ │ │ ├── Hash.vue │ │ │ │ ├── Hmac.vue │ │ │ │ ├── Password.vue │ │ │ │ └── Uuid.vue │ │ │ ├── generators/ │ │ │ │ ├── JsonGenerator.vue │ │ │ │ └── LoremIpsumGenerator.vue │ │ │ ├── shadcn-comparison/ │ │ │ │ ├── RootUi.vue │ │ │ │ ├── Shadcn2.vue │ │ │ │ └── copy.ts │ │ │ └── web/ │ │ │ ├── Slugify.vue │ │ │ ├── UrlEncoder.vue │ │ │ └── UrlParser.vue │ │ ├── editor/ │ │ │ ├── Description.vue │ │ │ ├── Editor.vue │ │ │ ├── Footer.vue │ │ │ ├── Tab.vue │ │ │ ├── code-image/ │ │ │ │ ├── BackgroundSwitch.vue │ │ │ │ └── CodeImage.vue │ │ │ ├── grammars/ │ │ │ │ ├── auxiliary-grammars.ts │ │ │ │ ├── index.ts │ │ │ │ ├── languages.ts │ │ │ │ └── textmate/ │ │ │ │ ├── abap.tmLanguage.json │ │ │ │ ├── abc.tmLanguage.json │ │ │ │ ├── actionscript-3.tmLanguage.json │ │ │ │ ├── ada.tmLanguage.json │ │ │ │ ├── alda.tmLanguage.json │ │ │ │ ├── apache.tmLanguage.json │ │ │ │ ├── apex.tmLanguage.json │ │ │ │ ├── applescript.tmLanguage.json │ │ │ │ ├── arm.tmLanguage.json │ │ │ │ ├── asciidoctor.tmLanguage.json │ │ │ │ ├── asl.tmLanguage.json │ │ │ │ ├── asm.tmLanguage.json │ │ │ │ ├── asp-vb-net.tmlanguage.json │ │ │ │ ├── asymptote.tmLanguage.json │ │ │ │ ├── autohotkey.tmLanguage.json │ │ │ │ ├── batchfile.tmLanguage.json │ │ │ │ ├── bibtex.tmLanguage.json │ │ │ │ ├── bicep.tmLanguage.json │ │ │ │ ├── c.tmLanguage.json │ │ │ │ ├── cfscript.tmLanguage.json │ │ │ │ ├── cirru.tmLanguage.json │ │ │ │ ├── clojure.tmLanguage.json │ │ │ │ ├── cobol.tmLanguage.json │ │ │ │ ├── coffee.tmLanguage.json │ │ │ │ ├── coldfusion.tmLanguage.json │ │ │ │ ├── cpp-embedded-latex.tmLanguage.json │ │ │ │ ├── cpp.embedded.macro.tmLanguage.json │ │ │ │ ├── cpp.tmLanguage.json │ │ │ │ ├── crystal.tmLanguage.json │ │ │ │ ├── csharp.tmLanguage.json │ │ │ │ ├── csound-document.tmLanguage.json │ │ │ │ ├── csound-score.tmLanguage.json │ │ │ │ ├── csound.tmLanguage.json │ │ │ │ ├── css.tmLanguage.json │ │ │ │ ├── curly.tmLanguage.json │ │ │ │ ├── d.tmLanguage.json │ │ │ │ ├── dart.tmLanguage.json │ │ │ │ ├── diff.tmLanguage.json │ │ │ │ ├── django.tmLanguage.json │ │ │ │ ├── docker.tmLanguage.json │ │ │ │ ├── dot.tmLanguage.json │ │ │ │ ├── drools.tmLanguage.json │ │ │ │ ├── edifact.tmLanguage.json │ │ │ │ ├── eex.tmLanguage.json │ │ │ │ ├── eiffel.tmLanguage.json │ │ │ │ ├── ejs.tmLanguage.json │ │ │ │ ├── elixir.tmLanguage.json │ │ │ │ ├── elm.tmLanguage.json │ │ │ │ ├── erlang.tmLanguage.json │ │ │ │ ├── etc.tmLanguage.json │ │ │ │ ├── forth.tmLanguage.json │ │ │ │ ├── fortran.tmLanguage.json │ │ │ │ ├── fsharp.tmLanguage.json │ │ │ │ ├── gcode.tmLanguage.json │ │ │ │ ├── gherkin.tmLanguage.json │ │ │ │ ├── git-commit.tmLanguage.json │ │ │ │ ├── git-rebase.tmLanguage.json │ │ │ │ ├── gitignore.tmLanguage.json │ │ │ │ ├── glsl.tmLanguage.json │ │ │ │ ├── gnuplot.tmLanguage.json │ │ │ │ ├── go.tmLanguage.json │ │ │ │ ├── graphql.tmLanguage.json │ │ │ │ ├── groovy.tmLanguage.json │ │ │ │ ├── haml.tmLanguage.json │ │ │ │ ├── handlebars.tmLanguage.json │ │ │ │ ├── haskell-cabal.tmLanguage.json │ │ │ │ ├── haskell.tmLanguage.json │ │ │ │ ├── haxe.tmLanguage.json │ │ │ │ ├── hjson.tmLanguage.json │ │ │ │ ├── html-cfml.tmLanguage.json │ │ │ │ ├── html-derivative.tmLanguage.json │ │ │ │ ├── html-django.tmLanguage.json │ │ │ │ ├── html-elixir.tmLanguage.json │ │ │ │ ├── html-ruby.tmLanguage.json │ │ │ │ ├── html.tmLanguage.json │ │ │ │ ├── ini.tmLanguage.json │ │ │ │ ├── io.tmLanguage.json │ │ │ │ ├── java.tmLanguage.json │ │ │ │ ├── javadoc.tmLanguage.json │ │ │ │ ├── javascript.tmLanguage.json │ │ │ │ ├── jquery.tmLanguage.json │ │ │ │ ├── json.tmLanguage.json │ │ │ │ ├── json5.tmLanguage.json │ │ │ │ ├── jsonc.tmLanguage.json │ │ │ │ ├── jsoniq.tmLanguage.json │ │ │ │ ├── jsp.tmLanguage.json │ │ │ │ ├── jsx-styled.tmLanguage.json │ │ │ │ ├── jsx.tmLanguage.json │ │ │ │ ├── julia.tmLanguage.json │ │ │ │ ├── kotlin.tmLanguage.json │ │ │ │ ├── kusto.tmLanguage.json │ │ │ │ ├── latex.tmLanguage.json │ │ │ │ ├── latte.tmLanguage.json │ │ │ │ ├── less.tmLanguage.json │ │ │ │ ├── liquid.tmLanguage.json │ │ │ │ ├── lisp.tmLanguage.json │ │ │ │ ├── livescript.tmLanguage.json │ │ │ │ ├── log.tmLanguage.json │ │ │ │ ├── lsl.tmLanguage.json │ │ │ │ ├── lua.tmLanguage.json │ │ │ │ ├── make.tmLanguage.json │ │ │ │ ├── markdown-gf.tmLanguage.json │ │ │ │ ├── markdown-latex-combined.tmLanguage.json │ │ │ │ ├── markdown.tmLanguage.json │ │ │ │ ├── mask.tmLanguage.json │ │ │ │ ├── matlab.tmLanguage.json │ │ │ │ ├── mediawiki.tmLanguage.json │ │ │ │ ├── mel.tmLanguage.json │ │ │ │ ├── mermaid.tmLanguage.json │ │ │ │ ├── mikrotik.tmLanguage.json │ │ │ │ ├── mips.tmLanguage.json │ │ │ │ ├── mysql.tmLanguage.json │ │ │ │ ├── nginx.tmLanguage.json │ │ │ │ ├── nim.tmLanguage.json │ │ │ │ ├── nix.tmLanguage.json │ │ │ │ ├── nsis.tmLanguage.json │ │ │ │ ├── nu.tmLanguage.json │ │ │ │ ├── nunjucks.tmLanguage.json │ │ │ │ ├── objective-c.tmLanguage.json │ │ │ │ ├── ocaml.tmLanguage.json │ │ │ │ ├── oeabl.tmLanguage.json │ │ │ │ ├── pascal.tmLanguage.json │ │ │ │ ├── perl.tmLanguage.json │ │ │ │ ├── pgsql.tmLanguage.json │ │ │ │ ├── php-blade.tmLanguage.json │ │ │ │ ├── php-html.tmLanguage.json │ │ │ │ ├── php.tmLanguage.json │ │ │ │ ├── pig.tmLanguage.json │ │ │ │ ├── plain-text.tmLanguage.json │ │ │ │ ├── plsql.tmLanguage.json │ │ │ │ ├── postcss.tmLanguage.json │ │ │ │ ├── postscript.tmLanguage.json │ │ │ │ ├── powerquery.tmLanguage.json │ │ │ │ ├── powershell.tmLanguage.json │ │ │ │ ├── praat.tmLanguage.json │ │ │ │ ├── prisma.tmLanguage.json │ │ │ │ ├── prolog.tmLanguage.json │ │ │ │ ├── properties.tmLanguage.json │ │ │ │ ├── protobuf.tmLanguage.json │ │ │ │ ├── pug.tmLanguage.json │ │ │ │ ├── puppet.tmLanguage.json │ │ │ │ ├── python.tmLanguage.json │ │ │ │ ├── qml.tmLanguage.json │ │ │ │ ├── r.tmLanguage.json │ │ │ │ ├── raku.tmLanguage.json │ │ │ │ ├── razor.tmLanguage.json │ │ │ │ ├── rdoc.tmLanguage.json │ │ │ │ ├── red.tmLanguage.json │ │ │ │ ├── regexp-extended.tmLanguage.json │ │ │ │ ├── regexp-javascript.tmLanguage.json │ │ │ │ ├── regexp-posix.tmLanguage.json │ │ │ │ ├── regexp-python.tmLanguage.json │ │ │ │ ├── regexp.tmLanguage.json │ │ │ │ ├── rst.tmLanguage.json │ │ │ │ ├── ruby.tmLanguage.json │ │ │ │ ├── rust.tmLanguage.json │ │ │ │ ├── sas.tmLanguage.json │ │ │ │ ├── sass.tmLanguage.json │ │ │ │ ├── sassdoc.tmLanguage.json │ │ │ │ ├── scad.tmLanguage.json │ │ │ │ ├── scala.tmLanguage.json │ │ │ │ ├── scheme.tmLanguage.json │ │ │ │ ├── scrypt.tmLanguage.json │ │ │ │ ├── scss.tmLanguage.json │ │ │ │ ├── shell-unix-bash.tmLanguage.json │ │ │ │ ├── sjs.tmLanguage.json │ │ │ │ ├── slim.tmLanguage.json │ │ │ │ ├── slm.tmLanguage.json │ │ │ │ ├── smalltalk.tmLanguage.json │ │ │ │ ├── smarty.tmLanguage.json │ │ │ │ ├── smithy.tmLanguage.json │ │ │ │ ├── solidity.tmLanguage.json │ │ │ │ ├── soytemplate.tmLanguage.json │ │ │ │ ├── sql.tmLanguage.json │ │ │ │ ├── stylus.tmLanguage.json │ │ │ │ ├── svg.tmLanguage.json │ │ │ │ ├── swift.tmLanguage.json │ │ │ │ ├── syon.tmLanguage.json │ │ │ │ ├── systemverilog.tmLanguage.json │ │ │ │ ├── tcl.tmLanguage.json │ │ │ │ ├── terraform.tmLanguage.json │ │ │ │ ├── tex.tmLanguage.json │ │ │ │ ├── textile.tmLanguage.json │ │ │ │ ├── toml.tmLanguage.json │ │ │ │ ├── tsx.tmLanguage.json │ │ │ │ ├── twig.tmLanguage.json │ │ │ │ ├── typescript.tmLanguage.json │ │ │ │ ├── vala.tmLanguage.json │ │ │ │ ├── velocity.tmLanguage.json │ │ │ │ ├── vhdl.tmLanguage.json │ │ │ │ ├── visualforce.tmLanguage.json │ │ │ │ ├── vue.tmLanguage.json │ │ │ │ ├── wollok.tmLanguage.json │ │ │ │ ├── xml.tmLanguage.json │ │ │ │ ├── xquery.tmLanguage.json │ │ │ │ ├── xsl.tmLanguage.json │ │ │ │ ├── yaml.tmLanguage.json │ │ │ │ └── zeek.tmLanguage.json │ │ │ ├── header/ │ │ │ │ ├── Header.vue │ │ │ │ ├── Tags.vue │ │ │ │ └── Tool.vue │ │ │ ├── json-visualizer/ │ │ │ │ ├── DialogInfo.vue │ │ │ │ ├── JsonVisualizer.vue │ │ │ │ ├── composables/ │ │ │ │ │ └── useLayout.ts │ │ │ │ ├── nodes/ │ │ │ │ │ ├── ArrayNode.vue │ │ │ │ │ └── ObjectNode.vue │ │ │ │ ├── types/ │ │ │ │ │ └── index.ts │ │ │ │ └── utils/ │ │ │ │ ├── index.ts │ │ │ │ └── json-parser.ts │ │ │ ├── markdown/ │ │ │ │ ├── LaserPointer.vue │ │ │ │ ├── Markdown.vue │ │ │ │ ├── Presentation.vue │ │ │ │ └── composables/ │ │ │ │ ├── index.ts │ │ │ │ └── useMarkdown.ts │ │ │ ├── mindmap/ │ │ │ │ └── Mindmap.vue │ │ │ ├── preview/ │ │ │ │ └── Preview.vue │ │ │ └── types/ │ │ │ └── index.ts │ │ ├── layout/ │ │ │ └── TwoColumn.vue │ │ ├── math-notebook/ │ │ │ ├── MathEditor.vue │ │ │ ├── README.md │ │ │ ├── ResultsPanel.vue │ │ │ ├── SheetList.vue │ │ │ ├── Workspace.vue │ │ │ └── math-editor-highlight.ts │ │ ├── preferences/ │ │ │ ├── API.vue │ │ │ ├── Appearance.vue │ │ │ ├── Editor.vue │ │ │ ├── Language.vue │ │ │ ├── Storage.vue │ │ │ └── keys.ts │ │ ├── sidebar/ │ │ │ ├── Sidebar.vue │ │ │ ├── folders/ │ │ │ │ ├── Tree.vue │ │ │ │ ├── custom-icons/ │ │ │ │ │ ├── CustomIcons.vue │ │ │ │ │ └── icons.ts │ │ │ │ └── types/ │ │ │ │ └── index.ts │ │ │ ├── library/ │ │ │ │ ├── Item.vue │ │ │ │ └── Library.vue │ │ │ └── tags/ │ │ │ ├── Item.vue │ │ │ └── Tags.vue │ │ ├── snippet/ │ │ │ ├── Header.vue │ │ │ ├── Item.vue │ │ │ └── List.vue │ │ ├── space-rail/ │ │ │ └── SpaceRail.vue │ │ └── ui/ │ │ ├── action-button/ │ │ │ └── ActionButton.vue │ │ ├── color-picker/ │ │ │ └── ColorPicker.vue │ │ ├── empty/ │ │ │ └── Placeholder.vue │ │ ├── folder-icon/ │ │ │ ├── FolderIcon.vue │ │ │ ├── icons.ts │ │ │ └── variants.ts │ │ ├── heading/ │ │ │ └── Heading.vue │ │ ├── input/ │ │ │ ├── Input.vue │ │ │ └── variants.ts │ │ ├── input-tags/ │ │ │ ├── InputTags.vue │ │ │ └── types/ │ │ │ └── index.ts │ │ ├── menu/ │ │ │ ├── FormItem.vue │ │ │ ├── FormSection.vue │ │ │ └── Item.vue │ │ ├── shadcn/ │ │ │ ├── button/ │ │ │ │ ├── Button.vue │ │ │ │ └── index.ts │ │ │ ├── checkbox/ │ │ │ │ ├── Checkbox.vue │ │ │ │ └── index.ts │ │ │ ├── command/ │ │ │ │ ├── Command.vue │ │ │ │ ├── CommandDialog.vue │ │ │ │ ├── CommandEmpty.vue │ │ │ │ ├── CommandGroup.vue │ │ │ │ ├── CommandInput.vue │ │ │ │ ├── CommandItem.vue │ │ │ │ ├── CommandList.vue │ │ │ │ ├── CommandSeparator.vue │ │ │ │ ├── CommandShortcut.vue │ │ │ │ └── index.ts │ │ │ ├── context-menu/ │ │ │ │ ├── ContextMenu.vue │ │ │ │ ├── ContextMenuCheckboxItem.vue │ │ │ │ ├── ContextMenuContent.vue │ │ │ │ ├── ContextMenuGroup.vue │ │ │ │ ├── ContextMenuItem.vue │ │ │ │ ├── ContextMenuLabel.vue │ │ │ │ ├── ContextMenuPortal.vue │ │ │ │ ├── ContextMenuRadioGroup.vue │ │ │ │ ├── ContextMenuRadioItem.vue │ │ │ │ ├── ContextMenuSeparator.vue │ │ │ │ ├── ContextMenuShortcut.vue │ │ │ │ ├── ContextMenuSub.vue │ │ │ │ ├── ContextMenuSubContent.vue │ │ │ │ ├── ContextMenuSubTrigger.vue │ │ │ │ ├── ContextMenuTrigger.vue │ │ │ │ └── index.ts │ │ │ ├── dialog/ │ │ │ │ ├── Dialog.vue │ │ │ │ ├── DialogClose.vue │ │ │ │ ├── DialogContent.vue │ │ │ │ ├── DialogDescription.vue │ │ │ │ ├── DialogFooter.vue │ │ │ │ ├── DialogHeader.vue │ │ │ │ ├── DialogOverlay.vue │ │ │ │ ├── DialogScrollContent.vue │ │ │ │ ├── DialogTitle.vue │ │ │ │ ├── DialogTrigger.vue │ │ │ │ └── index.ts │ │ │ ├── input/ │ │ │ │ ├── Input.vue │ │ │ │ └── index.ts │ │ │ ├── popover/ │ │ │ │ ├── Popover.vue │ │ │ │ ├── PopoverAnchor.vue │ │ │ │ ├── PopoverContent.vue │ │ │ │ ├── PopoverTrigger.vue │ │ │ │ └── index.ts │ │ │ ├── resizable/ │ │ │ │ ├── ResizableHandle.vue │ │ │ │ ├── ResizablePanel.vue │ │ │ │ ├── ResizablePanelGroup.vue │ │ │ │ └── index.ts │ │ │ ├── select/ │ │ │ │ ├── Select.vue │ │ │ │ ├── SelectContent.vue │ │ │ │ ├── SelectGroup.vue │ │ │ │ ├── SelectItem.vue │ │ │ │ ├── SelectItemText.vue │ │ │ │ ├── SelectLabel.vue │ │ │ │ ├── SelectScrollDownButton.vue │ │ │ │ ├── SelectScrollUpButton.vue │ │ │ │ ├── SelectSeparator.vue │ │ │ │ ├── SelectTrigger.vue │ │ │ │ ├── SelectValue.vue │ │ │ │ └── index.ts │ │ │ ├── switch/ │ │ │ │ ├── Switch.vue │ │ │ │ └── index.ts │ │ │ ├── tabs/ │ │ │ │ ├── Tabs.vue │ │ │ │ ├── TabsContent.vue │ │ │ │ ├── TabsList.vue │ │ │ │ ├── TabsTrigger.vue │ │ │ │ └── index.ts │ │ │ ├── textarea/ │ │ │ │ ├── Textarea.vue │ │ │ │ └── index.ts │ │ │ └── tooltip/ │ │ │ ├── Tooltip.vue │ │ │ ├── TooltipContent.vue │ │ │ ├── TooltipProvider.vue │ │ │ ├── TooltipTrigger.vue │ │ │ └── index.ts │ │ ├── sonner/ │ │ │ ├── Sonner.vue │ │ │ ├── templates/ │ │ │ │ └── Donate.vue │ │ │ └── types.ts │ │ ├── text/ │ │ │ ├── Text.vue │ │ │ └── index.ts │ │ ├── textarea/ │ │ │ ├── Textarea.vue │ │ │ └── variants.ts │ │ └── tree/ │ │ ├── Tree.vue │ │ ├── TreeNode.vue │ │ ├── composables.ts │ │ ├── index.ts │ │ ├── keys.ts │ │ └── types.ts │ ├── composables/ │ │ ├── __tests__/ │ │ │ └── useMathEngine.test.ts │ │ ├── index.ts │ │ ├── math-notebook/ │ │ │ ├── index.ts │ │ │ ├── math-engine/ │ │ │ │ ├── constants.ts │ │ │ │ ├── css.ts │ │ │ │ ├── mathInstance.ts │ │ │ │ ├── preprocess.ts │ │ │ │ ├── timeZones.ts │ │ │ │ └── types.ts │ │ │ ├── useMathEngine.ts │ │ │ └── useMathNotebook.ts │ │ ├── types/ │ │ │ └── index.ts │ │ ├── useApp.ts │ │ ├── useCopyToClipboard.ts │ │ ├── useDialog.ts │ │ ├── useEditor.ts │ │ ├── useFolders.ts │ │ ├── useSnippetScroller.ts │ │ ├── useSnippetUpdate.ts │ │ ├── useSnippets.ts │ │ ├── useSonner.ts │ │ ├── useStorageMutation.ts │ │ ├── useTags.ts │ │ └── useTheme.ts │ ├── electron.ts │ ├── index.html │ ├── ipc/ │ │ ├── index.ts │ │ └── listeners/ │ │ ├── main-menu.ts │ │ └── system.ts │ ├── main.ts │ ├── router/ │ │ └── index.ts │ ├── services/ │ │ ├── api/ │ │ │ ├── generated/ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ └── notifications/ │ │ ├── donate.ts │ │ └── index.ts │ ├── spaceDefinitions.ts │ ├── styles.css │ ├── utils/ │ │ └── index.ts │ ├── views/ │ │ ├── Devtools.vue │ │ ├── Main.vue │ │ ├── MarkdownPresentation.vue │ │ ├── MathNotebook.vue │ │ └── Preferences.vue │ └── vue-virtual-scroller.d.ts ├── tsconfig.json ├── tsconfig.main.json ├── vite.config.mjs └── vitest.config.ts
SYMBOL INDEX (669 symbols across 108 files)
FILE: scripts/api-generate.js
function generateApi (line 9) | async function generateApi() {
FILE: scripts/bench-load-test.js
function getErrorMessage (line 6) | function getErrorMessage(error) {
function parseArgs (line 22) | function parseArgs(argv) {
function requestJson (line 75) | async function requestJson(baseUrl, pathname, options) {
function measure (line 107) | async function measure(name, callback) {
function formatDuration (line 118) | function formatDuration(duration) {
function printMetrics (line 122) | function printMetrics(metrics) {
function createSnippet (line 136) | async function createSnippet(baseUrl, name) {
function createSnippetContent (line 148) | async function createSnippetContent(baseUrl, snippetId, label, value) {
function deleteSnippet (line 162) | async function deleteSnippet(baseUrl, snippetId) {
function getSnippets (line 173) | async function getSnippets(baseUrl, query) {
function resetStorageCache (line 193) | async function resetStorageCache(baseUrl) {
function main (line 199) | async function main() {
FILE: scripts/bench-seed.js
constant ALLOWED_SNIPPETS (line 6) | const ALLOWED_SNIPPETS = [1000, 5000, 10000]
constant ALLOWED_FRAGMENTS (line 7) | const ALLOWED_FRAGMENTS = [3, 4]
constant DEFAULT_BASE_URL (line 8) | const DEFAULT_BASE_URL
constant DEFAULT_CONCURRENCY (line 10) | const DEFAULT_CONCURRENCY = 6
constant DEFAULT_PREFIX (line 11) | const DEFAULT_PREFIX = 'seed'
function getErrorMessage (line 13) | function getErrorMessage(error) {
function parseInteger (line 29) | function parseInteger(value, fallback) {
function parseArgs (line 40) | function parseArgs(argv) {
function printHelp (line 116) | function printHelp() {
function validateProfile (line 136) | function validateProfile(profile) {
function parseProfile (line 150) | function parseProfile(value) {
function resolveProfiles (line 167) | function resolveProfiles(options) {
function normalizeBaseUrl (line 202) | function normalizeBaseUrl(value) {
function requestJson (line 206) | async function requestJson(baseUrl, pathname, options) {
function createSnippet (line 233) | async function createSnippet(baseUrl, name) {
function createSnippetContent (line 245) | async function createSnippetContent(baseUrl, snippetId, label, value) {
function formatDuration (line 259) | function formatDuration(durationMs) {
function buildSnippetName (line 272) | function buildSnippetName(options, profile, snippetIndex) {
function buildFragmentBody (line 282) | function buildFragmentBody(options, profile, snippetIndex, fragmentIndex) {
function runProfile (line 301) | async function runProfile(baseUrl, options, profile) {
function main (line 386) | async function main() {
FILE: scripts/copy-locales.js
function copyDirRecursive (line 8) | function copyDirRecursive(sourceDir, targetDir) {
FILE: src/main/api/dto/folders.ts
type FoldersAdd (line 46) | type FoldersAdd = typeof foldersAdd.static
type FoldersResponse (line 47) | type FoldersResponse = typeof foldersResponse.static
type FoldersTree (line 48) | type FoldersTree = typeof foldersTreeResponse.static
type FoldersItem (line 49) | type FoldersItem = typeof foldersItem.static
FILE: src/main/api/dto/snippet-contents.ts
type SnippetContentsAdd (line 14) | type SnippetContentsAdd = typeof snippetContentsAdd.static
FILE: src/main/api/dto/snippets.ts
type SnippetsAdd (line 83) | type SnippetsAdd = typeof snippetsAdd.static
type SnippetsResponse (line 84) | type SnippetsResponse = typeof snippetsResponse.static
type SnippetsCountsResponse (line 85) | type SnippetsCountsResponse = typeof snippetsCountsResponse.static
FILE: src/main/api/dto/tags.ts
type TagsAdd (line 23) | type TagsAdd = typeof tagsAdd.static
type TagsResponse (line 24) | type TagsResponse = typeof tagsResponse.static
FILE: src/main/api/index.ts
function initApi (line 12) | async function initApi() {
FILE: src/main/api/routes/folders.ts
function parseStorageError (line 9) | function parseStorageError(
function mapStorageError (line 27) | function mapStorageError(status: unknown, error: unknown): never {
FILE: src/main/api/routes/snippets.ts
function parseStorageError (line 9) | function parseStorageError(
function mapStorageError (line 27) | function mapStorageError(status: unknown, error: unknown): never {
FILE: src/main/currencyRates.ts
constant CACHE_TTL (line 3) | const CACHE_TTL = 1000 * 60 * 60
type CurrencyRatesApiResponse (line 5) | interface CurrencyRatesApiResponse {
type CurrencyRatesPayload (line 11) | interface CurrencyRatesPayload {
function normalizeRates (line 17) | function normalizeRates(rates: Record<string, number>) {
function getCurrencyRates (line 31) | async function getCurrencyRates(): Promise<CurrencyRatesPayload> {
FILE: src/main/db/index.ts
constant DB_NAME (line 10) | const DB_NAME = 'massCode.db'
function isSqliteStorageEngine (line 16) | function isSqliteStorageEngine(): boolean {
function isSqliteFile (line 20) | function isSqliteFile(dbPath: string): boolean {
function tableExists (line 33) | function tableExists(db: Database.Database, table: string): boolean {
function useDB (line 46) | function useDB() {
function reloadDB (line 154) | function reloadDB() {
function clearDB (line 185) | function clearDB() {
function moveDB (line 219) | async function moveDB(path: string) {
function createBackup (line 246) | async function createBackup(manual = false) {
function cleanupOldBackups (line 278) | async function cleanupOldBackups() {
function deleteBackup (line 307) | async function deleteBackup(backupPath: string) {
function shouldCreateBackup (line 311) | function shouldCreateBackup() {
function startAutoBackup (line 334) | async function startAutoBackup() {
function stopAutoBackup (line 373) | function stopAutoBackup() {
function restoreFromBackup (line 380) | async function restoreFromBackup(backupFilePath: string) {
function getBackupList (line 408) | async function getBackupList() {
function moveBackupStorage (line 446) | async function moveBackupStorage(newPath: string) {
FILE: src/main/db/migrate.ts
function migrateJsonToSqlite (line 5) | function migrateJsonToSqlite(jsonData: JSONDB) {
FILE: src/main/db/types/index.ts
type Folder (line 1) | interface Folder {
type SnippetContent (line 14) | interface SnippetContent {
type Snippet (line 20) | interface Snippet {
type Tag (line 33) | interface Tag {
type JSONDB (line 40) | interface JSONDB {
type Backup (line 46) | interface Backup {
FILE: src/main/index.ts
constant SQLITE_SUNSET_VERSION (line 25) | const SQLITE_SUNSET_VERSION = '5.0.0'
function shouldShowFeatureNotice (line 27) | function shouldShowFeatureNotice(): boolean {
function showFeatureNotice (line 42) | function showFeatureNotice() {
function createWindow (line 65) | function createWindow() {
FILE: src/main/ipc/handlers/db.ts
function assertSqliteEngine (line 24) | function assertSqliteEngine(action: string): void {
function registerDBHandlers (line 32) | function registerDBHandlers() {
FILE: src/main/ipc/handlers/dialog.ts
function registerDialogHandlers (line 4) | function registerDialogHandlers() {
FILE: src/main/ipc/handlers/fs.ts
constant ASSETS_DIR (line 9) | const ASSETS_DIR = 'assets'
function registerFsHandlers (line 11) | function registerFsHandlers() {
FILE: src/main/ipc/handlers/prettier.ts
function format (line 6) | async function format(source: string, parser: string) {
function registerPrettierHandlers (line 18) | function registerPrettierHandlers() {
FILE: src/main/ipc/handlers/spaces.ts
function getVaultPath (line 13) | function getVaultPath(): string | null {
function isMarkdownEngine (line 17) | function isMarkdownEngine(): boolean {
function registerSpacesHandlers (line 21) | function registerSpacesHandlers() {
FILE: src/main/ipc/handlers/system.ts
function registerSystemHandlers (line 4) | function registerSystemHandlers() {
FILE: src/main/ipc/handlers/theme.ts
constant THEMES_ROOT_DIR (line 20) | const THEMES_ROOT_DIR = path.join(homedir(), '.massCode')
constant THEMES_DIR (line 21) | const THEMES_DIR = path.join(THEMES_ROOT_DIR, 'themes')
constant THEME_FILE_EXT (line 22) | const THEME_FILE_EXT = '.json'
constant THEME_CHANGED_DEBOUNCE_MS (line 23) | const THEME_CHANGED_DEBOUNCE_MS = 250
constant THEME_TEMPLATE_BASE_NAME (line 24) | const THEME_TEMPLATE_BASE_NAME = 'new-theme'
constant THEME_TEMPLATE (line 25) | const THEME_TEMPLATE: ThemeFile = {
constant TOKEN_MIGRATION_MAP (line 61) | const TOKEN_MIGRATION_MAP: Record<string, string> = {
constant DROPPED_TOKENS (line 74) | const DROPPED_TOKENS = new Set(['color-button-hover'])
type ChokidarWatch (line 83) | type ChokidarWatch = (
function getChokidarWatch (line 88) | async function getChokidarWatch(): Promise<ChokidarWatch> {
function ensureThemesDir (line 117) | function ensureThemesDir(): string {
function reportThemeIssue (line 122) | function reportThemeIssue(
function isThemeType (line 143) | function isThemeType(value: unknown): value is ThemeType {
function isStringRecord (line 147) | function isStringRecord(value: unknown): value is Record<string, string> {
function parseThemeFile (line 155) | function parseThemeFile(raw: unknown, fileName: string): ThemeFile | null {
function normalizeThemeId (line 205) | function normalizeThemeId(id: string): string | null {
function resolveThemeFilePath (line 227) | function resolveThemeFilePath(id: string): string | null {
function migrateThemeColors (line 245) | function migrateThemeColors(colors: Record<string, string>): {
function readThemeFromFile (line 272) | function readThemeFromFile(
function listThemes (line 314) | function listThemes(): ThemeListItem[] {
function getTheme (line 354) | function getTheme(id: string): ThemeFile | null {
function openThemesDir (line 364) | async function openThemesDir(): Promise<void> {
function resolveThemeTemplatePath (line 373) | function resolveThemeTemplatePath(): string {
function createThemeTemplate (line 392) | function createThemeTemplate(): string {
function scheduleThemeChanged (line 401) | function scheduleThemeChanged(): void {
function stopThemeWatcher (line 414) | function stopThemeWatcher(): void {
function startThemeWatcher (line 430) | function startThemeWatcher(): void {
function registerThemeHandlers (line 483) | function registerThemeHandlers() {
FILE: src/main/ipc/index.ts
function send (line 11) | function send(channel: Channel, payload?: unknown) {
function registerIPC (line 15) | function registerIPC() {
FILE: src/main/menu/main.ts
function aboutApp (line 22) | function aboutApp() {
FILE: src/main/menu/utils/index.ts
type Platform (line 5) | type Platform = 'darwin' | 'win32'
type MenuConfig (line 7) | interface MenuConfig extends MenuItemConstructorOptions {
function createPlatformMenuItems (line 11) | function createPlatformMenuItems(
function createMenu (line 25) | function createMenu(template: MenuItemConstructorOptions[]) {
FILE: src/main/storage/contracts.ts
type TagRecord (line 1) | interface TagRecord {
type FolderRecord (line 6) | interface FolderRecord {
type FolderTreeRecord (line 18) | interface FolderTreeRecord extends FolderRecord {
type FolderCreateInput (line 22) | interface FolderCreateInput {
type FolderUpdateInput (line 27) | interface FolderUpdateInput {
type FolderUpdateResult (line 36) | interface FolderUpdateResult {
type FoldersStorage (line 41) | interface FoldersStorage {
type SnippetTagRecord (line 49) | interface SnippetTagRecord {
type SnippetFolderRecord (line 54) | interface SnippetFolderRecord {
type SnippetContentRecord (line 59) | interface SnippetContentRecord {
type SnippetRecord (line 66) | interface SnippetRecord {
type SnippetsQueryInput (line 79) | interface SnippetsQueryInput {
type SnippetCreateInput (line 89) | interface SnippetCreateInput {
type SnippetUpdateInput (line 94) | interface SnippetUpdateInput {
type SnippetContentCreateInput (line 102) | interface SnippetContentCreateInput {
type SnippetContentUpdateInput (line 108) | interface SnippetContentUpdateInput {
type SnippetUpdateResult (line 114) | interface SnippetUpdateResult {
type SnippetContentUpdateResult (line 119) | interface SnippetContentUpdateResult {
type SnippetTagRelationResult (line 125) | interface SnippetTagRelationResult {
type SnippetTagDeleteRelationResult (line 131) | interface SnippetTagDeleteRelationResult {
type SnippetsCount (line 138) | interface SnippetsCount {
type SnippetsStorage (line 143) | interface SnippetsStorage {
type TagsStorage (line 170) | interface TagsStorage {
type StorageProvider (line 176) | interface StorageProvider {
FILE: src/main/storage/index.ts
function resolveProvider (line 14) | function resolveProvider(engine: string): StorageProvider {
function useStorage (line 36) | function useStorage(): StorageProvider {
FILE: src/main/storage/providers/markdown/migrations.ts
function clearVaultForMigration (line 36) | function clearVaultForMigration(paths: Paths): void {
constant RESERVED_ROOT_FOLDER_NAMES (line 54) | const RESERVED_ROOT_FOLDER_NAMES = new Set(['.masscode', 'inbox', 'trash'])
function removeControlChars (line 56) | function removeControlChars(value: string): string {
function sanitizeEntryNameForMigration (line 60) | function sanitizeEntryNameForMigration(
function getUniqueFolderName (line 88) | function getUniqueFolderName(
function normalizeFoldersForMigration (line 127) | function normalizeFoldersForMigration(folders: FolderRecord[]): FolderRe...
function appendSnippetNameSuffix (line 162) | function appendSnippetNameSuffix(name: string, suffix: number): string {
function resolveUniqueSnippetPathForMigration (line 172) | function resolveUniqueSnippetPathForMigration(
function migrateSqliteToMarkdownStorage (line 212) | function migrateSqliteToMarkdownStorage(): {
function migrateMarkdownToSqliteStorage (line 383) | function migrateMarkdownToSqliteStorage(): {
FILE: src/main/storage/providers/markdown/runtime/constants.ts
constant META_DIR_NAME (line 3) | const META_DIR_NAME = '.masscode'
constant STATE_FILE_NAME (line 4) | const STATE_FILE_NAME = 'state.json'
constant INBOX_DIR_NAME (line 5) | const INBOX_DIR_NAME = 'inbox'
constant TRASH_DIR_NAME (line 6) | const TRASH_DIR_NAME = 'trash'
constant SPACES_DIR_NAME (line 7) | const SPACES_DIR_NAME = '__spaces__'
constant META_FILE_NAME (line 8) | const META_FILE_NAME = '.meta.yaml'
constant SPACE_STATE_FILE_NAME (line 9) | const SPACE_STATE_FILE_NAME = '.state.yaml'
constant LEGACY_FOLDER_META_FILE_NAME (line 10) | const LEGACY_FOLDER_META_FILE_NAME = '.masscode-folder.yml'
constant INBOX_RELATIVE_PATH (line 12) | const INBOX_RELATIVE_PATH = `${META_DIR_NAME}/${INBOX_DIR_NAME}`
constant TRASH_RELATIVE_PATH (line 13) | const TRASH_RELATIVE_PATH = `${META_DIR_NAME}/${TRASH_DIR_NAME}`
constant LEGACY_INBOX_RELATIVE_PATH (line 14) | const LEGACY_INBOX_RELATIVE_PATH = INBOX_DIR_NAME
constant LEGACY_TRASH_RELATIVE_PATH (line 15) | const LEGACY_TRASH_RELATIVE_PATH = TRASH_DIR_NAME
constant RESERVED_ROOT_NAMES (line 17) | const RESERVED_ROOT_NAMES = new Set([
constant NEW_LINE_SPLIT_RE (line 22) | const NEW_LINE_SPLIT_RE = /\r?\n/
constant SEARCH_DIACRITICS_RE (line 23) | const SEARCH_DIACRITICS_RE = /[\u0300-\u036F]/g
constant SEARCH_WORD_RE (line 24) | const SEARCH_WORD_RE = /[\p{L}\p{N}_]+/gu
constant STATE_WRITE_DEBOUNCE_MS (line 25) | const STATE_WRITE_DEBOUNCE_MS = 100
constant INVALID_NAME_CHARS_RE (line 26) | const INVALID_NAME_CHARS_RE = /[<>:"/\\|?*]/g
constant INVALID_NAME_CHARS (line 27) | const INVALID_NAME_CHARS = new Set([
constant WINDOWS_RESERVED_NAME_RE (line 38) | const WINDOWS_RESERVED_NAME_RE
function peekRuntimeCache (line 50) | function peekRuntimeCache(): MarkdownRuntimeCache | null {
FILE: src/main/storage/providers/markdown/runtime/normalizers.ts
function normalizeNumber (line 4) | function normalizeNumber(value: unknown, fallback = 0): number {
function normalizeFlag (line 9) | function normalizeFlag(value: unknown, fallback = 0): number {
function normalizePositiveInteger (line 13) | function normalizePositiveInteger(value: unknown): number | null {
function normalizeNullableNumber (line 23) | function normalizeNullableNumber(value: unknown): number | null {
function normalizeErrorMessage (line 32) | function normalizeErrorMessage(error: unknown): string {
function normalizeFolderUiState (line 40) | function normalizeFolderUiState(
function normalizeFolderOrderIndices (line 65) | function normalizeFolderOrderIndices(folders: FolderRecord[]): void {
FILE: src/main/storage/providers/markdown/runtime/parser.ts
function readYamlObjectFile (line 18) | function readYamlObjectFile<T>(filePath: string): T | null {
function writeYamlObjectFile (line 38) | function writeYamlObjectFile(
function readFolderMetadata (line 54) | function readFolderMetadata(
function serializeFolderMetadata (line 92) | function serializeFolderMetadata(
function writeFolderMetadataFile (line 106) | function writeFolderMetadataFile(
function splitFrontmatter (line 147) | function splitFrontmatter(source: string): {
function parseBodyFragments (line 168) | function parseBodyFragments(body: string): MarkdownBodyFragment[] {
function serializeSnippet (line 219) | function serializeSnippet(snippet: MarkdownSnippet): string {
FILE: src/main/storage/providers/markdown/runtime/paths.ts
function getVaultPath (line 12) | function getVaultPath(): string {
function getPaths (line 26) | function getPaths(vaultPath: string): Paths {
function toPosixPath (line 38) | function toPosixPath(filePath: string): string {
function depthOfRelativePath (line 42) | function depthOfRelativePath(relativePath: string): number {
function normalizeDirectoryPath (line 50) | function normalizeDirectoryPath(relativePath: string): string {
function buildFolderPathMap (line 58) | function buildFolderPathMap(state: MarkdownState): Map<number, string> {
function buildPathToFolderIdMap (line 99) | function buildPathToFolderIdMap(
function findFolderById (line 112) | function findFolderById(
function getFolderPathById (line 140) | function getFolderPathById(
function getFolderSiblings (line 148) | function getFolderSiblings(
function getNextFolderOrder (line 166) | function getNextFolderOrder(
FILE: src/main/storage/providers/markdown/runtime/search.ts
function normalizeSearchValue (line 4) | function normalizeSearchValue(value: string | null | undefined): string {
function splitSearchWords (line 15) | function splitSearchWords(value: string): string[] {
function createWordTrigrams (line 19) | function createWordTrigrams(value: string): string[] {
function buildSearchTokens (line 32) | function buildSearchTokens(normalizedText: string): string[] {
function getSnippetSearchText (line 46) | function getSnippetSearchText(snippet: MarkdownSnippet): string {
function buildSearchIndex (line 56) | function buildSearchIndex(snippets: MarkdownSnippet[]): {
function invalidateRuntimeSearchIndex (line 87) | function invalidateRuntimeSearchIndex(state: { version: number }): void {
function ensureRuntimeSearchIndex (line 97) | function ensureRuntimeSearchIndex(
function intersectSnippetIdSets (line 126) | function intersectSnippetIdSets(
function getSnippetIdsBySearchQuery (line 145) | function getSnippetIdsBySearchQuery(
FILE: src/main/storage/providers/markdown/runtime/snippets.ts
function isInboxSnippetDirectory (line 38) | function isInboxSnippetDirectory(directoryPath: string): boolean {
function isTrashSnippetDirectory (line 46) | function isTrashSnippetDirectory(directoryPath: string): boolean {
function listMarkdownFiles (line 53) | function listMarkdownFiles(
function readFrontmatterIdFromSnippetFile (line 99) | function readFrontmatterIdFromSnippetFile(
function readSnippetFromFile (line 113) | function readSnippetFromFile(
function loadSnippets (line 196) | function loadSnippets(
function writeSnippetToFile (line 207) | function writeSnippetToFile(
function upsertSnippetIndex (line 226) | function upsertSnippetIndex(
function getSnippetTargetDirectory (line 243) | function getSnippetTargetDirectory(
function buildSnippetTargetPath (line 259) | function buildSnippetTargetPath(
function getCachedDirectoryEntries (line 269) | function getCachedDirectoryEntries(
function removeDirectoryEntryFromCache (line 287) | function removeDirectoryEntryFromCache(
function upsertDirectoryEntryInCache (line 309) | function upsertDirectoryEntryInCache(
function assertSnippetPathAvailable (line 329) | function assertSnippetPathAvailable(
function getUniqueSnippetPath (line 364) | function getUniqueSnippetPath(
function persistSnippet (line 422) | function persistSnippet(
function createSnippetRecord (line 482) | function createSnippetRecord(
function findSnippetById (line 525) | function findSnippetById(
function findSnippetByContentId (line 553) | function findSnippetByContentId(
function getStateSnippetIndexByFilePath (line 599) | function getStateSnippetIndexByFilePath(
FILE: src/main/storage/providers/markdown/runtime/spaceState.ts
function readSpaceState (line 11) | function readSpaceState<T>(statePath: string): T | null {
function serializeToYaml (line 49) | function serializeToYaml(data: unknown): string {
function flushSpaceStateWrite (line 57) | function flushSpaceStateWrite(statePath: string): void {
function scheduleSpaceStateFlush (line 79) | function scheduleSpaceStateFlush(statePath: string): void {
function writeSpaceState (line 92) | function writeSpaceState(statePath: string, data: unknown): void {
function writeSpaceStateImmediate (line 98) | function writeSpaceStateImmediate(
FILE: src/main/storage/providers/markdown/runtime/spaces.ts
function getSpaceDirPath (line 5) | function getSpaceDirPath(vaultPath: string, spaceId: string): string {
function ensureSpaceDirectory (line 9) | function ensureSpaceDirectory(
function getSpaceStatePath (line 18) | function getSpaceStatePath(vaultPath: string, spaceId: string): string {
FILE: src/main/storage/providers/markdown/runtime/state.ts
function createDefaultState (line 22) | function createDefaultState(): MarkdownState {
function syncFolderUiWithFolders (line 38) | function syncFolderUiWithFolders(state: MarkdownState): void {
function getPersistedStateContent (line 51) | function getPersistedStateContent(statePath: string): string {
function flushPendingStateWriteByPath (line 65) | function flushPendingStateWriteByPath(statePath: string): void {
function scheduleStateFlush (line 87) | function scheduleStateFlush(statePath: string): void {
function flushPendingStateWrite (line 100) | function flushPendingStateWrite(paths: Paths): void {
function flushPendingStateWrites (line 104) | function flushPendingStateWrites(): void {
function registerStateWriteHooks (line 111) | function registerStateWriteHooks(): void {
function ensureStateFile (line 121) | function ensureStateFile(paths: Paths): void {
function loadState (line 136) | function loadState(paths: Paths): MarkdownState {
function saveState (line 168) | function saveState(
FILE: src/main/storage/providers/markdown/runtime/sync.ts
function isTechnicalRootFolder (line 51) | function isTechnicalRootFolder(name: string): boolean {
function listUserFolders (line 60) | function listUserFolders(
function syncFoldersWithDisk (line 95) | function syncFoldersWithDisk(paths: Paths, state: MarkdownState): void {
function syncFolderMetadataFiles (line 213) | function syncFolderMetadataFiles(
function syncCounters (line 229) | function syncCounters(
function syncStateWithDisk (line 260) | function syncStateWithDisk(paths: Paths): MarkdownState {
function setRuntimeCache (line 300) | function setRuntimeCache(
function resetRuntimeCache (line 351) | function resetRuntimeCache(): void {
function syncRuntimeWithDisk (line 356) | function syncRuntimeWithDisk(paths: Paths): MarkdownRuntimeCache {
function getRuntimeCache (line 363) | function getRuntimeCache(paths: Paths): MarkdownRuntimeCache {
function syncSnippetFileWithDisk (line 374) | function syncSnippetFileWithDisk(
FILE: src/main/storage/providers/markdown/runtime/types.ts
type MarkdownTagState (line 3) | interface MarkdownTagState extends TagRecord {
type MarkdownSnippetIndexItem (line 8) | interface MarkdownSnippetIndexItem {
type MarkdownFolderMetadataFile (line 13) | interface MarkdownFolderMetadataFile {
type MarkdownFolderDiskEntry (line 25) | interface MarkdownFolderDiskEntry {
type MarkdownFolderUIState (line 30) | interface MarkdownFolderUIState {
type MarkdownStateFile (line 34) | interface MarkdownStateFile {
type MarkdownState (line 48) | interface MarkdownState {
type MarkdownFrontmatterContent (line 62) | interface MarkdownFrontmatterContent {
type MarkdownSnippetFrontmatter (line 68) | interface MarkdownSnippetFrontmatter {
type MarkdownBodyFragment (line 81) | interface MarkdownBodyFragment {
type MarkdownSnippet (line 87) | interface MarkdownSnippet {
type MarkdownRuntimeCache (line 106) | interface MarkdownRuntimeCache {
type SaveStateOptions (line 126) | interface SaveStateOptions {
type SqliteSnippetRow (line 130) | interface SqliteSnippetRow {
type SqliteSnippetContentRow (line 141) | interface SqliteSnippetContentRow {
type SqliteSnippetTagRow (line 149) | interface SqliteSnippetTagRow {
type Paths (line 154) | interface Paths {
type MarkdownErrorCode (line 162) | type MarkdownErrorCode =
type DirectoryEntriesCache (line 169) | type DirectoryEntriesCache = Map<string, string[]>
type PersistSnippetOptions (line 171) | interface PersistSnippetOptions {
FILE: src/main/storage/providers/markdown/runtime/validation.ts
function throwStorageError (line 14) | function throwStorageError(
function getMarkdownStorageErrorMessage (line 21) | function getMarkdownStorageErrorMessage(error: unknown): string {
function normalizeName (line 25) | function normalizeName(name: string): string {
function hasInvalidNameChars (line 29) | function hasInvalidNameChars(name: string): boolean {
function validateEntryName (line 43) | function validateEntryName(
function toSnippetFileName (line 74) | function toSnippetFileName(name: string): string {
function assertNotReservedRootFolderName (line 84) | function assertNotReservedRootFolderName(
function assertUniqueSiblingFolderName (line 102) | function assertUniqueSiblingFolderName(
function resolveUniqueSiblingFolderName (line 122) | function resolveUniqueSiblingFolderName(
function assertDirectoryNameAvailable (line 151) | function assertDirectoryNameAvailable(
FILE: src/main/storage/providers/markdown/storages/folders.ts
function createFolderTree (line 32) | function createFolderTree(folders: FolderRecord[]): FolderTreeRecord[] {
function sortFoldersForTree (line 58) | function sortFoldersForTree(folders: FolderRecord[]): FolderRecord[] {
function findFolderDescendants (line 114) | function findFolderDescendants(
function createFoldersStorage (line 131) | function createFoldersStorage(): FoldersStorage {
FILE: src/main/storage/providers/markdown/storages/index.ts
function createMarkdownStorageProvider (line 6) | function createMarkdownStorageProvider(): StorageProvider {
FILE: src/main/storage/providers/markdown/storages/snippets.ts
function createSnippetsStorage (line 32) | function createSnippetsStorage(): SnippetsStorage {
FILE: src/main/storage/providers/markdown/storages/tags.ts
function createTagsStorage (line 10) | function createTagsStorage(): TagsStorage {
FILE: src/main/storage/providers/markdown/watcher.ts
type ChokidarWatch (line 28) | type ChokidarWatch = (
function getChokidarWatch (line 33) | async function getChokidarWatch(): Promise<ChokidarWatch> {
function toPosixPath (line 62) | function toPosixPath(filePath: string): string {
function normalizeRelativeWatchPath (line 66) | function normalizeRelativeWatchPath(
function shouldIgnoreWatchPath (line 89) | function shouldIgnoreWatchPath(paths: Paths, watchPath: string): boolean {
function scheduleStateSync (line 135) | function scheduleStateSync(
function stopMarkdownWatcher (line 180) | function stopMarkdownWatcher(): void {
function startMarkdownWatcher (line 199) | function startMarkdownWatcher(): void {
FILE: src/main/storage/providers/sqlite/folders.ts
type FolderOrderSnapshot (line 11) | interface FolderOrderSnapshot {
function createSqliteFoldersStorage (line 16) | function createSqliteFoldersStorage(): FoldersStorage {
FILE: src/main/storage/providers/sqlite/snippets.ts
type SnippetRow (line 16) | interface SnippetRow {
function createSqliteSnippetsStorage (line 29) | function createSqliteSnippetsStorage(): SnippetsStorage {
FILE: src/main/storage/providers/sqlite/tags.ts
function createSqliteTagsStorage (line 4) | function createSqliteTagsStorage(): TagsStorage {
FILE: src/main/store/constants.ts
constant APP_DEFAULTS (line 3) | const APP_DEFAULTS = {
constant EDITOR_DEFAULTS (line 11) | const EDITOR_DEFAULTS: EditorSettings = {
FILE: src/main/store/module/preferences.ts
function detectDefaultEngine (line 18) | function detectDefaultEngine(): 'sqlite' | 'markdown' {
FILE: src/main/store/types/index.ts
type AppStore (line 3) | interface AppStore {
type EditorSettings (line 24) | interface EditorSettings {
type MarkdownSettings (line 36) | interface MarkdownSettings {
type StorageSettings (line 40) | interface StorageSettings {
type BackupSettings (line 45) | interface BackupSettings {
type PreferencesStore (line 53) | interface PreferencesStore {
type MathSheet (line 64) | interface MathSheet {
type MathNotebookStore (line 72) | interface MathNotebookStore {
type CurrencyRatesCache (line 77) | interface CurrencyRatesCache {
type CurrencyRatesStore (line 82) | interface CurrencyRatesStore {
type Store (line 86) | interface Store {
FILE: src/main/store/types/theme.ts
type ThemeType (line 1) | type ThemeType = 'light' | 'dark'
type ThemeColors (line 3) | type ThemeColors = Record<string, string>
type ThemeEditorColors (line 5) | type ThemeEditorColors = Record<string, string>
type ThemeFile (line 7) | interface ThemeFile {
type ThemeListItem (line 15) | interface ThemeListItem {
FILE: src/main/types/index.ts
type EventCallback (line 5) | interface EventCallback {
type DBQueryArgs (line 9) | interface DBQueryArgs {
type Window (line 15) | interface Window {
type IpcMain (line 36) | interface IpcMain {
FILE: src/main/types/ipc.ts
type CombineWith (line 3) | type CombineWith<T extends string, U extends string> = `${U}:${T}`
type MainMenuAction (line 5) | type MainMenuAction =
type DBAction (line 27) | type DBAction =
type SystemAction (line 42) | type SystemAction =
type PrettierAction (line 52) | type PrettierAction = 'format'
type FsAction (line 53) | type FsAction = 'assets'
type ThemeAction (line 54) | type ThemeAction = 'list' | 'get' | 'open-dir' | 'create-template' | 'ch...
type SpacesAction (line 55) | type SpacesAction = 'math:read' | 'math:write'
type MainMenuChannel (line 57) | type MainMenuChannel = CombineWith<MainMenuAction, 'main-menu'>
type DBChannel (line 58) | type DBChannel = CombineWith<DBAction, 'db'>
type SystemChannel (line 59) | type SystemChannel = CombineWith<SystemAction, 'system'>
type PrettierChannel (line 60) | type PrettierChannel = CombineWith<PrettierAction, 'prettier'>
type FsChannel (line 61) | type FsChannel = CombineWith<FsAction, 'fs'>
type ThemeChannel (line 62) | type ThemeChannel = CombineWith<ThemeAction, 'theme'>
type SpacesChannel (line 63) | type SpacesChannel = CombineWith<SpacesAction, 'spaces'>
type Channel (line 65) | type Channel =
type DialogOptions (line 74) | interface DialogOptions {
type PrettierOptions (line 79) | interface PrettierOptions {
type FsAssetsOptions (line 84) | interface FsAssetsOptions {
FILE: src/main/updates/index.ts
type GitHubRelease (line 6) | interface GitHubRelease {
constant INTERVAL (line 10) | const INTERVAL = 1000 * 60 * 60 * 3 // 3 часа
function parseVersion (line 15) | function parseVersion(rawVersion: string): [number, number, number] | nu...
function compareVersions (line 30) | function compareVersions(
function getLatestReleaseVersion (line 45) | function getLatestReleaseVersion(releases: GitHubRelease[]) {
function isNewerVersion (line 65) | function isNewerVersion(versionToCompare: string) {
function fetchUpdates (line 74) | async function fetchUpdates() {
function notifyAboutUpdate (line 102) | async function notifyAboutUpdate() {
function checkForUpdates (line 117) | function checkForUpdates() {
FILE: src/main/utils/index.ts
function log (line 3) | function log(context: string, error: unknown): void {
function importEsm (line 16) | function importEsm(specifier: string) {
FILE: src/renderer/components/editor/grammars/index.ts
function loadGrammars (line 6) | async function loadGrammars() {
FILE: src/renderer/components/editor/json-visualizer/composables/useLayout.ts
function useLayout (line 12) | function useLayout() {
FILE: src/renderer/components/editor/json-visualizer/types/index.ts
type NodeData (line 3) | interface NodeData {
type GraphData (line 11) | interface GraphData {
type NodeType (line 16) | type NodeType = 'object' | 'array' | 'primitive'
type ValueType (line 17) | type ValueType =
type LayoutDirection (line 25) | type LayoutDirection = 'TB' | 'LR'
FILE: src/renderer/components/editor/json-visualizer/utils/json-parser.ts
function generateNodeId (line 6) | function generateNodeId(): string {
function getValueType (line 10) | function getValueType(value: any): ValueType {
function createNode (line 20) | function createNode(
function createEdge (line 34) | function createEdge(sourceId: string, targetId: string): Edge {
function parseValue (line 44) | function parseValue(
function parseJsonToGraph (line 107) | function parseJsonToGraph(jsonData: any): GraphData {
FILE: src/renderer/components/editor/markdown/composables/useMarkdown.ts
function onZoom (line 10) | function onZoom(type: 'in' | 'out') {
function useMarkdown (line 32) | function useMarkdown() {
FILE: src/renderer/components/editor/types/index.ts
type Language (line 1) | type Language =
type LanguageOption (line 193) | interface LanguageOption {
type GrammarOption (line 200) | interface GrammarOption {
FILE: src/renderer/components/math-notebook/math-editor-highlight.ts
function escapeHtml (line 47) | function escapeHtml(text: string) {
function collectAssignedVariables (line 56) | function collectAssignedVariables(source: string) {
function resolveTokenClass (line 71) | function resolveTokenClass(token: string, assignedVariables: Set<string>) {
function highlightLine (line 97) | function highlightLine(line: string, assignedVariables: Set<string>) {
function renderMathEditorHighlight (line 126) | function renderMathEditorHighlight(source: string) {
FILE: src/renderer/components/preferences/keys.ts
type PreferencesInjection (line 3) | interface PreferencesInjection {
FILE: src/renderer/components/sidebar/folders/types/index.ts
type Position (line 3) | type Position = 'after' | 'before' | 'center'
type Node (line 5) | interface Node extends FoldersItem {
type Store (line 9) | interface Store {
FILE: src/renderer/components/ui/folder-icon/variants.ts
type Variants (line 16) | type Variants = VariantProps<typeof variants>
FILE: src/renderer/components/ui/input-tags/types/index.ts
type TagItem (line 1) | interface TagItem {
FILE: src/renderer/components/ui/input/variants.ts
type Variants (line 19) | type Variants = VariantProps<typeof variants>
FILE: src/renderer/components/ui/shadcn/button/index.ts
type ButtonVariants (line 36) | type ButtonVariants = VariantProps<typeof buttonVariants>
FILE: src/renderer/components/ui/shadcn/input/index.ts
type InputVariants (line 23) | type InputVariants = VariantProps<typeof inputVariants>
FILE: src/renderer/components/ui/shadcn/textarea/index.ts
type TextareaVariants (line 23) | type TextareaVariants = VariantProps<typeof textareaVariants>
FILE: src/renderer/components/ui/sonner/types.ts
type Props (line 1) | interface Props {
FILE: src/renderer/components/ui/text/index.ts
type TextVariants (line 44) | type TextVariants = VariantProps<typeof textVariants>
FILE: src/renderer/components/ui/textarea/variants.ts
type Variants (line 21) | type Variants = VariantProps<typeof variants>
FILE: src/renderer/components/ui/tree/composables.ts
constant TREE_DND_TYPE (line 4) | const TREE_DND_TYPE = 'application/x-tree-node-ids'
function flattenTree (line 49) | function flattenTree(nodes: TreeNode[] | undefined): TreeNode[] {
FILE: src/renderer/components/ui/tree/keys.ts
type TreeInjection (line 4) | interface TreeInjection {
FILE: src/renderer/components/ui/tree/types.ts
type TreeNode (line 1) | interface TreeNode {
type DropPosition (line 8) | type DropPosition = 'after' | 'before' | 'center'
type DragStore (line 10) | interface DragStore {
FILE: src/renderer/composables/__tests__/useMathEngine.test.ts
constant TEST_CURRENCY_RATES (line 5) | const TEST_CURRENCY_RATES = {
function evalLine (line 15) | function evalLine(expr: string) {
function evalLines (line 19) | function evalLines(text: string) {
function expectValue (line 23) | function expectValue(expr: string, expected: string) {
function expectNumericClose (line 28) | function expectNumericClose(expr: string, expected: number, precision = ...
function expectDateWithYear (line 34) | function expectDateWithYear(expr: string, year: string) {
function expectCloseInResults (line 869) | function expectCloseInResults(
FILE: src/renderer/composables/math-notebook/math-engine/constants.ts
constant SUPPORTED_CURRENCY_CODES (line 22) | const SUPPORTED_CURRENCY_CODES = [
constant DEFAULT_EM_IN_PX (line 224) | const DEFAULT_EM_IN_PX = 16
constant DEFAULT_PPI (line 225) | const DEFAULT_PPI = 96
constant MATH_UNARY_FUNCTIONS (line 226) | const MATH_UNARY_FUNCTIONS = [
constant TIME_UNIT_TOKEN_MAP (line 246) | const TIME_UNIT_TOKEN_MAP: Record<string, string> = {
constant HUMANIZED_UNIT_NAMES (line 263) | const HUMANIZED_UNIT_NAMES: Record<
constant MONTH_NAME_TO_INDEX (line 286) | const MONTH_NAME_TO_INDEX: Record<string, number> = {
FILE: src/renderer/composables/math-notebook/math-engine/css.ts
function normalizeCssUnit (line 5) | function normalizeCssUnit(unit: string) {
function parseCssQuantity (line 20) | function parseCssQuantity(text: string) {
function toPx (line 34) | function toPx(
function fromPx (line 52) | function fromPx(pxValue: number, targetUnit: string, cssContext: CssCont...
function formatNumberValue (line 65) | function formatNumberValue(value: number) {
function formatUnitValue (line 71) | function formatUnitValue(value: number, unit: string) {
function evaluateCssLine (line 75) | function evaluateCssLine(
FILE: src/renderer/composables/math-notebook/math-engine/mathInstance.ts
function createUnitSafe (line 3) | function createUnitSafe(
function createMathInstance (line 16) | function createMathInstance(currencyRates: Record<string, number>) {
FILE: src/renderer/composables/math-notebook/math-engine/preprocess.ts
function preprocessLabels (line 11) | function preprocessLabels(line: string): string {
function preprocessQuotedText (line 18) | function preprocessQuotedText(line: string): string {
function sanitizeForCurrencyDetection (line 42) | function sanitizeForCurrencyDetection(line: string) {
function preprocessGroupedNumbers (line 46) | function preprocessGroupedNumbers(line: string): string {
function preprocessDegreeSigns (line 51) | function preprocessDegreeSigns(line: string): string {
function preprocessTimeUnits (line 55) | function preprocessTimeUnits(line: string): string {
function normalizePowerUnit (line 62) | function normalizePowerUnit(unit: string) {
function preprocessUnitAliases (line 98) | function preprocessUnitAliases(line: string): string {
function preprocessAreaVolumeAliases (line 105) | function preprocessAreaVolumeAliases(line: string): string {
function preprocessFunctionExpression (line 133) | function preprocessFunctionExpression(expression: string): string {
function preprocessFunctionSyntax (line 167) | function preprocessFunctionSyntax(line: string): string {
function preprocessFunctionConversions (line 181) | function preprocessFunctionConversions(line: string): string {
function preprocessCurrencySymbols (line 195) | function preprocessCurrencySymbols(line: string): string {
function preprocessCurrencyWords (line 215) | function preprocessCurrencyWords(line: string): string {
function preprocessScales (line 240) | function preprocessScales(line: string): string {
function preprocessStackedUnits (line 249) | function preprocessStackedUnits(line: string): string {
function preprocessImplicitMultiplication (line 274) | function preprocessImplicitMultiplication(line: string): string {
function preprocessWordOperators (line 278) | function preprocessWordOperators(line: string): string {
function preprocessPercentages (line 295) | function preprocessPercentages(line: string): string {
function preprocessConversions (line 332) | function preprocessConversions(line: string): string {
function splitByKeyword (line 336) | function splitByKeyword(line: string, keywords: string[]) {
function hasCurrencyExpression (line 352) | function hasCurrencyExpression(line: string) {
function preprocessMathExpression (line 389) | function preprocessMathExpression(line: string) {
FILE: src/renderer/composables/math-notebook/math-engine/timeZones.ts
type ParsedTemporalExpression (line 5) | interface ParsedTemporalExpression {
type TimeZoneDifferenceOptions (line 10) | interface TimeZoneDifferenceOptions {
function getLocalTimeZone (line 15) | function getLocalTimeZone() {
function getSupportedTimeZones (line 19) | function getSupportedTimeZones() {
function normalizeTimeZoneInput (line 26) | function normalizeTimeZoneInput(value: string) {
function resolveTimeZone (line 30) | function resolveTimeZone(value: string) {
function getTimeZoneParts (line 49) | function getTimeZoneParts(date: Date, timeZone: string) {
function zonedDateToUtc (line 75) | function zonedDateToUtc(
function formatTimeZoneDate (line 119) | function formatTimeZoneDate(date: Date, timeZone: string, includeYear = ...
function getTimeZoneOffsetMinutes (line 131) | function getTimeZoneOffsetMinutes(date: Date, timeZone: string) {
function parseClockParts (line 145) | function parseClockParts(value: string) {
function splitTemporalExpressionWithLeadingTime (line 171) | function splitTemporalExpressionWithLeadingTime(value: string) {
function getCurrentDatePartsInTimeZone (line 192) | function getCurrentDatePartsInTimeZone(now: Date, timeZone: string) {
function shiftDateParts (line 201) | function shiftDateParts(
function parseDateParts (line 215) | function parseDateParts(value: string, now: Date, timeZone: string) {
function resolveTrailingTimeZone (line 281) | function resolveTrailingTimeZone(value: string) {
function parseTemporalBody (line 300) | function parseTemporalBody(
function parseZonedTemporalExpression (line 385) | function parseZonedTemporalExpression(value: string, now: Date) {
function parseExplicitLocalTemporalExpression (line 394) | function parseExplicitLocalTemporalExpression(value: string, now: Date) {
function resolveCurrentTimeZoneExpression (line 452) | function resolveCurrentTimeZoneExpression(line: string) {
function evaluateTimeZoneDifferenceLine (line 483) | function evaluateTimeZoneDifferenceLine(
function evaluateTimeZoneLine (line 519) | function evaluateTimeZoneLine(
FILE: src/renderer/composables/math-notebook/math-engine/types.ts
type LineResult (line 1) | interface LineResult {
type CurrencyServiceState (line 16) | type CurrencyServiceState = 'loading' | 'ready' | 'unavailable'
type CssContext (line 18) | interface CssContext {
type SpecialLineResult (line 23) | interface SpecialLineResult {
FILE: src/renderer/composables/math-notebook/useMathEngine.ts
type FormatDirective (line 26) | interface FormatDirective {
function detectFormatDirective (line 36) | function detectFormatDirective(line: string): FormatDirective {
function applyFormat (line 58) | function applyFormat(
function humanizeFormattedUnits (line 101) | function humanizeFormattedUnits(value: string) {
function formatResult (line 121) | function formatResult(result: any): LineResult {
function getNumericValue (line 170) | function getNumericValue(result: any): number | null {
function splitTopLevelAddSub (line 190) | function splitTopLevelAddSub(expression: string) {
function evaluateDateLikeExpression (line 249) | function evaluateDateLikeExpression(
function evaluateDurationMilliseconds (line 276) | function evaluateDurationMilliseconds(
function evaluateDateArithmeticLine (line 298) | function evaluateDateArithmeticLine(
function evaluateDateAssignmentLine (line 370) | function evaluateDateAssignmentLine(
function useMathEngine (line 407) | function useMathEngine() {
FILE: src/renderer/composables/math-notebook/useMathNotebook.ts
function escapeRegExp (line 7) | function escapeRegExp(value: string): string {
function getNextIndexedName (line 11) | function getNextIndexedName(baseName: string, existingNames: string[]): ...
function persist (line 43) | function persist() {
function loadFromDisk (line 53) | async function loadFromDisk() {
function useMathNotebook (line 59) | function useMathNotebook() {
FILE: src/renderer/composables/types/index.ts
type StateAction (line 13) | type StateAction = 'beforeSearch'
type SavedState (line 15) | interface SavedState {
FILE: src/renderer/composables/useApp.ts
function saveStateSnapshot (line 38) | function saveStateSnapshot(action: StateAction): void {
function restoreStateSnapshot (line 49) | function restoreStateSnapshot(action: StateAction): void {
function useApp (line 79) | function useApp() {
FILE: src/renderer/composables/useCopyToClipboard.ts
function useCopyToClipboard (line 5) | function useCopyToClipboard() {
FILE: src/renderer/composables/useDialog.ts
type DialogOptions (line 14) | interface DialogOptions {
function useDialog (line 22) | function useDialog() {
FILE: src/renderer/composables/useEditor.ts
function useEditor (line 18) | function useEditor() {
FILE: src/renderer/composables/useFolders.ts
function escapeRegExp (line 20) | function escapeRegExp(value: string): string {
function getNextIndexedName (line 24) | function getNextIndexedName(baseName: string, existingNames: string[]): ...
function getNextUntitledFolderName (line 48) | function getNextUntitledFolderName(parentId?: number): string {
function flattenFolderTree (line 57) | function flattenFolderTree(
function sortFolderIdsByTreeOrder (line 88) | function sortFolderIdsByTreeOrder(ids: number[]) {
function syncSelectedFoldersWithTree (line 107) | function syncSelectedFoldersWithTree() {
function clearFolderSelection (line 162) | function clearFolderSelection() {
function setFolderSelection (line 169) | function setFolderSelection(ids: number[]) {
function applySingleFolderSelection (line 181) | function applySingleFolderSelection(folderId: number) {
function applyRangeFolderSelection (line 187) | function applyRangeFolderSelection(folderId: number) {
function applyToggleFolderSelection (line 207) | function applyToggleFolderSelection(folderId: number) {
function findParentFolderIds (line 230) | function findParentFolderIds(folderId: number, allFolders: any[]): numbe...
function ensureSelectedFolderIsVisible (line 245) | async function ensureSelectedFolderIsVisible() {
function getFolderByIdFromTree (line 293) | function getFolderByIdFromTree(
function getFolders (line 313) | async function getFolders(shouldEnsureVisibility = true) {
function createFolder (line 328) | async function createFolder(parentId?: number) {
function createFolderAndSelect (line 351) | async function createFolderAndSelect(parentId?: number) {
function updateFolder (line 363) | async function updateFolder(folderId: number, data: FoldersUpdate) {
function deleteFolder (line 379) | async function deleteFolder(folderId: number, shouldRefresh = true) {
type SelectFolderOptions (line 392) | interface SelectFolderOptions {
function selectFolder (line 397) | async function selectFolder(
function useFolders (line 422) | function useFolders() {
FILE: src/renderer/composables/useSnippetScroller.ts
type SnippetScroller (line 1) | interface SnippetScroller {
function setSnippetScrollerRef (line 8) | function setSnippetScrollerRef(value: SnippetScroller | null) {
function scrollToSnippetIndex (line 18) | function scrollToSnippetIndex(index: number) {
FILE: src/renderer/composables/useSnippetUpdate.ts
type UpdateQueueItem (line 9) | interface UpdateQueueItem {
type UpdateContentQueueItem (line 14) | interface UpdateContentQueueItem {
constant UPDATE_DEBOUNCE_TIME (line 20) | const UPDATE_DEBOUNCE_TIME = 500
function getContentUpdateKey (line 41) | function getContentUpdateKey(snippetId: number, contentId: number) {
function flushContentUpdate (line 45) | async function flushContentUpdate(key: string) {
function scheduleContentUpdate (line 69) | function scheduleContentUpdate(key: string) {
function addToUpdateQueue (line 83) | function addToUpdateQueue(snippetId: number, data: SnippetsUpdate) {
function addToUpdateContentQueue (line 90) | function addToUpdateContentQueue(
function getPendingContentUpdate (line 106) | function getPendingContentUpdate(snippetId: number, contentId: number) {
function isContentUpdateBusy (line 111) | function isContentUpdateBusy(snippetId: number, contentId: number) {
function hasBusyContentUpdates (line 118) | function hasBusyContentUpdates() {
function useSnippetUpdate (line 124) | function useSnippetUpdate() {
FILE: src/renderer/composables/useSnippets.ts
function escapeRegExp (line 32) | function escapeRegExp(value: string): string {
function getNextIndexedName (line 36) | function getNextIndexedName(baseName: string, existingNames: string[]): ...
function getSnippetNamesForCreate (line 60) | async function getSnippetNamesForCreate(
function getSnippets (line 142) | async function getSnippets(query?: SnippetsQuery) {
function createSnippet (line 155) | async function createSnippet() {
function createSnippetAndSelect (line 191) | async function createSnippetAndSelect() {
function duplicateSnippet (line 197) | async function duplicateSnippet(snippetId: number) {
function createSnippetContent (line 232) | async function createSnippetContent(snippetId: number) {
function addFragment (line 255) | async function addFragment() {
function updateSnippet (line 267) | async function updateSnippet(snippetId: number, data: SnippetsUpdate) {
function updateSnippets (line 273) | async function updateSnippets(snippetIds: number[], data: SnippetsUpdate...
function updateSnippetContent (line 280) | async function updateSnippetContent(
function deleteSnippet (line 294) | async function deleteSnippet(snippetId: number) {
function deleteSnippets (line 300) | async function deleteSnippets(snippetIds: number[]) {
function deleteSnippetContent (line 307) | async function deleteSnippetContent(snippetId: number, contentId: number) {
function addTagToSnippet (line 321) | async function addTagToSnippet(tagId: number, snippetId: number) {
function deleteTagFromSnippet (line 334) | async function deleteTagFromSnippet(tagId: number, snippetId: number) {
function emptyTrash (line 347) | async function emptyTrash() {
function selectSnippet (line 361) | function selectSnippet(snippetId: number, withShift = false) {
function selectFirstSnippet (line 395) | function selectFirstSnippet() {
function clearSnippets (line 417) | function clearSnippets() {
function clearSnippetsState (line 422) | function clearSnippetsState() {
function search (line 429) | async function search() {
function selectSearchSnippet (line 449) | function selectSearchSnippet(index: number) {
function clearSearch (line 464) | function clearSearch(restoreState = false) {
function useSnippets (line 474) | function useSnippets() {
FILE: src/renderer/composables/useSonner.ts
function useSonner (line 5) | function useSonner() {
FILE: src/renderer/composables/useStorageMutation.ts
constant MUTATION_COOLDOWN_MS (line 1) | const MUTATION_COOLDOWN_MS = 1500
constant EDIT_DEBOUNCE_MS (line 2) | const EDIT_DEBOUNCE_MS = 1000
function markPersistedStorageMutation (line 7) | function markPersistedStorageMutation(): void {
function markUserEdit (line 11) | function markUserEdit(): void {
function shouldSkipStorageSyncRefresh (line 15) | function shouldSkipStorageSyncRefresh(): boolean {
function useStorageMutation (line 29) | function useStorageMutation() {
FILE: src/renderer/composables/useTags.ts
function getTags (line 7) | async function getTags() {
function addTag (line 21) | async function addTag(tagName: string) {
function deleteTag (line 27) | async function deleteTag(tagId: number) {
function useTags (line 37) | function useTags() {
FILE: src/renderer/composables/useTheme.ts
type BuiltInThemeId (line 10) | type BuiltInThemeId = 'light' | 'dark' | 'auto'
constant BUILT_IN_THEMES (line 12) | const BUILT_IN_THEMES = new Set<BuiltInThemeId>(['light', 'dark', 'auto'])
constant CUSTOM_STYLE_ID (line 13) | const CUSTOM_STYLE_ID = 'masscode-custom-theme'
constant LIGHT_EDITOR_THEME (line 14) | const LIGHT_EDITOR_THEME = 'neo'
constant DARK_EDITOR_THEME (line 15) | const DARK_EDITOR_THEME = 'oceanic-next'
constant TOKEN_MIGRATION_MAP (line 17) | const TOKEN_MIGRATION_MAP: Record<string, string> = {
constant DROPPED_TOKENS (line 30) | const DROPPED_TOKENS = new Set(['color-button-hover'])
function persistThemePreference (line 47) | function persistThemePreference(id: string): void {
function isBuiltInTheme (line 55) | function isBuiltInTheme(id: string): id is BuiltInThemeId {
function getBuiltInThemeType (line 59) | function getBuiltInThemeType(id: BuiltInThemeId): ThemeType {
function removeCustomThemeStyle (line 71) | function removeCustomThemeStyle(): void {
function isValidCssToken (line 79) | function isValidCssToken(token: string): boolean {
function hasCustomEditorColors (line 83) | function hasCustomEditorColors(editorColors?: ThemeEditorColors): boolean {
function buildThemeCss (line 97) | function buildThemeCss(theme: ThemeFile): string {
function applyCustomThemeStyle (line 147) | function applyCustomThemeStyle(theme: ThemeFile): void {
function applyBuiltInTheme (line 163) | function applyBuiltInTheme(id: BuiltInThemeId): void {
function applyCustomTheme (line 174) | async function applyCustomTheme(id: string): Promise<boolean> {
function fallbackToAuto (line 192) | function fallbackToAuto(): void {
function setTheme (line 196) | async function setTheme(id: string): Promise<void> {
function loadCustomThemes (line 209) | async function loadCustomThemes(): Promise<void> {
function handleThemesChanged (line 222) | async function handleThemesChanged(): Promise<void> {
function processThemeReloadQueue (line 241) | async function processThemeReloadQueue(): Promise<void> {
function initTheme (line 278) | async function initTheme(): Promise<void> {
function onThemeChanged (line 283) | function onThemeChanged() {
function useTheme (line 296) | function useTheme() {
FILE: src/renderer/ipc/index.ts
function registerIPCListeners (line 4) | function registerIPCListeners() {
FILE: src/renderer/ipc/listeners/main-menu.ts
function registerMainMenuListeners (line 16) | function registerMainMenuListeners() {
FILE: src/renderer/ipc/listeners/system.ts
type ReleaseNoticePayload (line 31) | interface ReleaseNoticePayload {
function refreshCodeSpace (line 35) | async function refreshCodeSpace() {
function refreshAfterStorageSync (line 54) | async function refreshAfterStorageSync() {
function scheduleStorageSyncRefresh (line 70) | function scheduleStorageSyncRefresh() {
function registerSystemListeners (line 88) | function registerSystemListeners() {
FILE: src/renderer/services/api/generated/index.ts
type SnippetContentsAdd (line 12) | interface SnippetContentsAdd {
type SnippetContentsUpdate (line 18) | interface SnippetContentsUpdate {
type SnippetsAdd (line 24) | interface SnippetsAdd {
type SnippetsUpdate (line 29) | interface SnippetsUpdate {
type SnippetsCountsResponse (line 45) | interface SnippetsCountsResponse {
type SnippetsQuery (line 50) | interface SnippetsQuery {
type SnippetsResponse (line 73) | type SnippetsResponse = {
type FoldersAdd (line 97) | interface FoldersAdd {
type FoldersResponse (line 102) | type FoldersResponse = {
type FoldersUpdate (line 114) | interface FoldersUpdate {
type FoldersTreeResponse (line 127) | type FoldersTreeResponse = {
type TagsAdd (line 140) | interface TagsAdd {
type TagsResponse (line 144) | type TagsResponse = {
type TagsAddResponse (line 149) | interface TagsAddResponse {
type QueryParamsType (line 153) | type QueryParamsType = Record<string | number, any>;
type ResponseFormat (line 154) | type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
type FullRequestParams (line 156) | interface FullRequestParams extends Omit<RequestInit, "body"> {
type RequestParams (line 175) | type RequestParams = Omit<
type ApiConfig (line 180) | interface ApiConfig<SecurityDataType = unknown> {
type HttpResponse (line 189) | interface HttpResponse<D extends unknown, E extends unknown = unknown>
type CancelToken (line 195) | type CancelToken = Symbol | string | number;
type ContentType (line 197) | enum ContentType {
class HttpClient (line 204) | class HttpClient<SecurityDataType = unknown> {
method constructor (line 219) | constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {
method encodeQueryParam (line 227) | protected encodeQueryParam(key: string, value: any) {
method addQueryParam (line 232) | protected addQueryParam(query: QueryParamsType, key: string) {
method addArrayQueryParam (line 236) | protected addArrayQueryParam(query: QueryParamsType, key: string) {
method toQueryString (line 241) | protected toQueryString(rawQuery?: QueryParamsType): string {
method addQueryParams (line 255) | protected addQueryParams(rawQuery?: QueryParamsType): string {
method mergeRequestParams (line 285) | protected mergeRequestParams(
class Api (line 403) | class Api<
FILE: src/renderer/services/notifications/donate.ts
constant INTERVAL (line 6) | const INTERVAL = 1000 * 60 * 60 * 3 // 3 часа
function setNextDonateNotification (line 13) | function setNextDonateNotification() {
function initFirstDonateNotification (line 18) | function initFirstDonateNotification() {
function showDonateNotification (line 26) | function showDonateNotification() {
function startNotificationCheck (line 55) | function startNotificationCheck() {
function donateNotification (line 65) | function donateNotification() {
FILE: src/renderer/services/notifications/index.ts
function notifications (line 3) | function notifications() {
FILE: src/renderer/spaceDefinitions.ts
type SpaceId (line 7) | type SpaceId = 'code' | 'tools' | 'math'
type SpaceDefinition (line 9) | interface SpaceDefinition {
function isRouteNameInSpace (line 18) | function isRouteNameInSpace(
function getSpaceDefinitions (line 28) | function getSpaceDefinitions(): SpaceDefinition[] {
function isSpaceRouteName (line 58) | function isSpaceRouteName(
function getActiveSpaceId (line 64) | function getActiveSpaceId(): SpaceId | null {
FILE: src/renderer/utils/index.ts
function cn (line 6) | function cn(...inputs: ClassValue[]) {
function scrollToElement (line 10) | function scrollToElement(selector: string) {
function getContiguousSelection (line 17) | function getContiguousSelection(
Condensed preview — 614 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (9,517K chars).
[
{
"path": ".claude/settings.json",
"chars": 82,
"preview": "{\n \"enabledPlugins\": {\n \"frontend-design@claude-plugins-official\": true\n }\n}\n"
},
{
"path": ".gemini/settings.json",
"chars": 283,
"preview": "{\n \"mcpServers\": {\n \"context7\": {\n \"httpUrl\": \"https://mcp.context7.com/mcp\",\n \"headers\": {\n \"CONTE"
},
{
"path": ".github/FUNDING.yml",
"chars": 805,
"preview": "# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [u"
},
{
"path": ".github/ISSUE_TEMPLATE/bug_report.yml",
"chars": 1949,
"preview": "name: 🐞 Bug report\ndescription: Report an issue with massCode\ntitle: '[Bug]: '\nlabels: [pending triage]\nbody:\n - type: "
},
{
"path": ".github/ISSUE_TEMPLATE/config.yml",
"chars": 222,
"preview": "blank_issues_enabled: false\ncontact_links:\n - name: Questions & Discussions\n url: https://github.com/massCodeIO/mass"
},
{
"path": ".github/PULL_REQUEST_TEMPLATE.md",
"chars": 267,
"preview": "### What kind of change does this PR introduce?\n\n> check at least one\n\n- [ ] Bugfix\n- [ ] Feature\n- [ ] Refactor\n- [ ] O"
},
{
"path": ".github/workflows/build-sponsored.yml",
"chars": 2070,
"preview": "name: Build Sponsored\n\non:\n workflow_dispatch:\n\njobs:\n build-sponsored:\n name: Build Sponsored for ${{ matrix.os }}"
},
{
"path": ".github/workflows/issue-close-require.yml",
"chars": 357,
"preview": "name: Issue Close Require\n\non:\n schedule:\n - cron: '0 0 * * *'\n\njobs:\n close-issues:\n runs-on: ubuntu-latest\n "
},
{
"path": ".github/workflows/issue-labeled.yml",
"chars": 797,
"preview": "name: Issue Labeled\n\non:\n issues:\n types: [labeled]\n\njobs:\n reply-labeled:\n runs-on: ubuntu-latest\n steps:\n\n "
},
{
"path": ".github/workflows/release.yml",
"chars": 3066,
"preview": "name: Release\n\non:\n push:\n tags:\n - 'v*'\n workflow_dispatch:\n inputs:\n tag:\n description: 'Tag "
},
{
"path": ".gitignore",
"chars": 146,
"preview": "dist\nbuild/main\nbuild/renderer\nscripts/build-sponsored.sh\n\nnode_modules\n.DS_Store\ncomponents.d.ts\nauto-imports.d.ts\n.git"
},
{
"path": ".prettierrc",
"chars": 48,
"preview": "{\n \"plugins\": [\"prettier-plugin-tailwindcss\"]\n}"
},
{
"path": "AGENTS.md",
"chars": 10024,
"preview": "# massCode AI Coding Guidelines\n\nYou are an expert Senior Frontend Developer specializing in Electron, Vue 3, and TypeSc"
},
{
"path": "CHANGELOG.md",
"chars": 54507,
"preview": "# [4.4.0](https://github.com/massCodeIO/massCode/compare/v4.3.0...v4.4.0) (2025-12-19)\n\n\n### Bug Fixes\n\n* **devtools:** "
},
{
"path": "CODE_OF_CONDUCT.md",
"chars": 3427,
"preview": "# Code Of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and"
},
{
"path": "CONTRIBUTING.md",
"chars": 1957,
"preview": "Hey there! We are really excited that you are interested in contributing. Before submitting your contribution, please ma"
},
{
"path": "LICENSE",
"chars": 34522,
"preview": " GNU AFFERO GENERAL PUBLIC LICENSE\n Version 3, 19 November 2007\n\n Copyright (C)"
},
{
"path": "README.md",
"chars": 10734,
"preview": "<p align=\"center\">\n <img src=\"./.github/assets/logo.png\" alt=\"massCode\" width=\"150\">\n</p>\n\n<h1 align=\"center\">massCode<"
},
{
"path": "build/entitlements.mac.inherit.plist",
"chars": 416,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "commitlint.config.js",
"chars": 373,
"preview": "module.exports = {\n extends: ['@commitlint/config-conventional'],\n rules: {\n 'type-enum': [\n 2,\n 'always'"
},
{
"path": "components.json",
"chars": 466,
"preview": "{\n \"$schema\": \"https://shadcn-vue.com/schema.json\",\n \"style\": \"new-york\",\n \"typescript\": true,\n \"tailwind\": {\n \"c"
},
{
"path": "electron-builder.json",
"chars": 1054,
"preview": "{\n \"$schema\": \"https://json.schemastore.org/electron-builder\",\n \"appId\": \"io.masscode.app\",\n \"productName\": \"massCode"
},
{
"path": "electron-builder.sponsored.json",
"chars": 1146,
"preview": "{\n \"$schema\": \"https://json.schemastore.org/electron-builder\",\n \"appId\": \"io.masscode.app\",\n \"productName\": \"massCode"
},
{
"path": "eslint.config.js",
"chars": 255,
"preview": "const antfu = require('@antfu/eslint-config').default\n\nmodule.exports = antfu({\n rules: {\n 'vue/max-attributes-per-l"
},
{
"path": "nodemon.json",
"chars": 161,
"preview": "{\n \"watch\": [\"src/main\"],\n \"ext\": \"ts,json\",\n \"ignore\": [\n \"src/main/i18n/locales/**/*.json\"\n ],\n \"exec\": \"tsc -"
},
{
"path": "package.json",
"chars": 5878,
"preview": "{\n \"name\": \"masscode\",\n \"version\": \"4.7.1\",\n \"description\": \"A free and open source code snippets manager for develop"
},
{
"path": "postcss.config.js",
"chars": 71,
"preview": "module.exports = {\n plugins: {\n '@tailwindcss/postcss': {},\n },\n}\n"
},
{
"path": "scripts/api-generate.js",
"chars": 720,
"preview": "const child_process = require('node:child_process')\nconst { styleText } = require('node:util')\nconst Store = require('el"
},
{
"path": "scripts/bench-load-test.js",
"chars": 7160,
"preview": "#!/usr/bin/env node\n\nconst { performance } = require('node:perf_hooks')\nconst process = require('node:process')\n\nfunctio"
},
{
"path": "scripts/bench-seed.js",
"chars": 10622,
"preview": "#!/usr/bin/env node\n\nconst { performance } = require('node:perf_hooks')\nconst process = require('node:process')\n\nconst A"
},
{
"path": "scripts/copy-locales.js",
"chars": 928,
"preview": "const fs = require('node:fs')\nconst path = require('node:path')\nconst { styleText } = require('node:util')\n\nconst source"
},
{
"path": "src/main/api/dto/common/query.ts",
"chars": 254,
"preview": "import { t } from 'elysia'\n\nconst Order = {\n ASC: 'ASC',\n DESC: 'DESC',\n} as const\n\nexport const commonQuery = t.Optio"
},
{
"path": "src/main/api/dto/common/response.ts",
"chars": 116,
"preview": "import { t } from 'elysia'\n\nexport const commonAddResponse = t.Object({\n id: t.Union([t.Number(), t.BigInt()]),\n})\n"
},
{
"path": "src/main/api/dto/folders.ts",
"chars": 1342,
"preview": "import Elysia, { t } from 'elysia'\n\nconst foldersAdd = t.Object({\n name: t.String(),\n parentId: t.Optional(t.Union([t."
},
{
"path": "src/main/api/dto/snippet-contents.ts",
"chars": 358,
"preview": "import Elysia, { t } from 'elysia'\n\nconst snippetContentsAdd = t.Object({\n snippetId: t.Number(),\n label: t.Union([t.S"
},
{
"path": "src/main/api/dto/snippets.ts",
"chars": 2247,
"preview": "import Elysia, { t } from 'elysia'\nimport { commonQuery } from './common/query'\n\nconst snippetsAdd = t.Object({\n name: "
},
{
"path": "src/main/api/dto/tags.ts",
"chars": 459,
"preview": "import Elysia, { t } from 'elysia'\n\nconst tagsAdd = t.Object({\n name: t.String(),\n})\n\nconst tagsItem = t.Object({\n id:"
},
{
"path": "src/main/api/index.ts",
"chars": 1103,
"preview": "import { cors } from '@elysiajs/cors'\nimport { swagger } from '@elysiajs/swagger'\nimport { app as electronApp } from 'el"
},
{
"path": "src/main/api/routes/folders.ts",
"chars": 3717,
"preview": "import type { FoldersResponse, FoldersTree } from '../dto/folders'\nimport { Elysia } from 'elysia'\nimport { useStorage }"
},
{
"path": "src/main/api/routes/snippets.ts",
"chars": 7410,
"preview": "import type { SnippetsCountsResponse, SnippetsResponse } from '../dto/snippets'\nimport Elysia from 'elysia'\nimport { use"
},
{
"path": "src/main/api/routes/system.ts",
"chars": 863,
"preview": "import { Elysia } from 'elysia'\nimport { resetRuntimeCache } from '../../storage/providers/markdown'\nimport { getVaultPa"
},
{
"path": "src/main/api/routes/tags.ts",
"chars": 1232,
"preview": "import type { TagsResponse } from '../dto/tags'\nimport Elysia from 'elysia'\nimport { useStorage } from '../../storage'\ni"
},
{
"path": "src/main/currencyRates.ts",
"chars": 1784,
"preview": "import { store } from './store'\n\nconst CACHE_TTL = 1000 * 60 * 60\n\ninterface CurrencyRatesApiResponse {\n result?: strin"
},
{
"path": "src/main/db/index.ts",
"chars": 11903,
"preview": "/* eslint-disable node/prefer-global/process */\nimport type { Backup } from './types'\nimport path from 'node:path'\nimpor"
},
{
"path": "src/main/db/migrate.ts",
"chars": 4323,
"preview": "// import type Database from 'better-sqlite3'\nimport type { JSONDB } from './types'\nimport { clearDB, useDB } from '.'\n\n"
},
{
"path": "src/main/db/types/index.ts",
"chars": 800,
"preview": "interface Folder {\n id: string\n name: string\n defaultLanguage: string | null\n parentId: string | null\n isOpen: bool"
},
{
"path": "src/main/i18n/index.ts",
"chars": 956,
"preview": "import { lstatSync, readdirSync } from 'node:fs'\nimport { join } from 'node:path'\nimport i18next from 'i18next'\nimport B"
},
{
"path": "src/main/i18n/language.ts",
"chars": 390,
"preview": "export const language = {\n cs_CZ: 'Čeština',\n de_DE: 'Deutsch',\n el_GR: 'Ελληνικά',\n en_US: 'English',\n es_ES: 'Esp"
},
{
"path": "src/main/i18n/locales/README.md",
"chars": 2817,
"preview": "# Locales\n\n## File Structure\n\nLocales are stored in directories named according to the [BCP 47 language tag standard](ht"
},
{
"path": "src/main/i18n/locales/cs_CZ/devtools.json",
"chars": 6359,
"preview": "{\n \"label\": \"Vývojářské nástroje\",\n \"generators\": {\n \"label\": \"Generátory\",\n \"lorem\": {\n \"label\": \"Generáto"
},
{
"path": "src/main/i18n/locales/cs_CZ/menu.json",
"chars": 2117,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Nastavení\",\n \"devtools\": \"Vývojářské nástroje\",\n \"update"
},
{
"path": "src/main/i18n/locales/cs_CZ/messages.json",
"chars": 2933,
"preview": "{\n \"confirm\": {\n \"delete\": \"Opravdu chcete smazat \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"Opravdu chcete trvale sm"
},
{
"path": "src/main/i18n/locales/cs_CZ/preferences.json",
"chars": 1933,
"preview": "{\n \"label\": \"Předvolby\",\n \"storage\": {\n \"section\": {\n \"main\": \"Hlavní\",\n \"backup\": \"Záloha\"\n },\n \"l"
},
{
"path": "src/main/i18n/locales/cs_CZ/ui.json",
"chars": 3112,
"preview": "{\n \"total\": \"Celkem\",\n \"line\": \"Řádek\",\n \"column\": \"Sloupec\",\n \"fragment\": \"Fragment\",\n \"path\": \"Cesta\",\n \"button\""
},
{
"path": "src/main/i18n/locales/de_DE/devtools.json",
"chars": 6483,
"preview": "{\n \"label\": \"Entwicklertools\",\n \"generators\": {\n \"label\": \"Generatoren\",\n \"lorem\": {\n \"label\": \"Lorem Ipsum"
},
{
"path": "src/main/i18n/locales/de_DE/menu.json",
"chars": 2067,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Einstellungen\",\n \"devtools\": \"Entwicklerwerkzeuge\",\n \"up"
},
{
"path": "src/main/i18n/locales/de_DE/messages.json",
"chars": 2944,
"preview": "{\n \"confirm\": {\n \"delete\": \"Sind Sie sicher, dass Sie \\\"{{name}}\\\" löschen möchten?\",\n \"deletePermanently\": \"Sind"
},
{
"path": "src/main/i18n/locales/de_DE/preferences.json",
"chars": 1346,
"preview": "{\n \"label\": \"Einstellungen\",\n \"storage\": {\n \"label\": \"Speicher\",\n \"migrate\": \"Migrieren\",\n \"count\": \"Anzahl\","
},
{
"path": "src/main/i18n/locales/de_DE/ui.json",
"chars": 3028,
"preview": "{\n \"total\": \"Gesamt\",\n \"line\": \"Zeile\",\n \"column\": \"Spalte\",\n \"fragment\": \"Fragment\",\n \"path\": \"Pfad\",\n \"button\": "
},
{
"path": "src/main/i18n/locales/el_GR/devtools.json",
"chars": 6642,
"preview": "{\n \"label\": \"Εργαλεία Προγραμματιστή\",\n \"generators\": {\n \"label\": \"Γεννήτριες\",\n \"lorem\": {\n \"label\": \"Γενν"
},
{
"path": "src/main/i18n/locales/el_GR/menu.json",
"chars": 2140,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Προτιμήσεις\",\n \"devtools\": \"Developer Tools\",\n \"update\":"
},
{
"path": "src/main/i18n/locales/el_GR/messages.json",
"chars": 2999,
"preview": "{\n \"confirm\": {\n \"delete\": \"Είστε βέβαιοι ότι θέλετε να διαγράψετε το \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"Είστ"
},
{
"path": "src/main/i18n/locales/el_GR/preferences.json",
"chars": 1388,
"preview": "{\n \"label\": \"Προτιμήσεις\",\n \"storage\": {\n \"label\": \"Storage\",\n \"migrate\": \"Μετεγκατάσταση\",\n \"count\": \"Πλήθος"
},
{
"path": "src/main/i18n/locales/el_GR/ui.json",
"chars": 3074,
"preview": "{\n \"total\": \"Σύνολο\",\n \"line\": \"Γραμμή\",\n \"column\": \"Στήλη\",\n \"fragment\": \"Fragment\",\n \"path\": \"Διαδρομή\",\n \"butto"
},
{
"path": "src/main/i18n/locales/en_US/devtools.json",
"chars": 6288,
"preview": "{\n \"label\": \"Developer Tools\",\n \"generators\": {\n \"label\": \"Generators\",\n \"lorem\": {\n \"label\": \"Lorem Ipsum "
},
{
"path": "src/main/i18n/locales/en_US/menu.json",
"chars": 2036,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Preferences\",\n \"devtools\": \"Developer Tools\",\n \"update\":"
},
{
"path": "src/main/i18n/locales/en_US/messages.json",
"chars": 3923,
"preview": "{\n \"confirm\": {\n \"delete\": \"Are you sure you want to delete \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"Are you sure y"
},
{
"path": "src/main/i18n/locales/en_US/preferences.json",
"chars": 2453,
"preview": "{\n \"label\": \"Preferences\",\n \"storage\": {\n \"section\": {\n \"main\": \"Main\",\n \"migration\": \"Migration\",\n "
},
{
"path": "src/main/i18n/locales/en_US/ui.json",
"chars": 3564,
"preview": "{\n \"total\": \"Total\",\n \"line\": \"Line\",\n \"column\": \"Column\",\n \"fragment\": \"Fragment\",\n \"path\": \"Path\",\n \"button\": {\n"
},
{
"path": "src/main/i18n/locales/es_ES/devtools.json",
"chars": 6606,
"preview": "{\n \"label\": \"Herramientas de desarrollo\",\n \"generators\": {\n \"label\": \"Generadores\",\n \"lorem\": {\n \"label\": \""
},
{
"path": "src/main/i18n/locales/es_ES/menu.json",
"chars": 2126,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Preferencias\",\n \"devtools\": \"Herramientas de Desarrollo\",\n "
},
{
"path": "src/main/i18n/locales/es_ES/messages.json",
"chars": 2923,
"preview": "{\n \"confirm\": {\n \"delete\": \"¿Estás seguro de que quieres eliminar \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"¿Estás s"
},
{
"path": "src/main/i18n/locales/es_ES/preferences.json",
"chars": 1368,
"preview": "{\n \"label\": \"Preferencias\",\n \"storage\": {\n \"label\": \"Almacenamiento\",\n \"migrate\": \"Migrar\",\n \"count\": \"Cantid"
},
{
"path": "src/main/i18n/locales/es_ES/ui.json",
"chars": 3045,
"preview": "{\n \"total\": \"Total\",\n \"line\": \"Línea\",\n \"column\": \"Columna\",\n \"fragment\": \"Fragmento\",\n \"path\": \"Ruta\",\n \"button\":"
},
{
"path": "src/main/i18n/locales/fa_IR/devtools.json",
"chars": 6099,
"preview": "{\n \"label\": \"ابزارهای توسعهدهنده\",\n \"generators\": {\n \"label\": \"تولیدکنندهها\",\n \"lorem\": {\n \"label\": \"تولی"
},
{
"path": "src/main/i18n/locales/fa_IR/menu.json",
"chars": 1962,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"تنظیمات\",\n \"devtools\": \"ابزارهای توسعه\",\n \"update\": \"برر"
},
{
"path": "src/main/i18n/locales/fa_IR/messages.json",
"chars": 2708,
"preview": "{\n \"confirm\": {\n \"delete\": \"آیا مطمئن هستید که میخواهید \\\"{{name}}\\\" را حذف کنید؟\",\n \"deletePermanently\": \"آیا م"
},
{
"path": "src/main/i18n/locales/fa_IR/preferences.json",
"chars": 1269,
"preview": "{\n \"label\": \"تنظیمات\",\n \"storage\": {\n \"label\": \"ذخیرهسازی\",\n \"migrate\": \"مهاجرت\",\n \"count\": \"تعداد\",\n \"cl"
},
{
"path": "src/main/i18n/locales/fa_IR/ui.json",
"chars": 2906,
"preview": "{\n \"total\": \"مجموع\",\n \"line\": \"خط\",\n \"column\": \"ستون\",\n \"fragment\": \"قطعه\",\n \"path\": \"مسیر\",\n \"button\": {\n \"bac"
},
{
"path": "src/main/i18n/locales/fr_FR/devtools.json",
"chars": 6612,
"preview": "{\n \"label\": \"Outils de développement\",\n \"generators\": {\n \"label\": \"Générateurs\",\n \"lorem\": {\n \"label\": \"Gén"
},
{
"path": "src/main/i18n/locales/fr_FR/menu.json",
"chars": 2174,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Préférences\",\n \"devtools\": \"Outils de développement\",\n \""
},
{
"path": "src/main/i18n/locales/fr_FR/messages.json",
"chars": 2971,
"preview": "{\n \"confirm\": {\n \"delete\": \"Êtes-vous sûr de vouloir supprimer \\\"{{name}}\\\" ?\",\n \"deletePermanently\": \"Êtes-vous "
},
{
"path": "src/main/i18n/locales/fr_FR/preferences.json",
"chars": 1425,
"preview": "{\n \"label\": \"Préférences\",\n \"storage\": {\n \"label\": \"Stockage\",\n \"migrate\": \"Migrer\",\n \"count\": \"Nombre\",\n "
},
{
"path": "src/main/i18n/locales/fr_FR/ui.json",
"chars": 3091,
"preview": "{\n \"total\": \"Total\",\n \"line\": \"Ligne\",\n \"column\": \"Colonne\",\n \"fragment\": \"Fragment\",\n \"path\": \"Chemin\",\n \"button\""
},
{
"path": "src/main/i18n/locales/ja_JP/devtools.json",
"chars": 5504,
"preview": "{\n \"label\": \"開発者ツール\",\n \"generators\": {\n \"label\": \"ジェネレーター\",\n \"lorem\": {\n \"label\": \"Lorem Ipsum ジェネレーター\",\n "
},
{
"path": "src/main/i18n/locales/ja_JP/menu.json",
"chars": 1696,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"環境設定\",\n \"devtools\": \"開発者ツール\",\n \"update\": \"アップデートを確認...\","
},
{
"path": "src/main/i18n/locales/ja_JP/messages.json",
"chars": 1885,
"preview": "{\n \"confirm\": {\n \"delete\": \"「{{name}}」を削除してもよろしいですか?\",\n \"deletePermanently\": \"「{{name}}」を完全に削除してもよろしいですか?\",\n \""
},
{
"path": "src/main/i18n/locales/ja_JP/preferences.json",
"chars": 1121,
"preview": "{\n \"label\": \"環境設定\",\n \"storage\": {\n \"label\": \"ストレージ\",\n \"migrate\": \"移行\",\n \"count\": \"カウント\",\n \"clearDatabase\":"
},
{
"path": "src/main/i18n/locales/ja_JP/ui.json",
"chars": 2439,
"preview": "{\n \"total\": \"合計\",\n \"line\": \"行\",\n \"column\": \"列\",\n \"fragment\": \"フラグメント\",\n \"path\": \"パス\",\n \"button\": {\n \"back\": \"戻る"
},
{
"path": "src/main/i18n/locales/pl_PL/devtools.json",
"chars": 6494,
"preview": "{\n \"label\": \"Narzędzia deweloperskie\",\n \"generators\": {\n \"label\": \"Generatory\",\n \"lorem\": {\n \"label\": \"Gene"
},
{
"path": "src/main/i18n/locales/pl_PL/menu.json",
"chars": 2060,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Preferencje\",\n \"devtools\": \"Narzędzia deweloperskie\",\n \""
},
{
"path": "src/main/i18n/locales/pl_PL/messages.json",
"chars": 2783,
"preview": "{\n \"confirm\": {\n \"delete\": \"Czy na pewno chcesz usunąć \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"Czy na pewno chcesz"
},
{
"path": "src/main/i18n/locales/pl_PL/preferences.json",
"chars": 1351,
"preview": "{\n \"label\": \"Preferencje\",\n \"storage\": {\n \"label\": \"Magazyn\",\n \"migrate\": \"Migruj\",\n \"count\": \"Liczba\",\n \""
},
{
"path": "src/main/i18n/locales/pl_PL/ui.json",
"chars": 2924,
"preview": "{\n \"total\": \"Łącznie\",\n \"line\": \"Wiersz\",\n \"column\": \"Kolumna\",\n \"fragment\": \"Fragment\",\n \"path\": \"Ścieżka\",\n \"but"
},
{
"path": "src/main/i18n/locales/pt_BR/devtools.json",
"chars": 6544,
"preview": "{\n \"label\": \"Ferramentas de Desenvolvimento\",\n \"generators\": {\n \"label\": \"Geradores\",\n \"lorem\": {\n \"label\":"
},
{
"path": "src/main/i18n/locales/pt_BR/menu.json",
"chars": 2099,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Preferências\",\n \"devtools\": \"Ferramentas de Desenvolvedor\","
},
{
"path": "src/main/i18n/locales/pt_BR/messages.json",
"chars": 2762,
"preview": "{\n \"confirm\": {\n \"delete\": \"Tem certeza que deseja excluir \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"Tem certeza que"
},
{
"path": "src/main/i18n/locales/pt_BR/preferences.json",
"chars": 1352,
"preview": "{\n \"label\": \"Preferências\",\n \"storage\": {\n \"label\": \"Storage\",\n \"migrate\": \"Migrar\",\n \"count\": \"Contagem\",\n "
},
{
"path": "src/main/i18n/locales/pt_BR/ui.json",
"chars": 2975,
"preview": "{\n \"total\": \"Total\",\n \"line\": \"Linha\",\n \"column\": \"Coluna\",\n \"fragment\": \"Fragment\",\n \"path\": \"Caminho\",\n \"button\""
},
{
"path": "src/main/i18n/locales/ro_RO/devtools.json",
"chars": 6494,
"preview": "{\n \"label\": \"Instrumente pentru Dezvoltatori\",\n \"generators\": {\n \"label\": \"Generatoare\",\n \"lorem\": {\n \"labe"
},
{
"path": "src/main/i18n/locales/ro_RO/menu.json",
"chars": 2123,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Preferințe\",\n \"devtools\": \"Instrumente pentru Dezvoltatori\""
},
{
"path": "src/main/i18n/locales/ro_RO/messages.json",
"chars": 2708,
"preview": "{\n \"confirm\": {\n \"delete\": \"Sigur doriți să ștergeți \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"Sigur doriți să șterg"
},
{
"path": "src/main/i18n/locales/ro_RO/preferences.json",
"chars": 1346,
"preview": "{\n \"label\": \"Preferințe\",\n \"storage\": {\n \"label\": \"Storage\",\n \"migrate\": \"Migrare\",\n \"count\": \"Număr\",\n \"c"
},
{
"path": "src/main/i18n/locales/ro_RO/ui.json",
"chars": 2980,
"preview": "{\n \"total\": \"Total\",\n \"line\": \"Linie\",\n \"column\": \"Coloană\",\n \"fragment\": \"Fragment\",\n \"path\": \"Cale\",\n \"button\": "
},
{
"path": "src/main/i18n/locales/ru_RU/devtools.json",
"chars": 6433,
"preview": "{\n \"label\": \"Инструменты разработчика\",\n \"generators\": {\n \"label\": \"Генераторы\",\n \"lorem\": {\n \"label\": \"Lor"
},
{
"path": "src/main/i18n/locales/ru_RU/menu.json",
"chars": 2101,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Настройки\",\n \"devtools\": \"Инструменты разработчика\",\n \"u"
},
{
"path": "src/main/i18n/locales/ru_RU/messages.json",
"chars": 3478,
"preview": "{\n \"confirm\": {\n \"delete\": \"Вы уверены, что хотите удалить \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"Вы уверены, что"
},
{
"path": "src/main/i18n/locales/ru_RU/preferences.json",
"chars": 1747,
"preview": "{\n \"label\": \"Настройки\",\n \"storage\": {\n \"label\": \"Хранилище\",\n \"section\": {\n \"migration\": \"Миграция\",\n "
},
{
"path": "src/main/i18n/locales/ru_RU/ui.json",
"chars": 3569,
"preview": "{\n \"total\": \"Всего\",\n \"line\": \"Строка\",\n \"column\": \"Столбец\",\n \"fragment\": \"Фрагмент\",\n \"path\": \"Путь\",\n \"button\":"
},
{
"path": "src/main/i18n/locales/tr_TR/devtools.json",
"chars": 6284,
"preview": "{\n \"label\": \"Geliştirici Araçları\",\n \"generators\": {\n \"label\": \"Üreteçler\",\n \"lorem\": {\n \"label\": \"Lorem Ip"
},
{
"path": "src/main/i18n/locales/tr_TR/menu.json",
"chars": 2026,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Tercihler\",\n \"devtools\": \"Geliştirici Araçları\",\n \"updat"
},
{
"path": "src/main/i18n/locales/tr_TR/messages.json",
"chars": 2699,
"preview": "{\n \"confirm\": {\n \"delete\": \"\\\"{{name}}\\\" öğesini silmek istediğinizden emin misiniz?\",\n \"deletePermanently\": \"\\\"{"
},
{
"path": "src/main/i18n/locales/tr_TR/preferences.json",
"chars": 1314,
"preview": "{\n \"label\": \"Tercihler\",\n \"storage\": {\n \"label\": \"Depolama\",\n \"migrate\": \"Taşı\",\n \"count\": \"Sayı\",\n \"clear"
},
{
"path": "src/main/i18n/locales/tr_TR/ui.json",
"chars": 2916,
"preview": "{\n \"total\": \"Toplam\",\n \"line\": \"Satır\",\n \"column\": \"Sütun\",\n \"fragment\": \"Fragment\",\n \"path\": \"Yol\",\n \"button\": {\n"
},
{
"path": "src/main/i18n/locales/uk_UA/devtools.json",
"chars": 6415,
"preview": "{\n \"label\": \"Інструменти розробника\",\n \"generators\": {\n \"label\": \"Генератори\",\n \"lorem\": {\n \"label\": \"Генер"
},
{
"path": "src/main/i18n/locales/uk_UA/menu.json",
"chars": 2140,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"Налаштування\",\n \"devtools\": \"Інструменти розробника\",\n \""
},
{
"path": "src/main/i18n/locales/uk_UA/messages.json",
"chars": 2651,
"preview": "{\n \"confirm\": {\n \"delete\": \"Ви впевнені, що хочете видалити \\\"{{name}}\\\"?\",\n \"deletePermanently\": \"Ви впевнені, щ"
},
{
"path": "src/main/i18n/locales/uk_UA/preferences.json",
"chars": 1358,
"preview": "{\n \"label\": \"Налаштування\",\n \"storage\": {\n \"label\": \"Сховище\",\n \"migrate\": \"Міграція\",\n \"count\": \"Кількість\","
},
{
"path": "src/main/i18n/locales/uk_UA/ui.json",
"chars": 2975,
"preview": "{\n \"total\": \"Всього\",\n \"line\": \"Рядок\",\n \"column\": \"Стовпець\",\n \"fragment\": \"Fragment\",\n \"path\": \"Шлях\",\n \"button\""
},
{
"path": "src/main/i18n/locales/zh_CN/devtools.json",
"chars": 5267,
"preview": "{\n \"label\": \"开发者工具\",\n \"generators\": {\n \"label\": \"生成器\",\n \"lorem\": {\n \"label\": \"Lorem Ipsum 生成器\",\n \"desc"
},
{
"path": "src/main/i18n/locales/zh_CN/menu.json",
"chars": 1593,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"首选项\",\n \"devtools\": \"开发者工具\",\n \"update\": \"检查更新...\",\n \"q"
},
{
"path": "src/main/i18n/locales/zh_CN/messages.json",
"chars": 1587,
"preview": "{\n \"confirm\": {\n \"delete\": \"您确定要删除 \\\"{{name}}\\\" 吗?\",\n \"deletePermanently\": \"您确定要永久删除 \\\"{{name}}\\\" 吗?\",\n \"delet"
},
{
"path": "src/main/i18n/locales/zh_CN/preferences.json",
"chars": 1056,
"preview": "{\n \"label\": \"首选项\",\n \"storage\": {\n \"label\": \"存储\",\n \"migrate\": \"迁移\",\n \"count\": \"数量\",\n \"clearDatabase\": \"清空数据"
},
{
"path": "src/main/i18n/locales/zh_CN/ui.json",
"chars": 2304,
"preview": "{\n \"total\": \"总计\",\n \"line\": \"行\",\n \"column\": \"列\",\n \"fragment\": \"片段\",\n \"path\": \"路径\",\n \"button\": {\n \"back\": \"返回\",\n "
},
{
"path": "src/main/i18n/locales/zh_HK/devtools.json",
"chars": 5274,
"preview": "{\n \"label\": \"開發者工具\",\n \"generators\": {\n \"label\": \"生成器\",\n \"lorem\": {\n \"label\": \"Lorem Ipsum 生成器\",\n \"desc"
},
{
"path": "src/main/i18n/locales/zh_HK/menu.json",
"chars": 1598,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"偏好設置\",\n \"devtools\": \"開發者工具\",\n \"update\": \"檢查更新...\",\n \""
},
{
"path": "src/main/i18n/locales/zh_HK/messages.json",
"chars": 1559,
"preview": "{\n \"confirm\": {\n \"delete\": \"您確定要刪除 \\\"{{name}}\\\" 嗎?\",\n \"deletePermanently\": \"您確定要永久刪除 \\\"{{name}}\\\" 嗎?\",\n \"delet"
},
{
"path": "src/main/i18n/locales/zh_HK/preferences.json",
"chars": 1057,
"preview": "{\n \"label\": \"偏好設置\",\n \"storage\": {\n \"label\": \"存儲\",\n \"migrate\": \"遷移\",\n \"count\": \"數量\",\n \"clearDatabase\": \"清空數"
},
{
"path": "src/main/i18n/locales/zh_HK/ui.json",
"chars": 2314,
"preview": "{\n \"total\": \"總計\",\n \"line\": \"行\",\n \"column\": \"列\",\n \"fragment\": \"片段\",\n \"path\": \"路徑\",\n \"button\": {\n \"back\": \"返回\",\n "
},
{
"path": "src/main/i18n/locales/zh_TW/devtools.json",
"chars": 5274,
"preview": "{\n \"label\": \"開發者工具\",\n \"generators\": {\n \"label\": \"生成器\",\n \"lorem\": {\n \"label\": \"Lorem Ipsum 生成器\",\n \"desc"
},
{
"path": "src/main/i18n/locales/zh_TW/menu.json",
"chars": 1599,
"preview": "{\n \"app\": {\n \"label\": \"massCode\",\n \"preferences\": \"偏好設定\",\n \"devtools\": \"開發者工具\",\n \"update\": \"檢查更新...\",\n \""
},
{
"path": "src/main/i18n/locales/zh_TW/messages.json",
"chars": 1560,
"preview": "{\n \"confirm\": {\n \"delete\": \"您確定要刪除 \\\"{{name}}\\\" 嗎?\",\n \"deletePermanently\": \"您確定要永久刪除 \\\"{{name}}\\\" 嗎?\",\n \"delet"
},
{
"path": "src/main/i18n/locales/zh_TW/preferences.json",
"chars": 1060,
"preview": "{\n \"label\": \"偏好設定\",\n \"storage\": {\n \"label\": \"儲存庫\",\n \"migrate\": \"遷移\",\n \"count\": \"數量\",\n \"clearDatabase\": \"清空"
},
{
"path": "src/main/i18n/locales/zh_TW/ui.json",
"chars": 2317,
"preview": "{\n \"total\": \"總計\",\n \"line\": \"行\",\n \"column\": \"列\",\n \"fragment\": \"片段\",\n \"path\": \"路徑\",\n \"button\": {\n \"back\": \"返回\",\n "
},
{
"path": "src/main/index.ts",
"chars": 5170,
"preview": "/* eslint-disable node/prefer-global/process */\nimport { readFileSync } from 'node:fs'\nimport path from 'node:path'\nimpo"
},
{
"path": "src/main/ipc/handlers/db.ts",
"chars": 2901,
"preview": "import type { Backup } from '../../db/types'\nimport { ipcMain } from 'electron'\nimport { readFileSync } from 'fs-extra'\n"
},
{
"path": "src/main/ipc/handlers/dialog.ts",
"chars": 660,
"preview": "import type { DialogOptions } from '../../types/ipc'\nimport { BrowserWindow, dialog, ipcMain } from 'electron'\n\nexport f"
},
{
"path": "src/main/ipc/handlers/fs.ts",
"chars": 905,
"preview": "import { Buffer } from 'node:buffer'\nimport { join, parse } from 'node:path'\nimport { ipcMain } from 'electron'\nimport {"
},
{
"path": "src/main/ipc/handlers/prettier.ts",
"chars": 662,
"preview": "import type { PrettierOptions } from '../../types/ipc'\nimport { ipcMain } from 'electron'\nimport prettier from 'prettier"
},
{
"path": "src/main/ipc/handlers/spaces.ts",
"chars": 2203,
"preview": "import type { MathNotebookStore } from '../../store/types'\nimport { ipcMain } from 'electron'\nimport {\n ensureSpaceDire"
},
{
"path": "src/main/ipc/handlers/system.ts",
"chars": 412,
"preview": "import { app, ipcMain, shell } from 'electron'\nimport { getCurrencyRates } from '../../currencyRates'\n\nexport function r"
},
{
"path": "src/main/ipc/handlers/theme.ts",
"chars": 12085,
"preview": "import type { ChokidarOptions, FSWatcher } from 'chokidar'\nimport type {\n ThemeFile,\n ThemeListItem,\n ThemeType,\n} fr"
},
{
"path": "src/main/ipc/index.ts",
"chars": 835,
"preview": "import type { Channel } from '../types/ipc'\nimport { BrowserWindow } from 'electron'\nimport { registerDBHandlers } from "
},
{
"path": "src/main/menu/main.ts",
"chars": 9261,
"preview": "/* eslint-disable node/prefer-global/process */\nimport type { MenuConfig } from './utils'\nimport os from 'node:os'\nimpor"
},
{
"path": "src/main/menu/utils/index.ts",
"chars": 809,
"preview": "/* eslint-disable node/prefer-global/process */\nimport type { MenuItemConstructorOptions } from 'electron'\nimport { Menu"
},
{
"path": "src/main/preload.ts",
"chars": 2031,
"preview": "import type {\n AppStore,\n MathNotebookStore,\n PreferencesStore,\n} from './store/types'\nimport type { EventCallback } "
},
{
"path": "src/main/storage/contracts.ts",
"chars": 3874,
"preview": "export interface TagRecord {\n id: number\n name: string\n}\n\nexport interface FolderRecord {\n id: number\n name: string\n"
},
{
"path": "src/main/storage/index.ts",
"chars": 1012,
"preview": "import type { StorageProvider } from './contracts'\nimport { store } from '../store'\nimport {\n createMarkdownStorageProv"
},
{
"path": "src/main/storage/providers/markdown/index.ts",
"chars": 306,
"preview": "export {\n migrateMarkdownToSqliteStorage,\n migrateSqliteToMarkdownStorage,\n} from './migrations'\nexport { getMarkdownS"
},
{
"path": "src/main/storage/providers/markdown/migrations.ts",
"chars": 13225,
"preview": "import type { FolderRecord } from '../../contracts'\nimport path from 'node:path'\nimport fs from 'fs-extra'\nimport { clea"
},
{
"path": "src/main/storage/providers/markdown/runtime/constants.ts",
"chars": 1737,
"preview": "import type { MarkdownRuntimeCache } from './types'\n\nexport const META_DIR_NAME = '.masscode'\nexport const STATE_FILE_NA"
},
{
"path": "src/main/storage/providers/markdown/runtime/index.ts",
"chars": 2266,
"preview": "// Constants\nexport {\n INBOX_DIR_NAME,\n INVALID_NAME_CHARS_RE,\n LEGACY_FOLDER_META_FILE_NAME,\n META_DIR_NAME,\n META"
},
{
"path": "src/main/storage/providers/markdown/runtime/normalizers.ts",
"chars": 2313,
"preview": "import type { FolderRecord } from '../../../contracts'\nimport type { MarkdownFolderUIState } from './types'\n\nexport func"
},
{
"path": "src/main/storage/providers/markdown/runtime/parser.ts",
"chars": 6242,
"preview": "import type { FolderRecord } from '../../../contracts'\nimport type {\n MarkdownBodyFragment,\n MarkdownFolderMetadataFil"
},
{
"path": "src/main/storage/providers/markdown/runtime/paths.ts",
"chars": 4281,
"preview": "import type { FolderRecord } from '../../../contracts'\nimport type { MarkdownState, Paths } from './types'\nimport path f"
},
{
"path": "src/main/storage/providers/markdown/runtime/search.ts",
"chars": 6238,
"preview": "import type { MarkdownSnippet } from './types'\nimport { runtimeRef, SEARCH_DIACRITICS_RE, SEARCH_WORD_RE } from './const"
},
{
"path": "src/main/storage/providers/markdown/runtime/snippets.ts",
"chars": 15765,
"preview": "import type { SnippetRecord } from '../../../contracts'\nimport type {\n DirectoryEntriesCache,\n MarkdownSnippet,\n Mark"
},
{
"path": "src/main/storage/providers/markdown/runtime/spaceState.ts",
"chars": 2633,
"preview": "import path from 'node:path'\nimport fs from 'fs-extra'\nimport yaml from 'js-yaml'\nimport {\n pendingStateWriteByPath,\n "
},
{
"path": "src/main/storage/providers/markdown/runtime/spaces.ts",
"chars": 615,
"preview": "import path from 'node:path'\nimport fs from 'fs-extra'\nimport { SPACE_STATE_FILE_NAME, SPACES_DIR_NAME } from './constan"
},
{
"path": "src/main/storage/providers/markdown/runtime/state.ts",
"chars": 5577,
"preview": "import type {\n MarkdownFolderUIState,\n MarkdownState,\n MarkdownStateFile,\n Paths,\n SaveStateOptions,\n} from './type"
},
{
"path": "src/main/storage/providers/markdown/runtime/sync.ts",
"chars": 12885,
"preview": "import type { FolderRecord } from '../../../contracts'\nimport type {\n MarkdownFolderDiskEntry,\n MarkdownRuntimeCache,\n"
},
{
"path": "src/main/storage/providers/markdown/runtime/types.ts",
"chars": 3618,
"preview": "import type { FolderRecord, TagRecord } from '../../../contracts'\n\nexport interface MarkdownTagState extends TagRecord {"
},
{
"path": "src/main/storage/providers/markdown/runtime/validation.ts",
"chars": 4465,
"preview": "import type { MarkdownErrorCode, MarkdownState, Paths } from './types'\nimport path from 'node:path'\nimport fs from 'fs-e"
},
{
"path": "src/main/storage/providers/markdown/storages/folders.ts",
"chars": 12947,
"preview": "import type {\n FolderRecord,\n FoldersStorage,\n FolderTreeRecord,\n FolderUpdateResult,\n} from '../../../contracts'\nim"
},
{
"path": "src/main/storage/providers/markdown/storages/index.ts",
"chars": 393,
"preview": "import type { StorageProvider } from '../../../contracts'\nimport { createFoldersStorage } from './folders'\nimport { crea"
},
{
"path": "src/main/storage/providers/markdown/storages/snippets.ts",
"chars": 11923,
"preview": "import type {\n SnippetContentUpdateInput,\n SnippetContentUpdateResult,\n SnippetsCount,\n SnippetsQueryInput,\n Snippe"
},
{
"path": "src/main/storage/providers/markdown/storages/tags.ts",
"chars": 1491,
"preview": "import type { TagsStorage } from '../../../contracts'\nimport {\n getPaths,\n getRuntimeCache,\n getVaultPath,\n saveStat"
},
{
"path": "src/main/storage/providers/markdown/watcher.ts",
"chars": 7101,
"preview": "import type { ChokidarOptions, FSWatcher } from 'chokidar'\nimport path from 'node:path'\nimport { BrowserWindow } from 'e"
},
{
"path": "src/main/storage/providers/sqlite/folders.ts",
"chars": 8954,
"preview": "import type {\n FolderCreateInput,\n FolderRecord,\n FoldersStorage,\n FolderTreeRecord,\n FolderUpdateInput,\n FolderUp"
},
{
"path": "src/main/storage/providers/sqlite/index.ts",
"chars": 394,
"preview": "import type { StorageProvider } from '../../contracts'\nimport { createSqliteFoldersStorage } from './folders'\nimport { c"
},
{
"path": "src/main/storage/providers/sqlite/snippets.ts",
"chars": 12583,
"preview": "import type {\n SnippetContentCreateInput,\n SnippetContentUpdateInput,\n SnippetContentUpdateResult,\n SnippetRecord,\n "
},
{
"path": "src/main/storage/providers/sqlite/tags.ts",
"chars": 1244,
"preview": "import type { TagRecord, TagsStorage } from '../../contracts'\nimport { useDB } from '../../../db'\n\nexport function creat"
},
{
"path": "src/main/store/constants.ts",
"chars": 431,
"preview": "import type { EditorSettings } from './types'\n\nexport const APP_DEFAULTS = {\n sizes: {\n sidebar: 180,\n snippetLis"
},
{
"path": "src/main/store/index.ts",
"chars": 261,
"preview": "import app from './module/app'\nimport currencyRates from './module/currency-rates'\nimport mathNotebook from './module/ma"
},
{
"path": "src/main/store/module/app.ts",
"chars": 523,
"preview": "import type { AppStore } from '../types'\nimport Store from 'electron-store'\nimport { APP_DEFAULTS } from '../constants'\n"
},
{
"path": "src/main/store/module/currency-rates.ts",
"chars": 213,
"preview": "import type { CurrencyRatesStore } from '../types'\nimport Store from 'electron-store'\n\nexport default new Store<Currency"
},
{
"path": "src/main/store/module/math-notebook.ts",
"chars": 234,
"preview": "import type { MathNotebookStore } from '../types'\nimport Store from 'electron-store'\n\nexport default new Store<MathNoteb"
},
{
"path": "src/main/store/module/preferences.ts",
"chars": 2002,
"preview": "import type { PreferencesStore } from '../types'\nimport { homedir, platform } from 'node:os'\nimport path from 'node:path"
},
{
"path": "src/main/store/types/index.ts",
"chars": 1841,
"preview": "import type ElectronStore from 'electron-store'\n\nexport interface AppStore {\n bounds: object\n sizes: {\n sidebarWidt"
},
{
"path": "src/main/store/types/theme.ts",
"chars": 388,
"preview": "export type ThemeType = 'light' | 'dark'\n\nexport type ThemeColors = Record<string, string>\n\nexport type ThemeEditorColor"
},
{
"path": "src/main/types/index.ts",
"chars": 1170,
"preview": "import type { IpcRendererEvent } from 'electron'\nimport type { Store } from '../store/types'\nimport type { Channel } fro"
},
{
"path": "src/main/types/ipc.ts",
"chars": 1997,
"preview": "import type { OpenDialogOptions } from 'electron'\n\nexport type CombineWith<T extends string, U extends string> = `${U}:$"
},
{
"path": "src/main/updates/index.ts",
"chars": 2883,
"preview": "/* eslint-disable node/prefer-global/process */\nimport { repository, version } from '../../../package.json'\nimport { sen"
},
{
"path": "src/main/utils/index.ts",
"chars": 574,
"preview": "import { BrowserWindow } from 'electron'\n\nexport function log(context: string, error: unknown): void {\n const message ="
},
{
"path": "src/renderer/App.vue",
"chars": 2400,
"preview": "<script setup lang=\"ts\">\nimport * as Tooltip from '@/components/ui/shadcn/tooltip'\nimport { useApp, useTheme } from '@/c"
},
{
"path": "src/renderer/components/app-space-shell/AppSpaceShell.vue",
"chars": 376,
"preview": "<script setup lang=\"ts\">\nimport { isMac } from '@/utils'\n</script>\n\n<template>\n <div class=\"grid h-screen grid-cols-[72"
},
{
"path": "src/renderer/components/code-space-layout/CodeSpaceLayout.vue",
"chars": 1187,
"preview": "<script setup lang=\"ts\">\nimport * as Resizable from '@/components/ui/shadcn/resizable'\nimport { useApp } from '@/composa"
},
{
"path": "src/renderer/components/devtools/ShadcnComparison.vue",
"chars": 505,
"preview": "<script setup lang=\"ts\">\nimport { copy } from './shadcn-comparison/copy'\n</script>\n\n<template>\n <div class=\"space-y-8 p"
},
{
"path": "src/renderer/components/devtools/converters/Base64Converter.vue",
"chars": 2438,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { Switch } from '@/components/ui/"
},
{
"path": "src/renderer/components/devtools/converters/CaseConverter.vue",
"chars": 3587,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { useCopyToClipboard } from '@/co"
},
{
"path": "src/renderer/components/devtools/converters/ColorConverter.vue",
"chars": 9339,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { useCopyToClipboard } from '@/co"
},
{
"path": "src/renderer/components/devtools/converters/JsonToToml.vue",
"chars": 3300,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { Switch } from '@/components/ui/"
},
{
"path": "src/renderer/components/devtools/converters/JsonToXml.vue",
"chars": 5134,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { Switch } from '@/components/ui/"
},
{
"path": "src/renderer/components/devtools/converters/JsonToYaml.vue",
"chars": 2455,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { Switch } from '@/components/ui/"
},
{
"path": "src/renderer/components/devtools/converters/TextToAsciiBinary.vue",
"chars": 2698,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { Switch } from '@/components/ui/"
},
{
"path": "src/renderer/components/devtools/converters/TextToUnicode.vue",
"chars": 2490,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { Switch } from '@/components/ui/"
},
{
"path": "src/renderer/components/devtools/crypto/Hash.vue",
"chars": 2975,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { useCopyToClipboard } from '@/co"
},
{
"path": "src/renderer/components/devtools/crypto/Hmac.vue",
"chars": 3412,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { useCopyToClipboard } from '@/co"
},
{
"path": "src/renderer/components/devtools/crypto/Password.vue",
"chars": 4451,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport { Switch } from '@/components/ui/"
},
{
"path": "src/renderer/components/devtools/crypto/Uuid.vue",
"chars": 2523,
"preview": "<script setup lang=\"ts\">\nimport { Button } from '@/components/ui/shadcn/button'\nimport * as Select from '@/components/ui"
}
]
// ... and 414 more files (download for full content)
About this extraction
This page contains the full source code of the massCodeIO/massCode GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 614 files (8.2 MB), approximately 2.2M tokens, and a symbol index with 669 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.