Giter VIP home page Giter VIP logo

Comments (5)

Kuingsmile avatar Kuingsmile commented on May 25, 2024

前置阅读 | Pre-reading

PicList的版本 | PicList Version

2.5.1

系统信息 | System Information

Windows

功能请求 | Feature request

希望把github配置中存储路径这个接口开放出去,这样在Obsidian不同仓库可以配置不同的存储路径

可以设置多份配置来对应不同的Obsidian仓库,如果是不修改配置实现的话,需要同步修改piclist的上传接口和Obsidian的上传插件对应部分的代码,而且可能更好的方案是不止开放存储路径,而是开放整个设置,在发送请求的时候带着配置一起发送,这样适应性更强

from piclist.

cath-gh avatar cath-gh commented on May 25, 2024

确实也需要Obsidian插件修改代码,现在只能指定server和端口,从源头就区分不开。或许可以考虑在piclist的图床配置里面加上server设置,缺省使用全局server,有自定义的就用配置的。这样就可以在每个不同仓库设置不同的server了。

from piclist.

Kuingsmile avatar Kuingsmile commented on May 25, 2024

确实也需要Obsidian插件修改代码,现在只能指定server和端口,从源头就区分不开。或许可以考虑在piclist的图床配置里面加上server设置,缺省使用全局server,有自定义的就用配置的。这样就可以在每个不同仓库设置不同的server了。

这个想法可以 我考虑下怎么实现最好

from piclist.

Kuingsmile avatar Kuingsmile commented on May 25, 2024

确实也需要Obsidian插件修改代码,现在只能指定server和端口,从源头就区分不开。或许可以考虑在piclist的图床配置里面加上server设置,缺省使用全局server,有自定义的就用配置的。这样就可以在每个不同仓库设置不同的server了。

@cath-gh

已实现,通过在接口添加URL查询参数的方式,例如http://127.0.0.1:36677/upload?picbed=upyun&configName=configA对应上传至又拍云图床的configA配置中,这样在obsidian不同仓库里只要填入对应的上传api地址即可上传至不同的图床

不带url参数的话接口行为和之前一致,上传至当前piclist的默认图床

同时在图床配置界面可以快捷复制对应的特定上传接口地址,防止出现不确定两个参数的值怎么填的问题
image
image

from piclist.

Kuingsmile avatar Kuingsmile commented on May 25, 2024

明天再测试下没啥bug的话会发布2.5.3版本将此改动进行release

from piclist.

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.