# typora-images-up
**Repository Path**: ahviplc/typora-images-up
## Basic Information
- **Project Name**: typora-images-up
- **Description**: LC自己的typora自动上传图片images的图床.
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-02-25
- **Last Updated**: 2023-04-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# typora-image
#### 介绍
LC自己的typora自动上传图片images的图床.
```
typora-images-up: LC自己的typora自动上传图片images的图床.
https://gitee.com/ahviplc/typora-images-up
Thobian/typora-plugins-win-img: 解决windows,typora不支持粘贴自动上传图片到服务的问题。
https://github.com/Thobian/typora-plugins-win-img
识别图片本地地址和网络地址的功能好像失效了-还会重复上传问题的解决办法 · Issue #17 · Thobian/typora-plugins-win-img
https://github.com/Thobian/typora-plugins-win-img/issues/17#issuecomment-594518628
覆盖配置文件后,偏好设置能打开吗? · Issue #5 · Thobian/typora-plugins-win-img
https://github.com/Thobian/typora-plugins-win-img/issues/5
```
#### 使用插件配置和我的gitee配置
步骤如下.
目前本地 0.9.77(beta) 版本是可以正常打开偏好设置的,其他版本如果直接复制 window.html 覆盖原生的 是可能存在这个问题,
可以尝试通过下面的步骤正确无损的完成插件配置和自己上传源图床配置:
1. 下载插件代码;
2. 复制插件相关代码文件:plugins;
3. 将复制的插件代码文件 plugins,粘贴到typora安装目录下的 resources\app 文件夹下;
4. 接下来然后手动编辑 resources\app 文件夹下window.html .
```
也就是直接如下操作原本原生的 window.html 即可.
全文搜索
在其后面加上一行:
然后即可享用。
注:原作者仓库README.md中描述的覆盖 window.html 只是为了引入 ./plugins/image/upload.js 文件,
但不同版本window.html文件可能存在一些差异,确实 有可能出现无法正常打开偏好设置的这个问题。
```
5.配置upload.js文件,文件位置
> 请按照自己的需求,参考原作者文档说明,配置图床源,这里是gitee.
> ./plugins/image/upload.js
```javascript
//target=gitee 时涉及的配置参数
gitee: {
message: "From:https://gitee.com/ahviplc", // 必须参数,提交消息(默认为:add image)
branch: "master", // 要提交到的分支(默认为:master)
token: '###', // 码云token申请地址 https://gitee.com/profile/personal_access_tokens
userName: 'ahviplc', // 用户名 比如你的gitee个人主页地址是:https://gitee.com/thobian ,那userName就是:thobian
repositorie: 'typora-images-up', // 仓库名 比如你的gitee图片仓库地址是:https://gitee.com/thobian/typora,那么repositorie就是 typora
Folder: 'images-all-in-one', // 可以把上传的图片都放到这个指定的文件夹下
BucketDomain: 'https://gitee.com/api/v5/repos/',
}
```
6. 安装完成,重启typora
#### 注意点
> 即使上传网络gitee端,如果是截图复制粘贴的话本地也会存在一份的,下面是存储在本地计算机位置说明
```
windows下:
C:\Users\Dell\AppData\Roaming\Typora
对应本地图片地址: C:\Users\Dell\AppData\Roaming\Typora\typora-user-images
*.md中引用复制的图片本地路径: 
mac下:
todo
linux下:
todo
```
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)