itube-specs 0.0.416 → 0.0.419

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.
@@ -171,10 +171,12 @@ watchEffect(() => {
171
171
  function linkTo(value: string | number) {
172
172
  const safeValue = Math.max(1, Number(value));
173
173
 
174
- // Если это первая страница — ведём в корень без query
174
+ // Если это первая страница — ведём в корень, но сохраняем остальные query (удаляем только page)
175
175
  if (safeValue === 1) {
176
+ const { [props.prefix]: _removed, ...restQuery } = route.query;
176
177
  return {
177
- path: route.path
178
+ path: route.path,
179
+ query: restQuery
178
180
  }
179
181
  }
180
182
 
@@ -5,7 +5,7 @@ export const sortChannels: Array<IChipsItem> = [
5
5
  title: 'sort.trending',
6
6
  value: 'trending',
7
7
  key: 'sort',
8
- query: '',
8
+ query: '-popularity',
9
9
  },
10
10
  {
11
11
  title: 'sort.new_videos',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.416",
4
+ "version": "0.0.419",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {