Comments (6)
考虑到有插件的 node_modules,PC 端配置不适合放在思源笔记目录。
目前 PC 端能配置在 ~/.universal-picgo/ ,docker 版本是在浏览器存储。
from siyuan-plugin-picgo.
docker版本的图床配置文件,是否可以考虑同步将配置文件在思源笔记目录放一份? 若浏览器有存储,保持以浏览器为准。若本地有配置文件,同步显示,如果需要就选择使用。这样就不用每次不同设备还需要重新输入 图床的配置信息。
from siyuan-plugin-picgo.
补充:最好可以记录上次使用的图床信息,下次打开默认就使用上次的配置文件。 若曾配置过多个图床,配置信息也保留,如果需要可以选择。
from siyuan-plugin-picgo.
如果提供导入导出功能,可以满足吗?这个风险小一些。
考虑到新版本已经有大面积用户了,如果修改存储方式可能改动大一些。
from siyuan-plugin-picgo.
不太建议导入导出方式。首先,导入导出的逻辑,针对大量的配置文件使用,图床正常使用1个,最多的配置文件也就2~3个。其次,导入导出,使用逻辑上需要三步骤,导出、存放配置文件、导入。导入通过XMLHttpRequest 或 fetch 来上传本地配置文件,其配置文件的存放、互传也麻烦。(多设备互传这个配置文件,往往不如直接手动复制粘贴几个字段了)。
个人建议,PC端保持不变,插件的配置本质是和思源的工作目录在一台机器上,跨机器使用也是需要重新安装思源与配置插件的。 docker端因为存在从多台机器的web访问,当前插件的配置文件和思源的工作目录变成了两个位置(一个在各浏览器的缓存、一个在docker的目录)。docker应该和PC端逻辑一致,都在一台机器上。为了不改变当前版本的用户习惯,可以:
1、docker端和PC端配置图床时候,对配置文件都进行本地的保存(pc端配置在 ~/.universal-picgo/,docker端也在思源插件的workspace )。
2、docker端读取图床的配置文件时候,除了读取浏览器缓存,再读取下本地的配置文件。
其他逻辑不变,docker端默认保持读取当前浏览器缓存的配置信息,若不存在,用户自然选择本地的配置文件启用。
from siyuan-plugin-picgo.
非常感谢您的建议,下个版本会进行优化。
from siyuan-plugin-picgo.
Related Issues (20)
- minio如何对接插件作为图床 HOT 2
- 图床的图片列表中重复出现好几次图片 HOT 5
- 上传图片整块替换,导致同块其他图片被覆盖消失 HOT 1
- 本地图片在替换外链图片过程中,如果调整了图片大小,替换完成后会恢复原来调整之前的大小 HOT 2
- 在 iOS 版内使用会遇到 'TypeError: undefined is not an object' HOT 1
- 粘贴文字的时候,也会触发上传图片的事件 HOT 4
- 新增插件菜单
- 提供开关 「粘贴到思源自动上传」 HOT 3
- Error: Blob does not support external picgo API v3.0.9 HOT 2
- 关于上传文件大小限制 HOT 1
- 新版本的bug HOT 1
- 上传大的图片会白屏 HOT 4
- 无法发布到Gitlab或Github HOT 5
- windows安装s3插件失败,报“Node安装失败”错误 HOT 1
- 插件展示的图片重复
- 希望作者能够支持一些自建的图床项目,比如cloudflare免费的telegraph-image HOT 1
- [功能请求] 能否增加一键替换本地链接和一键替换网络链接的选项? HOT 1
- 不用剪切板上传和本地替换功能,仍然有空提示
- 安装插件s3失败,报错操作失败=>picgo-plugin-s3安装失败:插件安装失败,失败码为-1,错误日志为 npm 命令执行异常 =>Error: Cannot find module 'C:\Users\mx\.universal-picgo/libs/zhi-infra/index.cjs' Require stack: - electron/js2c/renderer_init HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siyuan-plugin-picgo.