项目
在 GitHub 查看

sprout2000/leafview
关于
Minimalist image viewer based on Leaflet.js and Electron.
设计与媒体可以做什么
- Pan and zoom with the mouse wheel
- Browse images in a folder
- Remembers the last opened folder
- Automatically picks up files added to or removed from the folder
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
LeafView
Minimalist image viewer based on Leaflet.js and Electron.
:thumbsup: Features
- Pan and zoom with the mouse wheel
- Browse images in a folder
- Grid view
- Remembers the last opened folder
- Automatically picks up files added to or removed from the folder
- Available in 20 languages
- Automatic updates (macOS and Linux only)
:inbox_tray: Download
Download the latest version of LeafView from the Releases page.
:green_book: Usage
:keyboard: Keyboard Shortcuts
| Key | Function |
|---|---|
| J, Ctrl+N, Cmd/Ctrl+→ | Next Image |
| K, Ctrl+P, Cmd/Ctrl+← | Previous Image |
| + | Zoom In |
| - | Zoom Out |
| 0 | Reset Zoom |
| ← ↑ ↓ → | Pan |
| Fn+Delete or Del | Move to Trash |
| H, Ctrl+G | Toggle Grid View |
:computer_mouse: Mouse Controls
| Mouse | Function |
|---|---|
| Drag | Pan |
| Wheel | Zoom In/Out |
| Double-click | Reset Zoom |
| Right-click | Show Context Menu |
:globe_with_meridians: Supported Languages
| Language | Code |
|---|---|
| اللغة العربية | ar |
| Čeština | cs |
| Deutsch | de |
| English | en |
| Español | es |
| Français | fr |
| हिंदी | hi |
| Magyar | hu |
| Bahasa Indonesia | id |
| Italiano | it |
| 日本語 | ja |
| 한국어 | ko |
| Bahasa Melayu | ms |
| Polski | pl |
| Português | pt |
| Русский | ru |
| Türkçe | tr |
| Українська | uk |
| 简体中文 | zh-CN |
| 繁體中文 | zh-TW |
:beers: Contributing
You can easily contribute to this repository by providing a translation.
- Create
{language_code}.json(e.g.nl.json) insrc/locales, based onen.json. It must have the same keys asen.json. - Import the file and add the language to
languagesinsrc/languages.ts.
+ import nl from "./locales/nl.json";
export const languages: Language[] = [
...
+ { code: "nl", label: "Nederlands", translation: nl },
...
];
- Make sure
npm run lintandnpm testpass (see Development). - Send a pull request to this repository.
:tada: Contributors
Thanks go to these wonderful people! :slightly_smiling_face:
:hammer_and_wrench: Building from Source
You will need to have Node.js and Git installed.
# 1. Clone this repo
git clone https://github.com/sprout2000/leafview.git
# 2. Install dependencies
cd leafview
npm install
# 3. Build the app and create an installer
npm run build && npm run package
The installer will be created in the release directory.
:wrench: Development
# Start the app in development mode
npm run dev
# Lint and format the code with Biome
npm run lint
# Run the tests with Vitest and show the coverage
npm test
The tests are in src/__tests__ (main process) and src/__tests__/web (renderer process).
:copyright: Copyright
Copyright (c) 2020-present sprout2000
探索相关项目
加载中…