astro-accelerator-utils 0.0.37 → 0.0.39
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/lib/footerMenu.d.mts +6 -6
- package/lib/footerMenu.mjs +7 -3
- package/package.json +1 -1
package/lib/footerMenu.d.mts
CHANGED
|
@@ -21,27 +21,27 @@ export function getMenu(currentUrl: URL, _: TranslationProvider, translations: a
|
|
|
21
21
|
* @param {TranslationProvider} _
|
|
22
22
|
* @param {any} translations
|
|
23
23
|
* @param {Site} site
|
|
24
|
-
* @returns {NavPage[]}
|
|
24
|
+
* @returns {Promise<NavPage[]>}
|
|
25
25
|
*/
|
|
26
|
-
export function getCategories(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): NavPage[]
|
|
26
|
+
export function getCategories(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): Promise<NavPage[]>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @param {TaxonomyLinks} links
|
|
30
30
|
* @param {TranslationProvider} _
|
|
31
31
|
* @param {any} translations
|
|
32
32
|
* @param {Site} site
|
|
33
|
-
* @returns {NavPage[]}
|
|
33
|
+
* @returns {Promise<NavPage[]>}
|
|
34
34
|
*/
|
|
35
|
-
export function getTags(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): NavPage[]
|
|
35
|
+
export function getTags(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): Promise<NavPage[]>;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @param {TaxonomyLinks} links
|
|
39
39
|
* @param {TranslationProvider} _
|
|
40
40
|
* @param {any} translations
|
|
41
41
|
* @param {Site} site
|
|
42
|
-
* @returns {NavPage[]}
|
|
42
|
+
* @returns {Promise<NavPage[]>}
|
|
43
43
|
*/
|
|
44
|
-
export function getTopTags(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): NavPage[]
|
|
44
|
+
export function getTopTags(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): Promise<NavPage[]>;
|
|
45
45
|
export type NavPage = import("../types/NavPage").NavPage;
|
|
46
46
|
export type Site = import("../types/Astro").Site;
|
|
47
47
|
export type Entry = import("../types/Translations").Entry;
|
package/lib/footerMenu.mjs
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import * as Taxonomy from './taxonomy.mjs';
|
|
2
|
+
import * as Navigation from './navigation.mjs';
|
|
3
|
+
import * as PostQueries from './postQueries.mjs';
|
|
4
|
+
|
|
1
5
|
/**
|
|
2
6
|
* @typedef { import("../types/NavPage").NavPage } NavPage
|
|
3
7
|
* @typedef { import("../types/Astro").Site } Site
|
|
@@ -60,7 +64,7 @@ export async function getMenu (currentUrl, _, translations, site, menu) {
|
|
|
60
64
|
* @param {TranslationProvider} _
|
|
61
65
|
* @param {any} translations
|
|
62
66
|
* @param {Site} site
|
|
63
|
-
* @returns {NavPage[]}
|
|
67
|
+
* @returns {Promise<NavPage[]>}
|
|
64
68
|
*/
|
|
65
69
|
export async function getCategories (links, _, translations, site) {
|
|
66
70
|
|
|
@@ -100,7 +104,7 @@ export async function getCategories (links, _, translations, site) {
|
|
|
100
104
|
* @param {TranslationProvider} _
|
|
101
105
|
* @param {any} translations
|
|
102
106
|
* @param {Site} site
|
|
103
|
-
* @returns {NavPage[]}
|
|
107
|
+
* @returns {Promise<NavPage[]>}
|
|
104
108
|
*/
|
|
105
109
|
export async function getTags (links, _, translations, site) {
|
|
106
110
|
|
|
@@ -140,7 +144,7 @@ export async function getTags (links, _, translations, site) {
|
|
|
140
144
|
* @param {TranslationProvider} _
|
|
141
145
|
* @param {any} translations
|
|
142
146
|
* @param {Site} site
|
|
143
|
-
* @returns {NavPage[]}
|
|
147
|
+
* @returns {Promise<NavPage[]>}
|
|
144
148
|
*/
|
|
145
149
|
export async function getTopTags (links, _, translations, site) {
|
|
146
150
|
|