Giter Site home page Giter Site logo

Comments (6)

terwer avatar terwer commented on September 26, 2024

考虑到有插件的 node_modules,PC 端配置不适合放在思源笔记目录。
目前 PC 端能配置在 ~/.universal-picgo/ ,docker 版本是在浏览器存储。

from siyuan-plugin-picgo.

cdz-me avatar cdz-me commented on September 26, 2024

docker版本的图床配置文件,是否可以考虑同步将配置文件在思源笔记目录放一份? 若浏览器有存储,保持以浏览器为准。若本地有配置文件,同步显示,如果需要就选择使用。这样就不用每次不同设备还需要重新输入 图床的配置信息。
image

from siyuan-plugin-picgo.

cdz-me avatar cdz-me commented on September 26, 2024

补充:最好可以记录上次使用的图床信息,下次打开默认就使用上次的配置文件。 若曾配置过多个图床,配置信息也保留,如果需要可以选择。

from siyuan-plugin-picgo.

terwer avatar terwer commented on September 26, 2024

如果提供导入导出功能,可以满足吗?这个风险小一些。
考虑到新版本已经有大面积用户了,如果修改存储方式可能改动大一些。

from siyuan-plugin-picgo.

cdz-me avatar cdz-me commented on September 26, 2024

不太建议导入导出方式。首先,导入导出的逻辑,针对大量的配置文件使用,图床正常使用1个,最多的配置文件也就2~3个。其次,导入导出,使用逻辑上需要三步骤,导出、存放配置文件、导入。导入通过XMLHttpRequest 或 fetch 来上传本地配置文件,其配置文件的存放、互传也麻烦。(多设备互传这个配置文件,往往不如直接手动复制粘贴几个字段了)。
个人建议,PC端保持不变,插件的配置本质是和思源的工作目录在一台机器上,跨机器使用也是需要重新安装思源与配置插件的。 docker端因为存在从多台机器的web访问,当前插件的配置文件和思源的工作目录变成了两个位置(一个在各浏览器的缓存、一个在docker的目录)。docker应该和PC端逻辑一致,都在一台机器上。为了不改变当前版本的用户习惯,可以:
1、docker端和PC端配置图床时候,对配置文件都进行本地的保存(pc端配置在 ~/.universal-picgo/,docker端也在思源插件的workspace )。
image

2、docker端读取图床的配置文件时候,除了读取浏览器缓存,再读取下本地的配置文件。
其他逻辑不变,docker端默认保持读取当前浏览器缓存的配置信息,若不存在,用户自然选择本地的配置文件启用。

from siyuan-plugin-picgo.

terwer avatar terwer commented on September 26, 2024

非常感谢您的建议,下个版本会进行优化。

from siyuan-plugin-picgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.