dshmarket 1.71.0 → 1.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/client.js +3 -1
- package/package.json +1 -1
- package/src/client/MarketSection.tsx +9 -1
package/client/client.js
CHANGED
|
@@ -10108,7 +10108,7 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
|
|
|
10108
10108
|
data,
|
|
10109
10109
|
repoHints
|
|
10110
10110
|
]);
|
|
10111
|
-
const recentlyAdded = (0, react.useMemo)(() => data === null || tab !== "discover" || q.trim() !== "" || cat !== "all" || timeRange !== "all" ? [] : visiblePlugins(data.plugins, {
|
|
10111
|
+
const recentlyAdded = (0, react.useMemo)(() => data === null || tab !== "discover" || q.trim() !== "" || cat !== "all" || timeRange !== "all" || sortField !== "downloads" || sortDir !== "desc" ? [] : visiblePlugins(data.plugins, {
|
|
10112
10112
|
category: "all",
|
|
10113
10113
|
query: "",
|
|
10114
10114
|
lang,
|
|
@@ -10122,6 +10122,8 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
|
|
|
10122
10122
|
q,
|
|
10123
10123
|
cat,
|
|
10124
10124
|
timeRange,
|
|
10125
|
+
sortField,
|
|
10126
|
+
sortDir,
|
|
10125
10127
|
lang,
|
|
10126
10128
|
hostCompatibility,
|
|
10127
10129
|
compatibleWithHost,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dshmarket",
|
|
3
3
|
"description": "Visual plugin market inside DeepSeek Harness — browse, search, and one-click install community plugins. · DSH 可视化插件市场:逛一逛,点一下,装好。",
|
|
4
|
-
"version": "1.71.
|
|
4
|
+
"version": "1.71.1",
|
|
5
5
|
"icon": "assets/logo.svg",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -3424,15 +3424,23 @@ export function MarketSection(props: MarketSectionProps) {
|
|
|
3424
3424
|
// pluginBlocked closes over the installed map and the catalog match.
|
|
3425
3425
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3426
3426
|
[pluginsAll, blockedNameSet, installed, repoIdentities, data, repoHints])
|
|
3427
|
+
// A sort the user chose is a request to see the list in THAT order, and
|
|
3428
|
+
// this block ignores the sort by design (it is "what was added in the last
|
|
3429
|
+
// seven days", ordered by downloads). Left in place it sits between the
|
|
3430
|
+
// control and the list it just reordered: on a 1166px window it fills the
|
|
3431
|
+
// screen, so switching to Stars looked like it did nothing (#1016). The
|
|
3432
|
+
// block is a front-page teaser for the unfiltered default view — one more
|
|
3433
|
+
// narrowing, alongside query, category and time range.
|
|
3427
3434
|
const recentlyAdded = useMemo(
|
|
3428
3435
|
() => data === null || tab !== 'discover' || q.trim() !== '' || cat !== 'all' || timeRange !== 'all'
|
|
3436
|
+
|| sortField !== 'downloads' || sortDir !== 'desc'
|
|
3429
3437
|
? []
|
|
3430
3438
|
: visiblePlugins(data.plugins, {
|
|
3431
3439
|
category: 'all', query: '', lang, sort: 'downloads-desc', sinceDays: 7,
|
|
3432
3440
|
hostCompatibility, compatibleWithHost,
|
|
3433
3441
|
}).filter(plugin => !pluginBlocked(plugin)),
|
|
3434
3442
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3435
|
-
[data, tab, q, cat, timeRange, lang, hostCompatibility, compatibleWithHost, blockedNameSet, installed, repoIdentities, repoHints])
|
|
3443
|
+
[data, tab, q, cat, timeRange, sortField, sortDir, lang, hostCompatibility, compatibleWithHost, blockedNameSet, installed, repoIdentities, repoHints])
|
|
3436
3444
|
const recentRowRef = useRef<HTMLDivElement>(null)
|
|
3437
3445
|
// Two per row, like the grid below it: three across read as a different
|
|
3438
3446
|
// list rather than the same one (and left an odd one out at any width).
|