更新插件描述,删除多余的语言文件,简化语言支持。

This commit is contained in:
wood chen 2025-03-21 20:05:16 +08:00
parent 22d8922363
commit 7f58303bcf
25 changed files with 4 additions and 195 deletions

View File

@ -1,35 +1,8 @@
# LskyPro Upload Plugin
# LskyPro Uploader Plugin
A plugin for uploading images to LskyPro image hosting service.
obsidian插件, 用于把图片上传到兰空图床
## Features
- Auto upload images from clipboard
- Support uploading to specified album
- Support public/private image permissions
- Support custom domain
- Support token authentication
## Installation
1. Open Obsidian Settings
2. Go to Community Plugins and disable Safe Mode
3. Click Browse and search for "LskyPro Upload"
4. Install and enable the plugin
## Configuration
1. Get your LskyPro token from your LskyPro instance
2. Configure the plugin settings:
- Set your LskyPro domain
- Add your token
- Configure other optional settings
## Usage
1. Copy an image
2. Paste into your note
3. The image will be automatically uploaded to LskyPro
Obsidian plugin for uploading images to LskyPro
## License

View File

@ -3,7 +3,7 @@
"name": "LskyPro Uploader",
"version": "1.0.0",
"minAppVersion": "0.15.0",
"description": "Auto upload images from clipboard to LskyPro.",
"description": "Upload images to LskyPro.",
"author": "woodchen",
"authorUrl": "https://woodchen.ink",
"isDesktopOnly": true,

View File

@ -1,58 +0,0 @@
# Obsidian LskyPro Auto Upload Plugin
这是一个支持直接上传图片到图床[Lsky](https://github.com/lsky-org/lsky-pro)的工具,基于[renmu123/obsidian-image-auto-upload-plugin](https://github.com/renmu123/obsidian-image-auto-upload-plugin.git)改造。
**更新插件后记得重启一下 Obsidian**
# 开始
1. 安装 LskyPro 图床,并进行配置,配置参考[官网](https://www.lsky.pro/)
2. 开启 LskyPro 的接口
3. 使用授权接口获取Token并记录下来
4. 打开插件配置项设置LskyPro域名(例如https://lsky.xxx.com)
5. 设置LskyPro Token
6. 存储策略ID是可选配置根据 LskyPro 的策略和自己的要求来配置,如果只有一个策略,可以不设置
# 特性
## 剪切板上传
支持黏贴剪切板的图片的时候直接上传,目前支持复制系统内图像直接上传。
支持通过设置 `frontmatter` 来控制单个文件的上传,默认值为 `true`,控制关闭请将该值设置为 `false`
支持 ".png", ".jpg", ".jpeg", ".bmp", ".gif", ".svg", ".tiff"因为是直接调用LskyPro接口理论上图床支持的文件都可以
```yaml
---
image-auto-upload: true
---
```
## 批量上传一个文件中的所有图像文件
输入 `ctrl+P` 呼出面板,输入 `upload all images`,点击回车,就会自动开始上传。
路径解析优先级,会依次按照优先级查找:
1. 绝对路径,指基于库的绝对路径
2. 相对路径,以./或../开头
3. 尽可能简短的形式
## 批量下载网络图片到本地
输入 `ctrl+P` 呼出面板,输入 `download all images`,点击回车,就会自动开始下载。只在 win 进行过测试
## 支持右键菜单上传图片
目前已支持标准 md 以及 wiki 格式。支持相对路径以及绝对路径,需要进行正确设置,不然会引发奇怪的问题
## 支持拖拽上传
允许多文件拖拽
# TODO
# 感谢
[renmu123/obsidian-image-auto-upload-plugin](https://github.com/renmu123/obsidian-image-auto-upload-plugin.git)

View File

@ -1,53 +1,11 @@
import { moment } from 'obsidian';
import ar from './locale/ar';
import cz from './locale/cz';
import da from './locale/da';
import de from './locale/de';
import en from './locale/en';
import enGB from './locale/en-gb';
import es from './locale/es';
import fr from './locale/fr';
import hi from './locale/hi';
import id from './locale/id';
import it from './locale/it';
import ja from './locale/ja';
import ko from './locale/ko';
import nl from './locale/nl';
import no from './locale/no';
import pl from './locale/pl';
import pt from './locale/pt';
import ptBR from './locale/pt-br';
import ro from './locale/ro';
import ru from './locale/ru';
import tr from './locale/tr';
import zhCN from './locale/zh-cn';
import zhTW from './locale/zh-tw';
const localeMap: { [k: string]: Partial<typeof en> } = {
ar,
cs: cz,
da,
de,
en,
'en-gb': enGB,
es,
fr,
hi,
id,
it,
ja,
ko,
nl,
nn: no,
pl,
pt,
'pt-br': ptBR,
ro,
ru,
tr,
'zh-cn': zhCN,
'zh-tw': zhTW,
};
const locale = localeMap[moment.locale()];

View File

@ -1,3 +0,0 @@
// العربية
export default {};

View File

@ -1,3 +0,0 @@
// čeština
export default {};

View File

@ -1,3 +0,0 @@
// Dansk
export default {};

View File

@ -1,3 +0,0 @@
// Deutsch
export default {};

View File

@ -1,3 +0,0 @@
// British English
export default {};

View File

@ -1,3 +0,0 @@
// Español
export default {};

View File

@ -1,3 +0,0 @@
// français
export default {};

View File

@ -1,3 +0,0 @@
// हिन्दी
export default {};

View File

@ -1,3 +0,0 @@
// Bahasa Indonesia
export default {};

View File

@ -1,3 +0,0 @@
// Italiano
export default {};

View File

@ -1,3 +0,0 @@
// 日本語
export default {};

View File

@ -1,3 +0,0 @@
// 한국어
export default {};

View File

@ -1,3 +0,0 @@
// Nederlands
export default {};

View File

@ -1,3 +0,0 @@
// Norsk
export default {};

View File

@ -1,3 +0,0 @@
// język polski
export default {};

View File

@ -1,4 +0,0 @@
// Português do Brasil
// Brazilian Portuguese
export default {};

View File

@ -1,3 +0,0 @@
// Português
export default {};

View File

@ -1,3 +0,0 @@
// Română
export default {};

View File

@ -1,3 +0,0 @@
// русский
export default {};

View File

@ -1,3 +0,0 @@
// Türkçe
export default {};

View File

@ -1,3 +0,0 @@
// 繁體中文
export default {};