GithubHelp home page GithubHelp logo

4source / vare-obsidian-plugin Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 118 KB

This is a plugin for Obsidian (https://obsidian.md). Allows you to easily manage your plugins and themes inside Obsidian.

License: MIT License

JavaScript 10.89% TypeScript 86.98% CSS 2.13%
obsidian obsidian-md obsidian-plugin

vare-obsidian-plugin's Introduction

vare-obsidian-plugin's People

Contributors

4source avatar anonhostpi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

anonhostpi

vare-obsidian-plugin's Issues

[Bug+FR]: Source repo for unlisted plugin does not change if removed and reinstalled from community plugins

Describe the bug

I recently forked the teleprompter plugin, and published my own release files for it. To add it into Obsidian I removed the original and added mine as an "unlisted" plugin. After getting my changes implemented on the upstream repo, I removed the unlisted plugin and reinstalled the official one.

However, VARE is still pulling releases from my repo despite reinstalling the plugin.

I recommend setting an option to change/update (and reset if applicable) the source repo in VARE's options

I also recommend showing a hint text that shows the currently selected source repository in addition to these:

image

How to Reproduce

Fork a plugin. Add the fork as an unlisted repo. Uninstall the plugin. Reinstall the official plugin.

Expected behavior

Update the source repo on reinstallation

OS of your device

Win10

Obsidian Version

v1.6.3

Plugin Version

0.1.1

Additional context

This is a dual bug report + feature request.

I'd like to be able to change the source repo as well.

[FEAT]: Fork links

Description of the unfavorable solution

At the moment only releases of the original repo are possible to download. But at many projects there are other contributors with limited permissions. They can't offer an Beta release for this plugin.

Describe the feature you would like to have

Add option to list additional releases.

Fork Releases

  • Option for each plugin to add ONLY fork URLs to see releases from there.

Adds contributor/releases Versions to Version drop down.
With this contributors can release versions on there fork and if testers add there fork link there can install them as the 'original plugin'. Fetch possible Forks from GitHub for autocomplete.

Development path

  • Option for each plugin to add Development Path on local Computer.

Adds an dev Version to the Version drop down checks for changes in this path and pulls the changes to plugin folder.

Check for git branches and create for each branch an dev/branch Version

Additional context

image

Fork from contributor with release 0.5.1

[FEAT]: Collab with Obsidian BRAT?

Description of the unfavorable solution

N/A

Describe the feature you would like to have

N/A

Additional context

It seems like these 2 plugins target similar functionality and are maintained at a similar frequency.

If that's the case, I'd like to suggest that you combine your efforts and move both into a gh org.

You are both MIT licensed, so it seems like you are both are on the same page about IP.

[Bug]: Wrong tag asset URL used in fetchManifest

Describe the bug

Currently, you use this to retrieve manifest.json:

export async function fetchManifest(repository: string, tag_name?: string): Promise<PluginManifest | undefined> {
const URL = `https://raw.githubusercontent.com/${repository}/${tag_name ? tag_name : 'HEAD'}/manifest.json`;
try {
if (!repositoryRegEx.test(repository)) {
throw Error('Repository string do not match the pattern!');
}
// Do a request to the url
const response = await request({ url: URL });
// Process the response
return (await JSON.parse(response)) as PluginManifest;
}
catch (e) {
(e as Error).message = 'Failed to fetch the manifest for plugin! ' + (e as Error).message;
console.error(e);
}
}

This is the wrong URL. Obsidian uses the Release REST API and not the raw file. This is an important distinction, because the release asset and the ref/raw asset, don't have to be the same.

How to Reproduce

Try to add anonhostpi/obsidian-exposed-api and install 0.0.3-f

It fails, because the wrong manifest file was used

Expected behavior

It should use the

OS of your device

Win11

Obsidian Version

v1.6.3

Plugin Version

0.3.5

Additional context

Going to be working on a PR in a moment to fix this for ya.

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.