tronghiant / mupdf-gui

A GUI for mupdf tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SonarCloud

Coverage Lines of Code Duplicated Lines Bugs Code Smells Vulnerabilities Reliability Maintainability Technical Debt Security Rating

mupdf GUI

A electron project act as a GUI for mupdf tool

This project was created using create-vue and using electron-forge for packaging.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

yarn

Compile and Hot-Reload for Development

yarn start

Type-Check, Compile and Minify for Production

yarn make

Run Unit Tests with Vitest

yarn test:unit

Run End-to-End Tests with Playwright

# Install browsers for the first run
npx playwright install

# When testing on CI, must build the project first
yarn build

# Runs the end-to-end tests
yarn test:e2e
# Runs the tests only on Chromium
yarn test:e2e --project=chromium
# Runs the tests of a specific file
yarn test:e2e tests/example.spec.ts
# Runs the tests in debug mode
yarn test:e2e --debug

Lint with ESLint

yarn lint

About

A GUI for mupdf tool


Languages

Language:TypeScript 62.3%Language:Vue 17.9%Language:CSS 17.1%Language:JavaScript 1.4%Language:HTML 1.3%