mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Package manager UI-related tweaks (#4382)
* Add Plugins Path setting * Fix/improve cache invalidation * Hide load error when collapsing package source * Package manager style tweaks * Show error if installed packages query failed * Prevent "No packages found" flicker * Show <unknown> if empty version * Always show latest version, highlight if new version available * Fix issues with non-unique cross-source package ids * Don't wrap id, version and date * Decrease collapse button padding * Display description for scraper packages * Fix default packages population * Change default package path to community --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -138,7 +138,7 @@ const (
|
||||
PluginsSettingPrefix = PluginsSetting + "."
|
||||
DisabledPlugins = "plugins.disabled"
|
||||
|
||||
sourceDefaultPath = "stable"
|
||||
sourceDefaultPath = "community"
|
||||
sourceDefaultName = "Community (stable)"
|
||||
|
||||
PluginPackageSources = "plugins.package_sources"
|
||||
@@ -1666,16 +1666,16 @@ func (i *Config) setDefaultValues() {
|
||||
i.main.SetDefault(NoProxy, noProxyDefault)
|
||||
|
||||
// set default package sources
|
||||
i.main.SetDefault(PluginPackageSources, map[string]string{
|
||||
"name": sourceDefaultName,
|
||||
"url": pluginPackageSourcesDefault,
|
||||
"local_path": sourceDefaultPath,
|
||||
})
|
||||
i.main.SetDefault(ScraperPackageSources, map[string]string{
|
||||
"name": sourceDefaultName,
|
||||
"url": scraperPackageSourcesDefault,
|
||||
"local_path": sourceDefaultPath,
|
||||
})
|
||||
i.main.SetDefault(PluginPackageSources, []map[string]string{{
|
||||
"name": sourceDefaultName,
|
||||
"url": pluginPackageSourcesDefault,
|
||||
"localpath": sourceDefaultPath,
|
||||
}})
|
||||
i.main.SetDefault(ScraperPackageSources, []map[string]string{{
|
||||
"name": sourceDefaultName,
|
||||
"url": scraperPackageSourcesDefault,
|
||||
"localpath": sourceDefaultPath,
|
||||
}})
|
||||
}
|
||||
|
||||
// setExistingSystemDefaults sets config options that are new and unset in an existing install,
|
||||
|
||||
Reference in New Issue
Block a user