├── .browserslistrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .eslintrc.json ├── .gitattributes ├── .github └── workflows │ ├── add-issue-to-project.yml │ ├── close-comment.yml │ ├── notify-ready.yml │ ├── release.yml │ ├── semantic-pr.yml │ ├── test.yml │ ├── wbfy-merge.yml │ └── wbfy.yml ├── .gitignore ├── .husky ├── post-merge ├── pre-commit └── pre-push ├── .idea ├── codeStyles │ └── codeStyleConfig.xml ├── misc.xml ├── modules.xml ├── plantuml-visualizer.iml ├── vcs.xml └── watcherTasks.xml ├── .lintstagedrc.cjs ├── .prettierignore ├── .releaserc.json ├── .renovaterc.json ├── .tool-versions ├── .vscode └── settings.json ├── .yarn ├── plugins │ ├── plugin-auto-install.cjs │ └── plugin-auto-install │ │ └── .gitignore └── releases │ └── yarn-4.0.0-rc.47.cjs ├── .yarnrc.yml ├── LICENSE ├── NOTICE ├── README.md ├── allow-access.png ├── babel.config.json ├── example.png ├── icon ├── icon128.png ├── icon16.png ├── icon16gray.png └── icon48.png ├── manifest.json ├── package.json ├── puml-sample ├── README.md ├── class.pu ├── included.pu ├── including.pu ├── japanese.pu ├── sequence.wsd ├── subincluded.pu └── subincluding.pu ├── rollup.config.mjs ├── src ├── background.ts ├── components │ ├── BodyContainer.svelte │ ├── Button.svelte │ ├── Footer.svelte │ ├── Header.svelte │ ├── ItemContainer.svelte │ ├── ItemLabel.svelte │ ├── Switch.svelte │ └── TextField.svelte ├── config.ts ├── constants.ts ├── contentScripts.ts ├── directiveRegexes.ts ├── encoder │ └── plantUmlEncoder.ts ├── finder │ ├── codeBlockFinder.ts │ ├── finder.ts │ ├── finderUtil.ts │ └── github │ │ ├── gitHubFileViewFinder.ts │ │ └── gitHubPullRequestDiffFinder.ts ├── mutator │ ├── descriptionMutator.ts │ ├── diffMutator.ts │ └── mutatorUtil.ts ├── popup.html ├── popup.svelte ├── popup.ts └── types │ └── svelte.d.ts ├── tests ├── playwright.test.ts └── playwrightFixtures.ts ├── tsconfig.json └── yarn.lock /.browserslistrc: -------------------------------------------------------------------------------- 1 | last 2 Chrome versions 2 | last 2 Firefox versions 3 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | trim_trailing_whitespace = true 8 | 9 | [*.{cjs,cpp,cts,dart,htm,html,js,json,json5,jsx,mjs,mts,pu,puml,rb,ts,tsx,vue,yaml,yml}] 10 | indent_size = 2 11 | indent_style = space 12 | 13 | [*.{go,gradle,py}] 14 | indent_size = 4 15 | indent_style = space 16 | 17 | [*.sh] 18 | indent_size = 8 19 | indent_style = space 20 | 21 | [*.md] 22 | max_line_length = off 23 | trim_trailing_whitespace = false 24 | 25 | [{Makefile,*.mk}] 26 | indent_style = tab 27 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | # Project-specific settings (head) 2 | 3 | 4 | # Generated by @willbooster/willboosterify 5 | 6 | 3rd-party/ 7 | @types/ 8 | __generated__/ 9 | android/ 10 | ios/ 11 | no-format/ 12 | test-fixtures/ 13 | *.config.*js 14 | *.d.ts 15 | *.min.*js 16 | .yarn/ 17 | .pnp.js 18 | dist.zip 19 | 20 | .devcontainer/ 21 | dist/ 22 | temp/ 23 | Icon[ ] 24 | !.keep 25 | test-results/ 26 | # Created by https://www.toptal.com/developers/gitignore/api/windows 27 | # Edit at https://www.toptal.com/developers/gitignore?templates=windows 28 | 29 | ### Windows ### 30 | # Windows thumbnail cache files 31 | Thumbs.db 32 | Thumbs.db:encryptable 33 | ehthumbs.db 34 | ehthumbs_vista.db 35 | 36 | # Dump file 37 | *.stackdump 38 | 39 | # Folder config file 40 | [Dd]esktop.ini 41 | 42 | # Recycle Bin used on file shares 43 | $RECYCLE.BIN/ 44 | 45 | # Windows Installer files 46 | *.cab 47 | *.msi 48 | *.msix 49 | *.msm 50 | *.msp 51 | 52 | # Windows shortcuts 53 | *.lnk 54 | 55 | # End of https://www.toptal.com/developers/gitignore/api/windows 56 | 57 | # Created by https://www.toptal.com/developers/gitignore/api/macos 58 | # Edit at https://www.toptal.com/developers/gitignore?templates=macos 59 | 60 | ### macOS ### 61 | # General 62 | .DS_Store 63 | .AppleDouble 64 | .LSOverride 65 | 66 | # Icon must end with two \r 67 | Icon 68 | 69 | # Thumbnails 70 | ._* 71 | 72 | # Files that might appear in the root of a volume 73 | .DocumentRevisions-V100 74 | .fseventsd 75 | .Spotlight-V100 76 | .TemporaryItems 77 | .Trashes 78 | .VolumeIcon.icns 79 | .com.apple.timemachine.donotpresent 80 | 81 | # Directories potentially created on remote AFP share 82 | .AppleDB 83 | .AppleDesktop 84 | Network Trash Folder 85 | Temporary Items 86 | .apdisk 87 | 88 | ### macOS Patch ### 89 | # iCloud generated files 90 | *.icloud 91 | 92 | # End of https://www.toptal.com/developers/gitignore/api/macos 93 | 94 | # Created by https://www.toptal.com/developers/gitignore/api/linux 95 | # Edit at https://www.toptal.com/developers/gitignore?templates=linux 96 | 97 | ### Linux ### 98 | *~ 99 | 100 | # temporary files which can be created if a process still has a handle open of a deleted file 101 | .fuse_hidden* 102 | 103 | # KDE directory preferences 104 | .directory 105 | 106 | # Linux trash folder which might appear on any partition or disk 107 | .Trash-* 108 | 109 | # .nfs files are created when an open file is removed but is still being accessed 110 | .nfs* 111 | 112 | # End of https://www.toptal.com/developers/gitignore/api/linux 113 | 114 | # Created by https://www.toptal.com/developers/gitignore/api/jetbrains 115 | # Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains 116 | 117 | ### JetBrains ### 118 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider 119 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 120 | 121 | # User-specific stuff 122 | .idea/**/workspace.xml 123 | .idea/**/tasks.xml 124 | .idea/**/usage.statistics.xml 125 | .idea/**/dictionaries 126 | .idea/**/shelf 127 | 128 | # AWS User-specific 129 | .idea/**/aws.xml 130 | 131 | # Generated files 132 | .idea/**/contentModel.xml 133 | 134 | # Sensitive or high-churn files 135 | .idea/**/dataSources/ 136 | .idea/**/dataSources.ids 137 | .idea/**/dataSources.local.xml 138 | .idea/**/sqlDataSources.xml 139 | .idea/**/dynamic.xml 140 | .idea/**/uiDesigner.xml 141 | .idea/**/dbnavigator.xml 142 | 143 | # Gradle 144 | .idea/**/gradle.xml 145 | .idea/**/libraries 146 | 147 | # Gradle and Maven with auto-import 148 | # When using Gradle or Maven with auto-import, you should exclude module files, 149 | # since they will be recreated, and may cause churn. Uncomment if using 150 | # auto-import. 151 | # .idea/artifacts 152 | # .idea/compiler.xml 153 | # .idea/jarRepositories.xml 154 | # .idea/modules.xml 155 | # .idea/*.iml 156 | # .idea/modules 157 | # *.iml 158 | # *.ipr 159 | 160 | # CMake 161 | cmake-build-*/ 162 | 163 | # Mongo Explorer plugin 164 | .idea/**/mongoSettings.xml 165 | 166 | # File-based project format 167 | *.iws 168 | 169 | # IntelliJ 170 | out/ 171 | 172 | # mpeltonen/sbt-idea plugin 173 | .idea_modules/ 174 | 175 | # JIRA plugin 176 | atlassian-ide-plugin.xml 177 | 178 | # Cursive Clojure plugin 179 | .idea/replstate.xml 180 | 181 | # SonarLint plugin 182 | .idea/sonarlint/ 183 | 184 | # Crashlytics plugin (for Android Studio and IntelliJ) 185 | com_crashlytics_export_strings.xml 186 | crashlytics.properties 187 | crashlytics-build.properties 188 | fabric.properties 189 | 190 | # Editor-based Rest Client 191 | .idea/httpRequests 192 | 193 | # Android studio 3.1+ serialized cache file 194 | .idea/caches/build_file_checksums.ser 195 | 196 | ### JetBrains Patch ### 197 | # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 198 | 199 | # *.iml 200 | # modules.xml 201 | # .idea/misc.xml 202 | # *.ipr 203 | 204 | # Sonarlint plugin 205 | # https://plugins.jetbrains.com/plugin/7973-sonarlint 206 | .idea/**/sonarlint/ 207 | 208 | # SonarQube Plugin 209 | # https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin 210 | .idea/**/sonarIssues.xml 211 | 212 | # Markdown Navigator plugin 213 | # https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced 214 | .idea/**/markdown-navigator.xml 215 | .idea/**/markdown-navigator-enh.xml 216 | .idea/**/markdown-navigator/ 217 | 218 | # Cache file creation bug 219 | # See https://youtrack.jetbrains.com/issue/JBR-2257 220 | .idea/$CACHE_FILE$ 221 | 222 | # CodeStream plugin 223 | # https://plugins.jetbrains.com/plugin/12206-codestream 224 | .idea/codestream.xml 225 | 226 | # Azure Toolkit for IntelliJ plugin 227 | # https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij 228 | .idea/**/azureSettings.xml 229 | 230 | # End of https://www.toptal.com/developers/gitignore/api/jetbrains 231 | 232 | # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode 233 | # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode 234 | 235 | ### VisualStudioCode ### 236 | .vscode/* 237 | !.vscode/settings.json 238 | !.vscode/tasks.json 239 | !.vscode/launch.json 240 | !.vscode/extensions.json 241 | !.vscode/*.code-snippets 242 | 243 | # Local History for Visual Studio Code 244 | .history/ 245 | 246 | # Built Visual Studio Code Extensions 247 | *.vsix 248 | 249 | ### VisualStudioCode Patch ### 250 | # Ignore all local history of files 251 | .history 252 | .ionide 253 | 254 | # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode 255 | 256 | # Created by https://www.toptal.com/developers/gitignore/api/emacs 257 | # Edit at https://www.toptal.com/developers/gitignore?templates=emacs 258 | 259 | ### Emacs ### 260 | # -*- mode: gitignore; -*- 261 | *~ 262 | \#*\# 263 | /.emacs.desktop 264 | /.emacs.desktop.lock 265 | *.elc 266 | auto-save-list 267 | tramp 268 | .\#* 269 | 270 | # Org-mode 271 | .org-id-locations 272 | *_archive 273 | 274 | # flymake-mode 275 | *_flymake.* 276 | 277 | # eshell files 278 | /eshell/history 279 | /eshell/lastdir 280 | 281 | # elpa packages 282 | /elpa/ 283 | 284 | # reftex files 285 | *.rel 286 | 287 | # AUCTeX auto folder 288 | /auto/ 289 | 290 | # cask packages 291 | .cask/ 292 | dist/ 293 | 294 | # Flycheck 295 | flycheck_*.el 296 | 297 | # server auth directory 298 | /server/ 299 | 300 | # projectiles files 301 | .projectile 302 | 303 | # directory configuration 304 | .dir-locals.el 305 | 306 | # network security 307 | /network-security.data 308 | 309 | # End of https://www.toptal.com/developers/gitignore/api/emacs 310 | 311 | # Created by https://www.toptal.com/developers/gitignore/api/vim 312 | # Edit at https://www.toptal.com/developers/gitignore?templates=vim 313 | 314 | ### Vim ### 315 | # Swap 316 | [._]*.s[a-v][a-z] 317 | !*.svg # comment out if you don't need vector files 318 | [._]*.sw[a-p] 319 | [._]s[a-rt-v][a-z] 320 | [._]ss[a-gi-z] 321 | [._]sw[a-p] 322 | 323 | # Session 324 | Session.vim 325 | Sessionx.vim 326 | 327 | # Temporary 328 | .netrwhist 329 | *~ 330 | # Auto-generated tag files 331 | tags 332 | # Persistent undo 333 | [._]*.un~ 334 | 335 | # End of https://www.toptal.com/developers/gitignore/api/vim 336 | 337 | # Created by https://www.toptal.com/developers/gitignore/api/yarn 338 | # Edit at https://www.toptal.com/developers/gitignore?templates=yarn 339 | 340 | ### yarn ### 341 | # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored 342 | 343 | .yarn/* 344 | !.yarn/releases 345 | !.yarn/patches 346 | !.yarn/plugins 347 | !.yarn/sdks 348 | !.yarn/versions 349 | 350 | # if you are NOT using Zero-installs, then: 351 | # comment the following lines 352 | # !.yarn/cache 353 | 354 | # and uncomment the following lines 355 | .pnp.* 356 | 357 | # End of https://www.toptal.com/developers/gitignore/api/yarn 358 | 359 | # Created by https://www.toptal.com/developers/gitignore/api/node 360 | # Edit at https://www.toptal.com/developers/gitignore?templates=node 361 | 362 | ### Node ### 363 | # Logs 364 | logs 365 | *.log 366 | npm-debug.log* 367 | yarn-debug.log* 368 | yarn-error.log* 369 | lerna-debug.log* 370 | .pnpm-debug.log* 371 | 372 | # Diagnostic reports (https://nodejs.org/api/report.html) 373 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 374 | 375 | # Runtime data 376 | pids 377 | *.pid 378 | *.seed 379 | *.pid.lock 380 | 381 | # Directory for instrumented libs generated by jscoverage/JSCover 382 | lib-cov 383 | 384 | # Coverage directory used by tools like istanbul 385 | coverage 386 | *.lcov 387 | 388 | # nyc test coverage 389 | .nyc_output 390 | 391 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 392 | .grunt 393 | 394 | # Bower dependency directory (https://bower.io/) 395 | bower_components 396 | 397 | # node-waf configuration 398 | .lock-wscript 399 | 400 | # Compiled binary addons (https://nodejs.org/api/addons.html) 401 | build/Release 402 | 403 | # Dependency directories 404 | node_modules/ 405 | jspm_packages/ 406 | 407 | # Snowpack dependency directory (https://snowpack.dev/) 408 | web_modules/ 409 | 410 | # TypeScript cache 411 | *.tsbuildinfo 412 | 413 | # Optional npm cache directory 414 | .npm 415 | 416 | # Optional eslint cache 417 | .eslintcache 418 | 419 | # Optional stylelint cache 420 | .stylelintcache 421 | 422 | # Microbundle cache 423 | .rpt2_cache/ 424 | .rts2_cache_cjs/ 425 | .rts2_cache_es/ 426 | .rts2_cache_umd/ 427 | 428 | # Optional REPL history 429 | .node_repl_history 430 | 431 | # Output of 'npm pack' 432 | *.tgz 433 | 434 | # Yarn Integrity file 435 | .yarn-integrity 436 | 437 | # dotenv environment variable files 438 | .env 439 | .env.development.local 440 | .env.test.local 441 | .env.production.local 442 | .env.local 443 | 444 | # parcel-bundler cache (https://parceljs.org/) 445 | .cache 446 | .parcel-cache 447 | 448 | # Next.js build output 449 | .next 450 | out 451 | 452 | # Nuxt.js build / generate output 453 | .nuxt 454 | dist 455 | 456 | # Gatsby files 457 | .cache/ 458 | # Comment in the public line in if your project uses Gatsby and not Next.js 459 | # https://nextjs.org/blog/next-9-1#public-directory-support 460 | # public 461 | 462 | # vuepress build output 463 | .vuepress/dist 464 | 465 | # vuepress v2.x temp and cache directory 466 | .temp 467 | 468 | # Docusaurus cache and generated files 469 | .docusaurus 470 | 471 | # Serverless directories 472 | .serverless/ 473 | 474 | # FuseBox cache 475 | .fusebox/ 476 | 477 | # DynamoDB Local files 478 | .dynamodb/ 479 | 480 | # TernJS port file 481 | .tern-port 482 | 483 | # Stores VSCode versions used for testing VSCode extensions 484 | .vscode-test 485 | 486 | # yarn v2 487 | .yarn/cache 488 | .yarn/unplugged 489 | .yarn/build-state.yml 490 | .yarn/install-state.gz 491 | .pnp.* 492 | 493 | ### Node Patch ### 494 | # Serverless Webpack directories 495 | .webpack/ 496 | 497 | # Optional stylelint cache 498 | 499 | # SvelteKit build / generate output 500 | .svelte-kit 501 | 502 | # End of https://www.toptal.com/developers/gitignore/api/node 503 | 504 | # Project-specific settings (tail) 505 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: ['@willbooster/eslint-config-ts'], 4 | plugins: ['svelte3'], 5 | overrides: [ 6 | { 7 | files: ['*.svelte'], 8 | processor: 'svelte3/svelte3', 9 | }, 10 | ], 11 | settings: { 12 | 'svelte3/ignore-styles': (attributes) => attributes.lang === 'scss', 13 | 'svelte3/typescript': require('typescript'), 14 | }, 15 | }; 16 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { "root": true, "extends": ["@willbooster/eslint-config-ts"] } 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | *.vcproj text eol=crlf 4 | 5 | *.cjs text eol=lf 6 | *.cpp text eol=lf 7 | *.cts text eol=lf 8 | *.dart text eol=lf 9 | *.htm text eol=lf 10 | *.html text eol=lf 11 | *.js text eol=lf 12 | *.json text eol=lf 13 | *.json5 text eol=lf 14 | *.jsx text eol=lf 15 | *.mjs text eol=lf 16 | *.mts text eol=lf 17 | *.pu text eol=lf 18 | *.puml text eol=lf 19 | *.rb text eol=lf 20 | *.ts text eol=lf 21 | *.tsx text eol=lf 22 | *.vue text eol=lf 23 | *.yaml text eol=lf 24 | *.yml text eol=lf 25 | *.go text eol=lf 26 | *.gradle text eol=lf 27 | *.py text eol=lf 28 | *.md text eol=lf 29 | -------------------------------------------------------------------------------- /.github/workflows/add-issue-to-project.yml: -------------------------------------------------------------------------------- 1 | name: Add issue to github project 2 | on: 3 | issues: 4 | types: 5 | - labeled 6 | jobs: 7 | add-issue-to-project: 8 | uses: WillBooster/reusable-workflows/.github/workflows/add-issue-to-project.yml@main 9 | secrets: 10 | GH_PROJECT_URL: ${{ secrets.GH_PROJECT_URL }} 11 | GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} 12 | -------------------------------------------------------------------------------- /.github/workflows/close-comment.yml: -------------------------------------------------------------------------------- 1 | name: Add close comment 2 | on: 3 | pull_request: 4 | types: 5 | - opened 6 | jobs: 7 | close-comment: 8 | uses: WillBooster/reusable-workflows/.github/workflows/close-comment.yml@main 9 | -------------------------------------------------------------------------------- /.github/workflows/notify-ready.yml: -------------------------------------------------------------------------------- 1 | name: Notify ready 2 | on: 3 | issues: 4 | types: 5 | - labeled 6 | jobs: 7 | notify-ready: 8 | uses: WillBooster/reusable-workflows/.github/workflows/notify-ready.yml@main 9 | secrets: 10 | DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL_FOR_READY }} 11 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | - cron: 0 5 * * 0 6 | concurrency: 7 | group: ${{ github.workflow }} 8 | cancel-in-progress: false 9 | jobs: 10 | release: 11 | uses: WillBooster/reusable-workflows/.github/workflows/release.yml@main 12 | with: 13 | github_hosted_runner: true 14 | secrets: 15 | DOT_ENV: ${{ secrets.DOT_ENV }} 16 | GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} 17 | -------------------------------------------------------------------------------- /.github/workflows/semantic-pr.yml: -------------------------------------------------------------------------------- 1 | name: Lint PR title 2 | on: 3 | pull_request_target: 4 | types: 5 | - opened 6 | - edited 7 | - synchronize 8 | jobs: 9 | semantic-pr: 10 | uses: WillBooster/reusable-workflows/.github/workflows/semantic-pr.yml@main 11 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Test 2 | on: 3 | pull_request: 4 | paths-ignore: 5 | - '**.md' 6 | - '**/docs/**' 7 | push: 8 | branches: 9 | - main 10 | - wbfy 11 | - renovate/** 12 | paths-ignore: 13 | - '**.md' 14 | - '**/docs/**' 15 | concurrency: 16 | group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} 17 | cancel-in-progress: true 18 | jobs: 19 | test: 20 | uses: WillBooster/reusable-workflows/.github/workflows/test.yml@main 21 | with: 22 | github_hosted_runner: true 23 | secrets: 24 | GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} 25 | -------------------------------------------------------------------------------- /.github/workflows/wbfy-merge.yml: -------------------------------------------------------------------------------- 1 | name: Merge wbfy 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | - cron: 9 16 * * * 6 | jobs: 7 | wbfy-merge: 8 | uses: WillBooster/reusable-workflows/.github/workflows/wbfy-merge.yml@main 9 | with: 10 | github_hosted_runner: true 11 | secrets: 12 | GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} 13 | -------------------------------------------------------------------------------- /.github/workflows/wbfy.yml: -------------------------------------------------------------------------------- 1 | name: Willboosterify 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | - cron: 7 14 * * * 6 | jobs: 7 | wbfy: 8 | uses: WillBooster/reusable-workflows/.github/workflows/wbfy.yml@main 9 | with: 10 | github_hosted_runner: true 11 | secrets: 12 | GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Project-specific settings (head) 2 | 3 | dist.zip 4 | 5 | # Generated by @willbooster/willboosterify 6 | 7 | .devcontainer/ 8 | dist/ 9 | temp/ 10 | Icon[ ] 11 | !.keep 12 | test-results/ 13 | # Created by https://www.toptal.com/developers/gitignore/api/windows 14 | # Edit at https://www.toptal.com/developers/gitignore?templates=windows 15 | 16 | ### Windows ### 17 | # Windows thumbnail cache files 18 | Thumbs.db 19 | Thumbs.db:encryptable 20 | ehthumbs.db 21 | ehthumbs_vista.db 22 | 23 | # Dump file 24 | *.stackdump 25 | 26 | # Folder config file 27 | [Dd]esktop.ini 28 | 29 | # Recycle Bin used on file shares 30 | $RECYCLE.BIN/ 31 | 32 | # Windows Installer files 33 | *.cab 34 | *.msi 35 | *.msix 36 | *.msm 37 | *.msp 38 | 39 | # Windows shortcuts 40 | *.lnk 41 | 42 | # End of https://www.toptal.com/developers/gitignore/api/windows 43 | 44 | # Created by https://www.toptal.com/developers/gitignore/api/macos 45 | # Edit at https://www.toptal.com/developers/gitignore?templates=macos 46 | 47 | ### macOS ### 48 | # General 49 | .DS_Store 50 | .AppleDouble 51 | .LSOverride 52 | 53 | # Icon must end with two \r 54 | Icon 55 | 56 | # Thumbnails 57 | ._* 58 | 59 | # Files that might appear in the root of a volume 60 | .DocumentRevisions-V100 61 | .fseventsd 62 | .Spotlight-V100 63 | .TemporaryItems 64 | .Trashes 65 | .VolumeIcon.icns 66 | .com.apple.timemachine.donotpresent 67 | 68 | # Directories potentially created on remote AFP share 69 | .AppleDB 70 | .AppleDesktop 71 | Network Trash Folder 72 | Temporary Items 73 | .apdisk 74 | 75 | ### macOS Patch ### 76 | # iCloud generated files 77 | *.icloud 78 | 79 | # End of https://www.toptal.com/developers/gitignore/api/macos 80 | 81 | # Created by https://www.toptal.com/developers/gitignore/api/linux 82 | # Edit at https://www.toptal.com/developers/gitignore?templates=linux 83 | 84 | ### Linux ### 85 | *~ 86 | 87 | # temporary files which can be created if a process still has a handle open of a deleted file 88 | .fuse_hidden* 89 | 90 | # KDE directory preferences 91 | .directory 92 | 93 | # Linux trash folder which might appear on any partition or disk 94 | .Trash-* 95 | 96 | # .nfs files are created when an open file is removed but is still being accessed 97 | .nfs* 98 | 99 | # End of https://www.toptal.com/developers/gitignore/api/linux 100 | 101 | # Created by https://www.toptal.com/developers/gitignore/api/jetbrains 102 | # Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains 103 | 104 | ### JetBrains ### 105 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider 106 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 107 | 108 | # User-specific stuff 109 | .idea/**/workspace.xml 110 | .idea/**/tasks.xml 111 | .idea/**/usage.statistics.xml 112 | .idea/**/dictionaries 113 | .idea/**/shelf 114 | 115 | # AWS User-specific 116 | .idea/**/aws.xml 117 | 118 | # Generated files 119 | .idea/**/contentModel.xml 120 | 121 | # Sensitive or high-churn files 122 | .idea/**/dataSources/ 123 | .idea/**/dataSources.ids 124 | .idea/**/dataSources.local.xml 125 | .idea/**/sqlDataSources.xml 126 | .idea/**/dynamic.xml 127 | .idea/**/uiDesigner.xml 128 | .idea/**/dbnavigator.xml 129 | 130 | # Gradle 131 | .idea/**/gradle.xml 132 | .idea/**/libraries 133 | 134 | # Gradle and Maven with auto-import 135 | # When using Gradle or Maven with auto-import, you should exclude module files, 136 | # since they will be recreated, and may cause churn. Uncomment if using 137 | # auto-import. 138 | # .idea/artifacts 139 | # .idea/compiler.xml 140 | # .idea/jarRepositories.xml 141 | # .idea/modules.xml 142 | # .idea/*.iml 143 | # .idea/modules 144 | # *.iml 145 | # *.ipr 146 | 147 | # CMake 148 | cmake-build-*/ 149 | 150 | # Mongo Explorer plugin 151 | .idea/**/mongoSettings.xml 152 | 153 | # File-based project format 154 | *.iws 155 | 156 | # IntelliJ 157 | out/ 158 | 159 | # mpeltonen/sbt-idea plugin 160 | .idea_modules/ 161 | 162 | # JIRA plugin 163 | atlassian-ide-plugin.xml 164 | 165 | # Cursive Clojure plugin 166 | .idea/replstate.xml 167 | 168 | # SonarLint plugin 169 | .idea/sonarlint/ 170 | 171 | # Crashlytics plugin (for Android Studio and IntelliJ) 172 | com_crashlytics_export_strings.xml 173 | crashlytics.properties 174 | crashlytics-build.properties 175 | fabric.properties 176 | 177 | # Editor-based Rest Client 178 | .idea/httpRequests 179 | 180 | # Android studio 3.1+ serialized cache file 181 | .idea/caches/build_file_checksums.ser 182 | 183 | ### JetBrains Patch ### 184 | # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 185 | 186 | # *.iml 187 | # modules.xml 188 | # .idea/misc.xml 189 | # *.ipr 190 | 191 | # Sonarlint plugin 192 | # https://plugins.jetbrains.com/plugin/7973-sonarlint 193 | .idea/**/sonarlint/ 194 | 195 | # SonarQube Plugin 196 | # https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin 197 | .idea/**/sonarIssues.xml 198 | 199 | # Markdown Navigator plugin 200 | # https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced 201 | .idea/**/markdown-navigator.xml 202 | .idea/**/markdown-navigator-enh.xml 203 | .idea/**/markdown-navigator/ 204 | 205 | # Cache file creation bug 206 | # See https://youtrack.jetbrains.com/issue/JBR-2257 207 | .idea/$CACHE_FILE$ 208 | 209 | # CodeStream plugin 210 | # https://plugins.jetbrains.com/plugin/12206-codestream 211 | .idea/codestream.xml 212 | 213 | # Azure Toolkit for IntelliJ plugin 214 | # https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij 215 | .idea/**/azureSettings.xml 216 | 217 | # End of https://www.toptal.com/developers/gitignore/api/jetbrains 218 | 219 | # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode 220 | # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode 221 | 222 | ### VisualStudioCode ### 223 | .vscode/* 224 | !.vscode/settings.json 225 | !.vscode/tasks.json 226 | !.vscode/launch.json 227 | !.vscode/extensions.json 228 | !.vscode/*.code-snippets 229 | 230 | # Local History for Visual Studio Code 231 | .history/ 232 | 233 | # Built Visual Studio Code Extensions 234 | *.vsix 235 | 236 | ### VisualStudioCode Patch ### 237 | # Ignore all local history of files 238 | .history 239 | .ionide 240 | 241 | # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode 242 | 243 | # Created by https://www.toptal.com/developers/gitignore/api/emacs 244 | # Edit at https://www.toptal.com/developers/gitignore?templates=emacs 245 | 246 | ### Emacs ### 247 | # -*- mode: gitignore; -*- 248 | *~ 249 | \#*\# 250 | /.emacs.desktop 251 | /.emacs.desktop.lock 252 | *.elc 253 | auto-save-list 254 | tramp 255 | .\#* 256 | 257 | # Org-mode 258 | .org-id-locations 259 | *_archive 260 | 261 | # flymake-mode 262 | *_flymake.* 263 | 264 | # eshell files 265 | /eshell/history 266 | /eshell/lastdir 267 | 268 | # elpa packages 269 | /elpa/ 270 | 271 | # reftex files 272 | *.rel 273 | 274 | # AUCTeX auto folder 275 | /auto/ 276 | 277 | # cask packages 278 | .cask/ 279 | dist/ 280 | 281 | # Flycheck 282 | flycheck_*.el 283 | 284 | # server auth directory 285 | /server/ 286 | 287 | # projectiles files 288 | .projectile 289 | 290 | # directory configuration 291 | .dir-locals.el 292 | 293 | # network security 294 | /network-security.data 295 | 296 | 297 | # End of https://www.toptal.com/developers/gitignore/api/emacs 298 | 299 | # Created by https://www.toptal.com/developers/gitignore/api/vim 300 | # Edit at https://www.toptal.com/developers/gitignore?templates=vim 301 | 302 | ### Vim ### 303 | # Swap 304 | [._]*.s[a-v][a-z] 305 | !*.svg # comment out if you don't need vector files 306 | [._]*.sw[a-p] 307 | [._]s[a-rt-v][a-z] 308 | [._]ss[a-gi-z] 309 | [._]sw[a-p] 310 | 311 | # Session 312 | Session.vim 313 | Sessionx.vim 314 | 315 | # Temporary 316 | .netrwhist 317 | *~ 318 | # Auto-generated tag files 319 | tags 320 | # Persistent undo 321 | [._]*.un~ 322 | 323 | # End of https://www.toptal.com/developers/gitignore/api/vim 324 | 325 | # Created by https://www.toptal.com/developers/gitignore/api/yarn 326 | # Edit at https://www.toptal.com/developers/gitignore?templates=yarn 327 | 328 | ### yarn ### 329 | # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored 330 | 331 | .yarn/* 332 | !.yarn/releases 333 | !.yarn/patches 334 | !.yarn/plugins 335 | !.yarn/sdks 336 | !.yarn/versions 337 | 338 | # if you are NOT using Zero-installs, then: 339 | # comment the following lines 340 | # !.yarn/cache 341 | 342 | # and uncomment the following lines 343 | .pnp.* 344 | 345 | # End of https://www.toptal.com/developers/gitignore/api/yarn 346 | 347 | # Created by https://www.toptal.com/developers/gitignore/api/node 348 | # Edit at https://www.toptal.com/developers/gitignore?templates=node 349 | 350 | ### Node ### 351 | # Logs 352 | logs 353 | *.log 354 | npm-debug.log* 355 | yarn-debug.log* 356 | yarn-error.log* 357 | lerna-debug.log* 358 | .pnpm-debug.log* 359 | 360 | # Diagnostic reports (https://nodejs.org/api/report.html) 361 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 362 | 363 | # Runtime data 364 | pids 365 | *.pid 366 | *.seed 367 | *.pid.lock 368 | 369 | # Directory for instrumented libs generated by jscoverage/JSCover 370 | lib-cov 371 | 372 | # Coverage directory used by tools like istanbul 373 | coverage 374 | *.lcov 375 | 376 | # nyc test coverage 377 | .nyc_output 378 | 379 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 380 | .grunt 381 | 382 | # Bower dependency directory (https://bower.io/) 383 | bower_components 384 | 385 | # node-waf configuration 386 | .lock-wscript 387 | 388 | # Compiled binary addons (https://nodejs.org/api/addons.html) 389 | build/Release 390 | 391 | # Dependency directories 392 | node_modules/ 393 | jspm_packages/ 394 | 395 | # Snowpack dependency directory (https://snowpack.dev/) 396 | web_modules/ 397 | 398 | # TypeScript cache 399 | *.tsbuildinfo 400 | 401 | # Optional npm cache directory 402 | .npm 403 | 404 | # Optional eslint cache 405 | .eslintcache 406 | 407 | # Optional stylelint cache 408 | .stylelintcache 409 | 410 | # Microbundle cache 411 | .rpt2_cache/ 412 | .rts2_cache_cjs/ 413 | .rts2_cache_es/ 414 | .rts2_cache_umd/ 415 | 416 | # Optional REPL history 417 | .node_repl_history 418 | 419 | # Output of 'npm pack' 420 | *.tgz 421 | 422 | # Yarn Integrity file 423 | .yarn-integrity 424 | 425 | # dotenv environment variable files 426 | .env 427 | .env.development.local 428 | .env.test.local 429 | .env.production.local 430 | .env.local 431 | 432 | # parcel-bundler cache (https://parceljs.org/) 433 | .cache 434 | .parcel-cache 435 | 436 | # Next.js build output 437 | .next 438 | out 439 | 440 | # Nuxt.js build / generate output 441 | .nuxt 442 | dist 443 | 444 | # Gatsby files 445 | .cache/ 446 | # Comment in the public line in if your project uses Gatsby and not Next.js 447 | # https://nextjs.org/blog/next-9-1#public-directory-support 448 | # public 449 | 450 | # vuepress build output 451 | .vuepress/dist 452 | 453 | # vuepress v2.x temp and cache directory 454 | .temp 455 | 456 | # Docusaurus cache and generated files 457 | .docusaurus 458 | 459 | # Serverless directories 460 | .serverless/ 461 | 462 | # FuseBox cache 463 | .fusebox/ 464 | 465 | # DynamoDB Local files 466 | .dynamodb/ 467 | 468 | # TernJS port file 469 | .tern-port 470 | 471 | # Stores VSCode versions used for testing VSCode extensions 472 | .vscode-test 473 | 474 | # yarn v2 475 | .yarn/cache 476 | .yarn/unplugged 477 | .yarn/build-state.yml 478 | .yarn/install-state.gz 479 | .pnp.* 480 | 481 | ### Node Patch ### 482 | # Serverless Webpack directories 483 | .webpack/ 484 | 485 | # Optional stylelint cache 486 | 487 | # SvelteKit build / generate output 488 | .svelte-kit 489 | 490 | # End of https://www.toptal.com/developers/gitignore/api/node 491 | 492 | # Project-specific settings (tail) 493 | -------------------------------------------------------------------------------- /.husky/post-merge: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" 5 | 6 | run_if_changed() { 7 | if echo "$changed_files" | grep --quiet -E "$1"; then 8 | eval "$2" 9 | fi 10 | } 11 | 12 | run_if_changed "\..+-version" "asdf plugin update --all" 13 | run_if_changed "\..+-version" "asdf install" 14 | run_if_changed "package\.json" "yarn" 15 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | node node_modules/.bin/lint-staged 5 | -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | node node_modules/.bin/tsc --noEmit --Pretty 5 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/plantuml-visualizer.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/watcherTasks.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 16 | 24 | 25 | 36 | 44 | 45 | 56 | 64 | 65 | 76 | 84 | 85 | 96 | 104 | 105 | 116 | 124 | 125 | 126 | -------------------------------------------------------------------------------- /.lintstagedrc.cjs: -------------------------------------------------------------------------------- 1 | const micromatch = require('micromatch'); 2 | 3 | module.exports = { 4 | './{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}': [ 5 | 'node node_modules/.bin/eslint --fix', 6 | 'node node_modules/.bin/prettier --cache --write', 7 | ], 8 | './**/*.{cjs,css,cts,htm,html,js,json,json5,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}': (files) => { 9 | files = micromatch.not(files, './{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}'); 10 | const filteredFiles = files.filter((file) => !file.includes('/test-fixtures/') && !file.includes('/packages/')); 11 | if (filteredFiles.length === 0) return []; 12 | const commands = [`node node_modules/.bin/prettier --cache --write ${filteredFiles.join(' ')}`]; 13 | if (filteredFiles.some((file) => file.endsWith('package.json'))) { 14 | commands.push('node node_modules/.bin/sort-package-json'); 15 | } 16 | return commands; 17 | }, 18 | }; 19 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | # Project-specific settings (head) 2 | 3 | 4 | # Generated by @willbooster/willboosterify 5 | 6 | 3rd-party/ 7 | android/ 8 | ios/ 9 | no-format/ 10 | test-fixtures/ 11 | *.d.ts 12 | *.min.js 13 | .yarn/ 14 | .pnp.js 15 | dist.zip 16 | 17 | .devcontainer/ 18 | dist/ 19 | temp/ 20 | Icon[ ] 21 | !.keep 22 | test-results/ 23 | # Created by https://www.toptal.com/developers/gitignore/api/windows 24 | # Edit at https://www.toptal.com/developers/gitignore?templates=windows 25 | 26 | ### Windows ### 27 | # Windows thumbnail cache files 28 | Thumbs.db 29 | Thumbs.db:encryptable 30 | ehthumbs.db 31 | ehthumbs_vista.db 32 | 33 | # Dump file 34 | *.stackdump 35 | 36 | # Folder config file 37 | [Dd]esktop.ini 38 | 39 | # Recycle Bin used on file shares 40 | $RECYCLE.BIN/ 41 | 42 | # Windows Installer files 43 | *.cab 44 | *.msi 45 | *.msix 46 | *.msm 47 | *.msp 48 | 49 | # Windows shortcuts 50 | *.lnk 51 | 52 | # End of https://www.toptal.com/developers/gitignore/api/windows 53 | 54 | # Created by https://www.toptal.com/developers/gitignore/api/macos 55 | # Edit at https://www.toptal.com/developers/gitignore?templates=macos 56 | 57 | ### macOS ### 58 | # General 59 | .DS_Store 60 | .AppleDouble 61 | .LSOverride 62 | 63 | # Icon must end with two \r 64 | Icon 65 | 66 | # Thumbnails 67 | ._* 68 | 69 | # Files that might appear in the root of a volume 70 | .DocumentRevisions-V100 71 | .fseventsd 72 | .Spotlight-V100 73 | .TemporaryItems 74 | .Trashes 75 | .VolumeIcon.icns 76 | .com.apple.timemachine.donotpresent 77 | 78 | # Directories potentially created on remote AFP share 79 | .AppleDB 80 | .AppleDesktop 81 | Network Trash Folder 82 | Temporary Items 83 | .apdisk 84 | 85 | ### macOS Patch ### 86 | # iCloud generated files 87 | *.icloud 88 | 89 | # End of https://www.toptal.com/developers/gitignore/api/macos 90 | 91 | # Created by https://www.toptal.com/developers/gitignore/api/linux 92 | # Edit at https://www.toptal.com/developers/gitignore?templates=linux 93 | 94 | ### Linux ### 95 | *~ 96 | 97 | # temporary files which can be created if a process still has a handle open of a deleted file 98 | .fuse_hidden* 99 | 100 | # KDE directory preferences 101 | .directory 102 | 103 | # Linux trash folder which might appear on any partition or disk 104 | .Trash-* 105 | 106 | # .nfs files are created when an open file is removed but is still being accessed 107 | .nfs* 108 | 109 | # End of https://www.toptal.com/developers/gitignore/api/linux 110 | 111 | # Created by https://www.toptal.com/developers/gitignore/api/jetbrains 112 | # Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains 113 | 114 | ### JetBrains ### 115 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider 116 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 117 | 118 | # User-specific stuff 119 | .idea/**/workspace.xml 120 | .idea/**/tasks.xml 121 | .idea/**/usage.statistics.xml 122 | .idea/**/dictionaries 123 | .idea/**/shelf 124 | 125 | # AWS User-specific 126 | .idea/**/aws.xml 127 | 128 | # Generated files 129 | .idea/**/contentModel.xml 130 | 131 | # Sensitive or high-churn files 132 | .idea/**/dataSources/ 133 | .idea/**/dataSources.ids 134 | .idea/**/dataSources.local.xml 135 | .idea/**/sqlDataSources.xml 136 | .idea/**/dynamic.xml 137 | .idea/**/uiDesigner.xml 138 | .idea/**/dbnavigator.xml 139 | 140 | # Gradle 141 | .idea/**/gradle.xml 142 | .idea/**/libraries 143 | 144 | # Gradle and Maven with auto-import 145 | # When using Gradle or Maven with auto-import, you should exclude module files, 146 | # since they will be recreated, and may cause churn. Uncomment if using 147 | # auto-import. 148 | # .idea/artifacts 149 | # .idea/compiler.xml 150 | # .idea/jarRepositories.xml 151 | # .idea/modules.xml 152 | # .idea/*.iml 153 | # .idea/modules 154 | # *.iml 155 | # *.ipr 156 | 157 | # CMake 158 | cmake-build-*/ 159 | 160 | # Mongo Explorer plugin 161 | .idea/**/mongoSettings.xml 162 | 163 | # File-based project format 164 | *.iws 165 | 166 | # IntelliJ 167 | out/ 168 | 169 | # mpeltonen/sbt-idea plugin 170 | .idea_modules/ 171 | 172 | # JIRA plugin 173 | atlassian-ide-plugin.xml 174 | 175 | # Cursive Clojure plugin 176 | .idea/replstate.xml 177 | 178 | # SonarLint plugin 179 | .idea/sonarlint/ 180 | 181 | # Crashlytics plugin (for Android Studio and IntelliJ) 182 | com_crashlytics_export_strings.xml 183 | crashlytics.properties 184 | crashlytics-build.properties 185 | fabric.properties 186 | 187 | # Editor-based Rest Client 188 | .idea/httpRequests 189 | 190 | # Android studio 3.1+ serialized cache file 191 | .idea/caches/build_file_checksums.ser 192 | 193 | ### JetBrains Patch ### 194 | # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 195 | 196 | # *.iml 197 | # modules.xml 198 | # .idea/misc.xml 199 | # *.ipr 200 | 201 | # Sonarlint plugin 202 | # https://plugins.jetbrains.com/plugin/7973-sonarlint 203 | .idea/**/sonarlint/ 204 | 205 | # SonarQube Plugin 206 | # https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin 207 | .idea/**/sonarIssues.xml 208 | 209 | # Markdown Navigator plugin 210 | # https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced 211 | .idea/**/markdown-navigator.xml 212 | .idea/**/markdown-navigator-enh.xml 213 | .idea/**/markdown-navigator/ 214 | 215 | # Cache file creation bug 216 | # See https://youtrack.jetbrains.com/issue/JBR-2257 217 | .idea/$CACHE_FILE$ 218 | 219 | # CodeStream plugin 220 | # https://plugins.jetbrains.com/plugin/12206-codestream 221 | .idea/codestream.xml 222 | 223 | # Azure Toolkit for IntelliJ plugin 224 | # https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij 225 | .idea/**/azureSettings.xml 226 | 227 | # End of https://www.toptal.com/developers/gitignore/api/jetbrains 228 | 229 | # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode 230 | # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode 231 | 232 | ### VisualStudioCode ### 233 | .vscode/* 234 | !.vscode/settings.json 235 | !.vscode/tasks.json 236 | !.vscode/launch.json 237 | !.vscode/extensions.json 238 | !.vscode/*.code-snippets 239 | 240 | # Local History for Visual Studio Code 241 | .history/ 242 | 243 | # Built Visual Studio Code Extensions 244 | *.vsix 245 | 246 | ### VisualStudioCode Patch ### 247 | # Ignore all local history of files 248 | .history 249 | .ionide 250 | 251 | # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode 252 | 253 | # Created by https://www.toptal.com/developers/gitignore/api/emacs 254 | # Edit at https://www.toptal.com/developers/gitignore?templates=emacs 255 | 256 | ### Emacs ### 257 | # -*- mode: gitignore; -*- 258 | *~ 259 | \#*\# 260 | /.emacs.desktop 261 | /.emacs.desktop.lock 262 | *.elc 263 | auto-save-list 264 | tramp 265 | .\#* 266 | 267 | # Org-mode 268 | .org-id-locations 269 | *_archive 270 | 271 | # flymake-mode 272 | *_flymake.* 273 | 274 | # eshell files 275 | /eshell/history 276 | /eshell/lastdir 277 | 278 | # elpa packages 279 | /elpa/ 280 | 281 | # reftex files 282 | *.rel 283 | 284 | # AUCTeX auto folder 285 | /auto/ 286 | 287 | # cask packages 288 | .cask/ 289 | dist/ 290 | 291 | # Flycheck 292 | flycheck_*.el 293 | 294 | # server auth directory 295 | /server/ 296 | 297 | # projectiles files 298 | .projectile 299 | 300 | # directory configuration 301 | .dir-locals.el 302 | 303 | # network security 304 | /network-security.data 305 | 306 | # End of https://www.toptal.com/developers/gitignore/api/emacs 307 | 308 | # Created by https://www.toptal.com/developers/gitignore/api/vim 309 | # Edit at https://www.toptal.com/developers/gitignore?templates=vim 310 | 311 | ### Vim ### 312 | # Swap 313 | [._]*.s[a-v][a-z] 314 | !*.svg # comment out if you don't need vector files 315 | [._]*.sw[a-p] 316 | [._]s[a-rt-v][a-z] 317 | [._]ss[a-gi-z] 318 | [._]sw[a-p] 319 | 320 | # Session 321 | Session.vim 322 | Sessionx.vim 323 | 324 | # Temporary 325 | .netrwhist 326 | *~ 327 | # Auto-generated tag files 328 | tags 329 | # Persistent undo 330 | [._]*.un~ 331 | 332 | # End of https://www.toptal.com/developers/gitignore/api/vim 333 | 334 | # Created by https://www.toptal.com/developers/gitignore/api/yarn 335 | # Edit at https://www.toptal.com/developers/gitignore?templates=yarn 336 | 337 | ### yarn ### 338 | # https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored 339 | 340 | .yarn/* 341 | !.yarn/releases 342 | !.yarn/patches 343 | !.yarn/plugins 344 | !.yarn/sdks 345 | !.yarn/versions 346 | 347 | # if you are NOT using Zero-installs, then: 348 | # comment the following lines 349 | # !.yarn/cache 350 | 351 | # and uncomment the following lines 352 | .pnp.* 353 | 354 | # End of https://www.toptal.com/developers/gitignore/api/yarn 355 | 356 | # Created by https://www.toptal.com/developers/gitignore/api/node 357 | # Edit at https://www.toptal.com/developers/gitignore?templates=node 358 | 359 | ### Node ### 360 | # Logs 361 | logs 362 | *.log 363 | npm-debug.log* 364 | yarn-debug.log* 365 | yarn-error.log* 366 | lerna-debug.log* 367 | .pnpm-debug.log* 368 | 369 | # Diagnostic reports (https://nodejs.org/api/report.html) 370 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 371 | 372 | # Runtime data 373 | pids 374 | *.pid 375 | *.seed 376 | *.pid.lock 377 | 378 | # Directory for instrumented libs generated by jscoverage/JSCover 379 | lib-cov 380 | 381 | # Coverage directory used by tools like istanbul 382 | coverage 383 | *.lcov 384 | 385 | # nyc test coverage 386 | .nyc_output 387 | 388 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 389 | .grunt 390 | 391 | # Bower dependency directory (https://bower.io/) 392 | bower_components 393 | 394 | # node-waf configuration 395 | .lock-wscript 396 | 397 | # Compiled binary addons (https://nodejs.org/api/addons.html) 398 | build/Release 399 | 400 | # Dependency directories 401 | node_modules/ 402 | jspm_packages/ 403 | 404 | # Snowpack dependency directory (https://snowpack.dev/) 405 | web_modules/ 406 | 407 | # TypeScript cache 408 | *.tsbuildinfo 409 | 410 | # Optional npm cache directory 411 | .npm 412 | 413 | # Optional eslint cache 414 | .eslintcache 415 | 416 | # Optional stylelint cache 417 | .stylelintcache 418 | 419 | # Microbundle cache 420 | .rpt2_cache/ 421 | .rts2_cache_cjs/ 422 | .rts2_cache_es/ 423 | .rts2_cache_umd/ 424 | 425 | # Optional REPL history 426 | .node_repl_history 427 | 428 | # Output of 'npm pack' 429 | *.tgz 430 | 431 | # Yarn Integrity file 432 | .yarn-integrity 433 | 434 | # dotenv environment variable files 435 | .env 436 | .env.development.local 437 | .env.test.local 438 | .env.production.local 439 | .env.local 440 | 441 | # parcel-bundler cache (https://parceljs.org/) 442 | .cache 443 | .parcel-cache 444 | 445 | # Next.js build output 446 | .next 447 | out 448 | 449 | # Nuxt.js build / generate output 450 | .nuxt 451 | dist 452 | 453 | # Gatsby files 454 | .cache/ 455 | # Comment in the public line in if your project uses Gatsby and not Next.js 456 | # https://nextjs.org/blog/next-9-1#public-directory-support 457 | # public 458 | 459 | # vuepress build output 460 | .vuepress/dist 461 | 462 | # vuepress v2.x temp and cache directory 463 | .temp 464 | 465 | # Docusaurus cache and generated files 466 | .docusaurus 467 | 468 | # Serverless directories 469 | .serverless/ 470 | 471 | # FuseBox cache 472 | .fusebox/ 473 | 474 | # DynamoDB Local files 475 | .dynamodb/ 476 | 477 | # TernJS port file 478 | .tern-port 479 | 480 | # Stores VSCode versions used for testing VSCode extensions 481 | .vscode-test 482 | 483 | # yarn v2 484 | .yarn/cache 485 | .yarn/unplugged 486 | .yarn/build-state.yml 487 | .yarn/install-state.gz 488 | .pnp.* 489 | 490 | ### Node Patch ### 491 | # Serverless Webpack directories 492 | .webpack/ 493 | 494 | # Optional stylelint cache 495 | 496 | # SvelteKit build / generate output 497 | .svelte-kit 498 | 499 | # End of https://www.toptal.com/developers/gitignore/api/node 500 | 501 | # Project-specific settings (tail) 502 | -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- 1 | { 2 | "branches": ["main"], 3 | "plugins": [ 4 | ["@semantic-release/commit-analyzer", { "preset": "conventionalcommits" }], 5 | "@semantic-release/release-notes-generator", 6 | [ 7 | "@semantic-release/github", 8 | { "successComment": false, "labels": ["r: semantic-release"], "releasedLabels": ["released :bookmark:"] } 9 | ], 10 | [ 11 | "semantic-release-firefox-add-on", 12 | { "extensionId": "{d324f64b-b423-4c2b-a9b4-d415705c26a9}", "targetXpi": "dist.xpi", "channel": "listed" } 13 | ], 14 | ["semantic-release-chrome", { "asset": "dist.zip", "extensionId": "ffaloebcmkogfdkemcekamlmfkkmgkcf" }] 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /.renovaterc.json: -------------------------------------------------------------------------------- 1 | { "extends": ["@willbooster"], "packageRules": [{ "packageNames": ["semantic-release"], "enabled": false }] } 2 | -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | nodejs 18.16.1 2 | yarn 1.22.19 3 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "typescript.tsdk": "./node_modules/typescript/lib", 3 | "eslint.packageManager": "yarn", 4 | "[typescript]": { 5 | "editor.rulers": [120], 6 | "editor.defaultFormatter": "esbenp.prettier-vscode" 7 | }, 8 | "[javascript]": { 9 | "editor.rulers": [120], 10 | "editor.defaultFormatter": "esbenp.prettier-vscode" 11 | }, 12 | "[svelte]": { 13 | "editor.defaultFormatter": "svelte.svelte-vscode" 14 | }, 15 | "editor.codeActionsOnSave": { 16 | "source.fixAll.eslint": true 17 | }, 18 | "editor.formatOnSave": true, 19 | "githubPullRequests.defaultMergeMethod": "squash", 20 | "plantuml.render": "PlantUMLServer", 21 | "plantuml.server": "https://willbooster-plantuml.herokuapp.com/" 22 | } 23 | -------------------------------------------------------------------------------- /.yarn/plugins/plugin-auto-install.cjs: -------------------------------------------------------------------------------- 1 | "use strict";var n={name:"plugin-auto-install",factory:n=>{const t=n("child_process"),e=n("crypto"),r=n("fs"),c=n("path"),s="plugin-auto-install v1.9.2";let i=!1,o="";function a(n){try{const t=e.createHash("sha256"),s=c.join(n.cwd,"yarn.lock");r.statSync(s,{throwIfNoEntry:!1})&&t.update(r.readFileSync(s,"utf8"));for(const e of n.workspaces.map((n=>n.cwd)).sort()){const n=c.join(e,"package.json"),s=JSON.parse(r.readFileSync(n,"utf8")),i=Object.keys(s).filter((n=>n.endsWith("ependencies"))),o=[];for(const n of i)o.push(...Object.entries(s[n]).map((([n,t])=>`${n}: ${t}`)));t.update(o.sort().join(","))}return t.digest("hex")}catch{}}function u(n){try{const t=d(n);return r.readFileSync(c.join(t,"hash"),"utf8")}catch{}}function l(n,t){if(!n||n===o)return!1;try{const e=d(t);r.mkdirSync(e,{recursive:!0}),r.writeFileSync(c.join(e,"hash"),n),r.writeFileSync(c.join(e,".gitignore"),".gitignore\nhash"),console.info(`${s} updated dependency hash: ${n}`),o=n}catch{}return!0}function d(n){return c.join(n.cwd,".yarn","plugins","plugin-auto-install")}return{hooks:{validateProject(n){i=!0;const t=a(n);t&&t===u(n)||l(t,n)},afterAllInstalled(n){i=!1;const t=a(n);t&&t===u(n)||l(t,n)},async wrapScriptExecution(n,e,r,c,o){if(i)return n;try{const r=a(e);if(r&&r===u(e))return n;if(!l(r,e))return n;console.info(`${s} is running 'yarn install' due to dependency changes.`),t.spawnSync("yarn",["install"],{cwd:o.cwd,env:o.env}),console.info(`${s} finished 'yarn install'.`);const i=t.spawnSync("yarn",["run",c,...o.args],{cwd:o.cwd,env:o.env,stdio:"inherit",shell:!0});return async()=>i.status||0}catch{}return n}}}}};module.exports=n; 2 | //# sourceMappingURL=index.cjs.map 3 | -------------------------------------------------------------------------------- /.yarn/plugins/plugin-auto-install/.gitignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | hash -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | defaultSemverRangePrefix: '' 2 | 3 | enableGlobalCache: true 4 | 5 | nmMode: hardlinks-global 6 | 7 | nodeLinker: node-modules 8 | 9 | plugins: 10 | - checksum: ce19b56f51c3b3ec807f36dfef041828dbd2ea66757299b28b0e33dc3346a830b230bc81d60c04892a2655f46ebb1a5475c0f47f3ea0df555d8c6ebac87d2ca5 11 | path: .yarn/plugins/plugin-auto-install.cjs 12 | spec: 'https://github.com/WillBooster/yarn-plugin-auto-install/releases/download/v1.9.2/index.cjs' 13 | 14 | yarnPath: .yarn/releases/yarn-4.0.0-rc.47.cjs 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | PlantUML Visualizer 2 | 3 | Copyright (c) 2019 WillBooster Inc. and contributors. 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PlantUML Visualizer 2 | 3 | [![Test](https://github.com/WillBooster/plantuml-visualizer/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/plantuml-visualizer/actions/workflows/test.yml) 4 | [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) 5 | 6 | [![Release](https://github.com/WillBooster/plantuml-visualizer/actions/workflows/release.yml/badge.svg)](https://github.com/WillBooster/plantuml-visualizer/actions/workflows/release.yml) 7 | 8 | :factory: A Chrome / Firefox extension for visualizing PlantUML descriptions. 9 | 10 | ## Release Pages 11 | 12 | - Chrome: https://chrome.google.com/webstore/detail/plantuml-visualizer/ffaloebcmkogfdkemcekamlmfkkmgkcf 13 | - Firefox: https://addons.mozilla.org/firefox/addon/plantuml-visualizer/ 14 | 15 | ## Visualizable Pages 16 | 17 | ### GitHub 18 | 19 | - File Viewer 20 | - https://github.com/WillBooster/plantuml-visualizer/blob/master/puml-sample/class.pu 21 | - `!include` directive: https://github.com/WillBooster/plantuml-visualizer/blob/master/puml-sample/including.pu 22 | - `!includesub` directive: https://github.com/WillBooster/plantuml-visualizer/blob/master/puml-sample/subincluding.pu 23 | - Issues: https://github.com/WillBooster/plantuml-visualizer/issues/54 24 | - Pull Requests 25 | - Added: https://github.com/WillBooster/plantuml-visualizer/pull/49/files 26 | - Deleted: https://github.com/WillBooster/plantuml-visualizer/pull/50/files 27 | - Changed: https://github.com/WillBooster/plantuml-visualizer/pull/24/files 28 | - `!include` directive: https://github.com/WillBooster/plantuml-visualizer/pull/423/files 29 | - Code blocks in README or something 30 | - README.md: https://github.com/WillBooster/plantuml-visualizer/blob/master/puml-sample/README.md 31 | 32 | ### GitLab 33 | 34 | - Any page containing `
` tag with prefix `@startuml` and suffix `@enduml`
 35 | 
 36 | (We will list GitLab pages with testing urls later)
 37 | 
 38 | ### .pu / .puml / .plantuml / .wsd files
 39 | 
 40 | - GitHub Raw Files (only Chrome)
 41 |   - https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/master/puml-sample/class.pu
 42 |   - `!include` directive: https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/master/puml-sample/including.pu
 43 |   - `!includesub` directive: https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/master/puml-sample/subincluding.pu
 44 |   - IMPORTANT NOTE: any extension on Firefox cannot work on GitHub Raw Files due to https://bugzilla.mozilla.org/show_bug.cgi?id=1411641
 45 | - Local Files
 46 |   - file:///C:/Users/XXX/Projects/plantuml-visualizer/puml-sample/class.pu
 47 |   - `!include` directive for local files will NOT be supported because of security problems
 48 |   - Please use another software for rich rendering of local files (e.g. the official PlantUML renderer: https://plantuml.com/en/starting)
 49 |   - IMPORTANT NOTE: if you use Google Chrome, you need to allow this extension to access file URLs
 50 |     1. Open chrome://extensions/?id=ffaloebcmkogfdkemcekamlmfkkmgkcf in Chrome
 51 |     2. Enable "Allow access to file URLs"
 52 |        ![marked-settings](allow-access.png)
 53 | 
 54 | ### Improve Default Allow/Deny Lists
 55 | 
 56 | The default lists are defined at https://github.com/WillBooster/plantuml-visualizer/blob/main/src/constants.ts
 57 | Please help us to improve the default lists for enabling/disabling visualization on specific web pages!
 58 | 
 59 | ## Visualization Examples
 60 | 
 61 | The visualization result of https://github.com/WillBooster/plantuml-visualizer/pull/24/files is as follows.
 62 | 
 63 | ![Example](example.png)
 64 | 
 65 | ## Default Visualization Server
 66 | 
 67 | The default server is https://plantuml-service-willbooster.fly.dev
 68 | ([source code](https://github.com/WillBooster/plantuml-service)).
 69 | You may check the PlantUML version via [this link](https://plantuml-service-willbooster.fly.dev/version).
 70 | 
 71 | You may use another **HTTPS** PlantUML server by changing settings in the configuration window.
 72 | 
 73 | ## Requirements for Development
 74 | 
 75 | - [Node.js](https://nodejs.org/)
 76 |   - We define a recommended version on https://github.com/WillBooster/plantuml-visualizer/blob/main/.node-version
 77 | - [Yarn v1](https://classic.yarnpkg.com/)
 78 | 
 79 | ## Development Preparation
 80 | 
 81 | 1. `yarn` to install the latest dependencies
 82 | 2. `yarn build`
 83 | 3. Open Chrome browser
 84 | 4. Open [chrome://extensions](chrome://extensions)
 85 | 5. Enable `Developer Mode`
 86 | 6. Click `Load Unpacked` and open `dist` directory (`plantuml-visualizer/dist`)
 87 |    - `Load Unpacked` is `パッケージ化されていない拡張機能を読み込む` in Japanese
 88 | 
 89 | ## Development
 90 | 
 91 | 1. `yarn` to install the latest dependencies
 92 | 2. `yarn start`
 93 | 3. Open Chrome
 94 | 4. Rewrite some code files
 95 | 5. Close and Reopen Chrome browser (not only tabs)
 96 |    - or reload this extension in [chrome://extensions](chrome://extensions) and reload pages
 97 | 6. Debug code
 98 | 7. Go to `step 4`
 99 | 
100 | ## Deployment for Chrome
101 | 
102 | 1. Bump version in `manifest.json` and `package.json`
103 | 2. `yarn package`
104 | 3. Open https://chrome.google.com/webstore/developer/dashboard
105 | 4. Upload `dist.zip`
106 | 
107 | ## Deployment for Firefox
108 | 
109 | 1. Bump version in `manifest.json` and `package.json`
110 | 2. `yarn package`
111 | 3. Open https://addons.mozilla.org/en-US/developers/addon/plantuml-visualizer/edit
112 | 4. Upload `dist.zip` file
113 | 


--------------------------------------------------------------------------------
/allow-access.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/20a34e8cab6a894960407936480d63e367efc487/allow-access.png


--------------------------------------------------------------------------------
/babel.config.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "presets": ["@babel/preset-env", "@babel/typescript"],
 3 |   "plugins": ["@babel/proposal-class-properties", "@babel/proposal-numeric-separator"],
 4 |   "env": {
 5 |     "production": {
 6 |       "plugins": [
 7 |         [
 8 |           "transform-remove-console",
 9 |           {
10 |             "exclude": ["error", "info", "warn"]
11 |           }
12 |         ]
13 |       ]
14 |     }
15 |   }
16 | }
17 | 


--------------------------------------------------------------------------------
/example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/20a34e8cab6a894960407936480d63e367efc487/example.png


--------------------------------------------------------------------------------
/icon/icon128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/20a34e8cab6a894960407936480d63e367efc487/icon/icon128.png


--------------------------------------------------------------------------------
/icon/icon16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/20a34e8cab6a894960407936480d63e367efc487/icon/icon16.png


--------------------------------------------------------------------------------
/icon/icon16gray.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/20a34e8cab6a894960407936480d63e367efc487/icon/icon16gray.png


--------------------------------------------------------------------------------
/icon/icon48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WillBooster/plantuml-visualizer/20a34e8cab6a894960407936480d63e367efc487/icon/icon48.png


--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "manifest_version": 2,
 3 |   "name": "PlantUML Visualizer",
 4 |   "description": "A Chrome / Firefox extension for visualizing PlantUML descriptions.",
 5 |   "version": "0.0.0",
 6 |   "browser_action": {
 7 |     "default_icon": "icon/icon16.png",
 8 |     "default_popup": "popup.html"
 9 |   },
10 |   "icons": {
11 |     "16": "icon/icon16.png",
12 |     "48": "icon/icon48.png",
13 |     "128": "icon/icon128.png"
14 |   },
15 |   "permissions": ["https://*/*", "http://*/*", "storage"],
16 |   "background": {
17 |     "scripts": ["background.js"]
18 |   },
19 |   "content_scripts": [
20 |     {
21 |       "matches": ["https://*/*", "http://*/*", "file:///*/*"],
22 |       "js": ["content_scripts.js"]
23 |     }
24 |   ]
25 | }
26 | 


--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "plantuml-visualizer",
 3 |   "version": "0.0.0-semantically-released",
 4 |   "private": true,
 5 |   "description": "A Chrome / Firefox extension for visualizing PlantUML code.",
 6 |   "homepage": "https://github.com/WillBooster/plantuml-visualizer",
 7 |   "bugs": {
 8 |     "url": "https://github.com/WillBooster/plantuml-visualizer/issues"
 9 |   },
10 |   "repository": "github:WillBooster/plantuml-visualizer",
11 |   "license": "Apache-2.0",
12 |   "author": "WillBooster Inc.",
13 |   "scripts": {
14 |     "build": "cross-env NODE_ENV=production yarn build-common",
15 |     "build-common": "yarn recreate-dist && rollup -c",
16 |     "build-dev": "cross-env NODE_ENV=development yarn build-common",
17 |     "cleanup": "yarn format && yarn lint-fix",
18 |     "format": "sort-package-json && yarn prettify",
19 |     "postinstall": "husky install",
20 |     "lint": "eslint --color \"./{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}\"",
21 |     "lint-fix": "yarn lint --fix",
22 |     "prepack": "pinst --disable",
23 |     "postpack": "pinst --enable",
24 |     "package": "rm -f \"*.tgz\" \"*.zip\" && yarn pack && yarn build && cd dist && bestzip ../dist.zip *",
25 |     "prettify": "prettier --cache --color --write \"**/{.*/,}*.{cjs,css,cts,htm,html,js,json,json5,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\"",
26 |     "recreate-dist": "rm -Rf dist && mkdir dist && cp -r src/popup.html icon manifest.json dist/",
27 |     "release": "yarn build && dotenv -- semantic-release",
28 |     "release-test": "dotenv -- semantic-release --dry-run",
29 |     "start": "cross-env NODE_ENV=development yarn build-common -w",
30 |     "test": "playwright test",
31 |     "test/ci-setup": "playwright install chromium",
32 |     "typecheck": "tsc --noEmit --Pretty"
33 |   },
34 |   "prettier": "@willbooster/prettier-config",
35 |   "dependencies": {
36 |     "jquery": "3.7.0",
37 |     "pako": "2.1.0"
38 |   },
39 |   "devDependencies": {
40 |     "@babel/core": "7.22.5",
41 |     "@babel/plugin-proposal-class-properties": "7.18.6",
42 |     "@babel/plugin-proposal-numeric-separator": "7.18.6",
43 |     "@babel/plugin-proposal-optional-chaining": "7.21.0",
44 |     "@babel/preset-env": "7.22.5",
45 |     "@babel/preset-react": "7.22.5",
46 |     "@babel/preset-typescript": "7.22.5",
47 |     "@playwright/test": "1.35.1",
48 |     "@rollup/plugin-babel": "6.0.3",
49 |     "@rollup/plugin-commonjs": "25.0.2",
50 |     "@rollup/plugin-node-resolve": "15.1.0",
51 |     "@tsconfig/svelte": "4.0.1",
52 |     "@types/chrome": "0.0.239",
53 |     "@types/eslint": "8.40.2",
54 |     "@types/jquery": "3.5.16",
55 |     "@types/micromatch": "4.0.2",
56 |     "@types/pako": "2.0.0",
57 |     "@types/sass": "1.43.1",
58 |     "@typescript-eslint/eslint-plugin": "5.60.1",
59 |     "@typescript-eslint/parser": "5.60.1",
60 |     "@willbooster/eslint-config-ts": "10.2.0",
61 |     "@willbooster/prettier-config": "9.1.1",
62 |     "@willbooster/renovate-config": "9.5.0",
63 |     "babel-plugin-transform-remove-console": "6.9.4",
64 |     "bestzip": "2.2.1",
65 |     "conventional-changelog-conventionalcommits": "6.1.0",
66 |     "cross-env": "7.0.3",
67 |     "dotenv-cli": "7.2.1",
68 |     "eslint": "8.43.0",
69 |     "eslint-config-prettier": "8.8.0",
70 |     "eslint-import-resolver-typescript": "3.5.5",
71 |     "eslint-plugin-import": "2.27.5",
72 |     "eslint-plugin-sort-class-members": "1.18.0",
73 |     "eslint-plugin-sort-destructure-keys": "1.5.0",
74 |     "eslint-plugin-svelte3": "4.0.0",
75 |     "eslint-plugin-unicorn": "47.0.0",
76 |     "husky": "8.0.3",
77 |     "lint-staged": "13.2.3",
78 |     "micromatch": "4.0.5",
79 |     "pinst": "3.0.0",
80 |     "prettier": "2.8.8",
81 |     "prettier-plugin-svelte": "2.10.1",
82 |     "rollup": "3.26.0",
83 |     "rollup-plugin-svelte": "7.1.6",
84 |     "rollup-plugin-terser": "7.0.2",
85 |     "sass": "1.63.6",
86 |     "semantic-release": "20.1.3",
87 |     "semantic-release-chrome": "3.2.0",
88 |     "semantic-release-firefox-add-on": "0.2.8",
89 |     "sort-package-json": "2.4.1",
90 |     "svelte": "4.0.1",
91 |     "svelte-check": "3.4.4",
92 |     "svelte-preprocess": "5.0.4",
93 |     "typescript": "5.1.6"
94 |   },
95 |   "packageManager": "yarn@4.0.0-rc.47"
96 | }
97 | 


--------------------------------------------------------------------------------
/puml-sample/README.md:
--------------------------------------------------------------------------------
 1 | # Sample README
 2 | 
 3 | ## Sample code block
 4 | 
 5 | The following code block should be visualized by our extension.
 6 | 
 7 | ```
 8 | @startuml
 9 | class A {
10 |     -int privateField
11 |     +String publicField
12 |     -void privateMethod()
13 |     +int publicMethod()
14 | }
15 | @enduml
16 | ```
17 | 
18 | ## Sample PlantUML files
19 | 
20 | - [class.pu](./class.pu)
21 | - [sequence.wsd](./sequence.wsd)
22 | - [japanese.pu](./japanese.pu)
23 | - [including.pu](./including.pu)
24 | - [subincluding.pu](./subincluding.pu)
25 | 


--------------------------------------------------------------------------------
/puml-sample/class.pu:
--------------------------------------------------------------------------------
 1 | @startuml
 2 | class A {
 3 |     -int privateField
 4 |     +String publicField
 5 |     -void privateMethod()
 6 |     +int publicMethod()
 7 | }
 8 | 
 9 | class B {
10 | }
11 | 
12 | class C {
13 | }
14 | 
15 | A <|-- B
16 | B --> C
17 | @enduml
18 | 


--------------------------------------------------------------------------------
/puml-sample/included.pu:
--------------------------------------------------------------------------------
 1 | @startuml
 2 | state IncludedState {
 3 |     state Sub1
 4 |     state Sub2
 5 |     state Sub3
 6 | 
 7 |     [*] -> Sub1
 8 |     Sub1 -> Sub2
 9 |     Sub2 -> Sub3
10 |     Sub1 -> Sub3
11 |     Sub3 -> [*]
12 | }
13 | @enduml
14 | 


--------------------------------------------------------------------------------
/puml-sample/including.pu:
--------------------------------------------------------------------------------
 1 | @startuml
 2 | !include included.pu
 3 | state State1
 4 | state State2
 5 | 
 6 | [*] -> State1
 7 | State1 -> IncludedState
 8 | IncludedState -> State2
 9 | State2 -> [*]
10 | @enduml
11 | 


--------------------------------------------------------------------------------
/puml-sample/japanese.pu:
--------------------------------------------------------------------------------
1 | @startuml
2 | title シーケンス図
3 | 
4 | 太郎->花子: 認証リクエスト
5 | note right of 花子: 花子が認証処理
6 | 花子->太郎: 認証応答
7 | 
8 | @enduml
9 | 


--------------------------------------------------------------------------------
/puml-sample/sequence.wsd:
--------------------------------------------------------------------------------
1 | title Web Sequence Diagram
2 | 
3 | Alice->Bob: Authentication Request
4 | note right of Bob: Bob thinks about it
5 | Bob->Alice: Authentication Response
6 | 


--------------------------------------------------------------------------------
/puml-sample/subincluded.pu:
--------------------------------------------------------------------------------
 1 | @startuml
 2 | !startsub sub
 3 | state IncludedState1 {
 4 |     state Sub11
 5 |     state Sub12
 6 |     state Sub13
 7 | 
 8 |     [*] -> Sub11
 9 |     Sub11 -> Sub12
10 |     Sub12 -> Sub13
11 |     Sub11 -> Sub13
12 |     Sub13 -> [*]
13 | }
14 | !endsub
15 | 
16 | state IngoredIncludedState {
17 |     state Sub1
18 |     state Sub2
19 |     state Sub3
20 | 
21 |     [*] -> Sub1
22 |     Sub1 -> Sub2
23 |     Sub2 -> Sub3
24 |     Sub1 -> Sub3
25 |     Sub3 -> [*]
26 | }
27 | 
28 | !startsub sub
29 | state IncludedState2 {
30 |     state Sub21
31 |     state Sub22
32 |     state Sub23
33 | 
34 |     [*] -> Sub21
35 |     Sub21 -> Sub22
36 |     Sub22 -> Sub23
37 |     Sub21 -> Sub23
38 |     Sub23 -> [*]
39 | }
40 | !endsub
41 | @enduml
42 | 


--------------------------------------------------------------------------------
/puml-sample/subincluding.pu:
--------------------------------------------------------------------------------
 1 | @startuml
 2 | !includesub subincluded.pu!sub
 3 | state State1
 4 | state State2
 5 | 
 6 | [*] -> State1
 7 | State1 -> IncludedState1
 8 | IncludedState1 -> IngoredIncludedState
 9 | IngoredIncludedState -> IncludedState2
10 | IncludedState2 -> State2
11 | State2 -> [*]
12 | @enduml
13 | 


--------------------------------------------------------------------------------
/rollup.config.mjs:
--------------------------------------------------------------------------------
 1 | import resolve from '@rollup/plugin-node-resolve';
 2 | import commonjs from '@rollup/plugin-commonjs';
 3 | import svelte from 'rollup-plugin-svelte';
 4 | import sveltePreprocess from 'svelte-preprocess';
 5 | import babel from '@rollup/plugin-babel';
 6 | import { terser } from 'rollup-plugin-terser';
 7 | 
 8 | const extensions = ['.mjs', '.js', '.json', '.ts'];
 9 | 
10 | const plugins = [
11 |   resolve({ extensions }),
12 |   commonjs(),
13 |   svelte({ include: 'src/**/*.svelte', preprocess: sveltePreprocess(), emitCss: false }),
14 |   babel({ extensions, babelHelpers: 'bundled', exclude: 'node_modules/**' }),
15 | ];
16 | if (process.env.NODE_ENV === 'production') plugins.push(terser());
17 | 
18 | export default [
19 |   {
20 |     input: 'src/background.ts',
21 |     output: [
22 |       {
23 |         file: 'dist/background.js',
24 |         format: 'es',
25 |         sourcemap: true,
26 |       },
27 |     ],
28 |     plugins,
29 |   },
30 |   {
31 |     input: 'src/contentScripts.ts',
32 |     output: [
33 |       {
34 |         file: 'dist/content_scripts.js',
35 |         format: 'es',
36 |         sourcemap: true,
37 |       },
38 |     ],
39 |     plugins,
40 |   },
41 |   {
42 |     input: 'src/popup.ts',
43 |     output: [
44 |       {
45 |         file: 'dist/popup.js',
46 |         format: 'es',
47 |         sourcemap: true,
48 |       },
49 |     ],
50 |     plugins,
51 |   },
52 | ];
53 | 


--------------------------------------------------------------------------------
/src/background.ts:
--------------------------------------------------------------------------------
 1 | import type { Config } from './config';
 2 | import { Constants } from './constants';
 3 | 
 4 | let config = { ...Constants.defaultConfig };
 5 | 
 6 | chrome.storage.sync.get((storage: Partial) => {
 7 |   if (storage.extensionEnabled !== undefined) config.extensionEnabled = storage.extensionEnabled;
 8 |   if (storage.allowedUrls !== undefined) config.allowedUrls = storage.allowedUrls;
 9 |   if (storage.deniedUrls !== undefined) config.deniedUrls = storage.deniedUrls;
10 |   if (storage.pumlServerUrl !== undefined) config.pumlServerUrl = storage.pumlServerUrl;
11 |   setIcon();
12 | });
13 | 
14 | chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
15 |   switch (request.command) {
16 |     case Constants.commands.getConfig: {
17 |       sendResponse(config);
18 |       break;
19 |     }
20 |     case Constants.commands.getExtensionEnabled: {
21 |       sendResponse(config.extensionEnabled);
22 |       break;
23 |     }
24 |     case Constants.commands.getAllowedUrls: {
25 |       sendResponse(config.allowedUrls);
26 |       break;
27 |     }
28 |     case Constants.commands.getDeniedUrls: {
29 |       sendResponse(config.deniedUrls);
30 |       break;
31 |     }
32 |     case Constants.commands.getPumlServerUrl: {
33 |       sendResponse(config.pumlServerUrl);
34 |       break;
35 |     }
36 |     case Constants.commands.setConfig: {
37 |       config = request.config;
38 |       sendResponse(config);
39 |       chrome.storage.sync.set(config);
40 |       chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
41 |         if (tabs[0].id) chrome.tabs.reload(tabs[0].id);
42 |       });
43 |       break;
44 |     }
45 |     case Constants.commands.toggleExtensionEnabled: {
46 |       config.extensionEnabled = !config.extensionEnabled;
47 |       sendResponse(config.extensionEnabled);
48 |       void chrome.storage.sync.set({ extensionEnabled: config.extensionEnabled });
49 |       setIcon();
50 |       chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
51 |         if (tabs[0].id) void chrome.tabs.reload(tabs[0].id);
52 |       });
53 |       break;
54 |     }
55 |     case Constants.commands.setAllowedUrls: {
56 |       config.allowedUrls = request.allowedUrls;
57 |       sendResponse(config.allowedUrls);
58 |       void chrome.storage.sync.set({ allowedUrls: config.allowedUrls });
59 |       chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
60 |         if (tabs[0].id) void chrome.tabs.reload(tabs[0].id);
61 |       });
62 |       break;
63 |     }
64 |     case Constants.commands.setDeniedUrls: {
65 |       config.deniedUrls = request.deniedUrls;
66 |       sendResponse(config.deniedUrls);
67 |       void chrome.storage.sync.set({ deniedUrls: config.deniedUrls });
68 |       chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
69 |         if (tabs[0].id) void chrome.tabs.reload(tabs[0].id);
70 |       });
71 |       break;
72 |     }
73 |     case Constants.commands.setPumlServerUrl: {
74 |       config.pumlServerUrl = request.pumlServerUrl;
75 |       sendResponse(config.pumlServerUrl);
76 |       void chrome.storage.sync.set({ pumlServerUrl: config.pumlServerUrl });
77 |       chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
78 |         if (tabs[0].id) void chrome.tabs.reload(tabs[0].id);
79 |       });
80 |       break;
81 |     }
82 |   }
83 | });
84 | 
85 | function setIcon(): void {
86 |   chrome.browserAction.setIcon({ path: config.extensionEnabled ? 'icon/icon16.png' : 'icon/icon16gray.png' }, () => {
87 |     // do nothing
88 |   });
89 | }
90 | 


--------------------------------------------------------------------------------
/src/components/BodyContainer.svelte:
--------------------------------------------------------------------------------
 1 | 
2 | 3 |
4 | 5 | 10 | -------------------------------------------------------------------------------- /src/components/Button.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 29 | -------------------------------------------------------------------------------- /src/components/Footer.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 | 28 | -------------------------------------------------------------------------------- /src/components/Header.svelte: -------------------------------------------------------------------------------- 1 |
PlantUML Visualizer
2 | 3 | 13 | -------------------------------------------------------------------------------- /src/components/ItemContainer.svelte: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 | 17 | -------------------------------------------------------------------------------- /src/components/ItemLabel.svelte: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 | 11 | -------------------------------------------------------------------------------- /src/components/Switch.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 11 | 12 | 63 | -------------------------------------------------------------------------------- /src/components/TextField.svelte: -------------------------------------------------------------------------------- 1 | 7 | 8 | {#if multiline} 9 |