@fy-/fws-vue 0.4.9 → 0.5.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.
@@ -70,8 +70,12 @@ const page = (page: number) => {
70
70
  };
71
71
 
72
72
  const currentUrl = computed(() => {
73
+ /*
73
74
  const url = getURL();
74
75
  return `${url.Path}?page=`;
76
+ */
77
+ // user router url instead of getURL
78
+ return `${history.currentRoute.path}?page=`;
75
79
  });
76
80
 
77
81
  const checkPageNumber = (page: number = 1) => {
@@ -164,7 +168,10 @@ useFyHead({
164
168
  </div>
165
169
  </li>
166
170
  <template v-for="i in 2">
167
- <li v-if="items.page_no - (3 - i) >= 1" :key="`${i}-sm`">
171
+ <li
172
+ v-if="items.page_no - (3 - i) >= 1"
173
+ :key="`page-${items.page_no + i}`"
174
+ >
168
175
  <router-link
169
176
  class="flex items-center justify-center px-3 h-8 leading-tight text-fv-neutral-500 bg-white border border-fv-neutral-300 hover:bg-fv-neutral-100 hover:text-fv-neutral-700 dark:bg-fv-neutral-800 dark:border-fv-neutral-700 dark:text-fv-neutral-400 dark:hover:bg-fv-neutral-700 dark:hover:text-white"
170
177
  :to="currentUrl + (items.page_no - (3 - i))"
@@ -182,7 +189,10 @@ useFyHead({
182
189
  </div>
183
190
  </li>
184
191
  <template v-for="i in 2">
185
- <li :key="`${i}-md`" v-if="items.page_no + i <= items.page_max">
192
+ <li
193
+ :key="`page-x-${items.page_no + i}`"
194
+ v-if="items.page_no + i <= items.page_max"
195
+ >
186
196
  <router-link
187
197
  class="flex items-center justify-center px-3 h-8 leading-tight text-fv-neutral-500 bg-white border border-fv-neutral-300 hover:bg-fv-neutral-100 hover:text-fv-neutral-700 dark:bg-fv-neutral-800 dark:border-fv-neutral-700 dark:text-fv-neutral-400 dark:hover:bg-fv-neutral-700 dark:hover:text-white"
188
198
  :to="currentUrl + (items.page_no + i)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.4.9",
3
+ "version": "0.5.1",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {