Skip to content

Commit 76af5db

Browse files
committed
v1.13.15
1 parent d45d733 commit 76af5db

File tree

7 files changed

+66
-67
lines changed

7 files changed

+66
-67
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.13.15
4+
5+
### Patch Changes
6+
7+
- fix(Tags): disabled
8+
39
## 1.13.14
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-svelte",
3-
"version": "1.13.14",
3+
"version": "1.13.15",
44
"description": "Flowbite components for Svelte",
55
"main": "dist/index.js",
66
"author": {

src/routes/admin-dashboard/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
let { children, data }: LayoutProps = $props();
77
8-
console.log('data', data);
8+
console.log("data", data);
99
1010
onMount(modeobserver);
1111
</script>

src/routes/sitemap.xml/+server.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
import * as sitemap from 'super-sitemap';
2-
import { error } from '@sveltejs/kit';
3-
import type { RequestHandler } from '@sveltejs/kit';
4-
import * as docs from './docs';
1+
import * as sitemap from "super-sitemap";
2+
import { error } from "@sveltejs/kit";
3+
import type { RequestHandler } from "@sveltejs/kit";
4+
import * as docs from "./docs";
55

66
export const GET: RequestHandler = async () => {
77
let docsSlugs;
88
try {
99
docsSlugs = await docs.getDocsSlugs();
1010
// console.log('Generated docs slugs:', docsSlugs );
1111
} catch (err) {
12-
console.error('Could not load docs data for sitemap:', err);
13-
throw error(500, 'Could not load data for param values.');
12+
console.error("Could not load docs data for sitemap:", err);
13+
throw error(500, "Could not load data for param values.");
1414
}
1515

1616
return await sitemap.response({
17-
origin: 'https://flowbite-svelte.com',
17+
origin: "https://flowbite-svelte.com",
1818
excludeRoutePatterns: [
19-
'^/component-data.*',
20-
'^/docs-examples.*',
21-
'^/docs/examples.*',
22-
'^/fonts.*',
23-
'^/testdir.*',
24-
'^/layouts/component.*',
25-
'^/admin-dashboard/.*/\\[.*\\].*', // Exclude any dynamic routes in admin-dashboard
19+
"^/component-data.*",
20+
"^/docs-examples.*",
21+
"^/docs/examples.*",
22+
"^/fonts.*",
23+
"^/testdir.*",
24+
"^/layouts/component.*",
25+
"^/admin-dashboard/.*/\\[.*\\].*" // Exclude any dynamic routes in admin-dashboard
2626
],
2727
paramValues: {
28-
'/docs/pages/[slug]': docsSlugs['pages'] || [],
29-
'/docs/components/[slug]': docsSlugs['components'] || [],
30-
'/docs/forms/[slug]': docsSlugs['forms'] || [],
31-
'/docs/typography/[slug]': docsSlugs['typography'] || [],
32-
'/docs/utilities/[slug]': docsSlugs['utilities'] || [],
33-
'/docs/extend/[slug]': docsSlugs['extend'] || [],
34-
'/docs/plugins/[slug]': docsSlugs['plugins'] || [],
35-
'/icons/[slug]': docsSlugs['icons'] || [],
36-
'/illustrations/[slug]': docsSlugs['illustrations'] || [],
37-
'/blocks/application/[slug]': docsSlugs['blocks-application'] || [],
38-
'/blocks/marketing/[slug]': docsSlugs['blocks-marketing'] || [],
39-
'/blocks/publisher/[slug]': docsSlugs['blocks-publisher'] || [],
28+
"/docs/pages/[slug]": docsSlugs["pages"] || [],
29+
"/docs/components/[slug]": docsSlugs["components"] || [],
30+
"/docs/forms/[slug]": docsSlugs["forms"] || [],
31+
"/docs/typography/[slug]": docsSlugs["typography"] || [],
32+
"/docs/utilities/[slug]": docsSlugs["utilities"] || [],
33+
"/docs/extend/[slug]": docsSlugs["extend"] || [],
34+
"/docs/plugins/[slug]": docsSlugs["plugins"] || [],
35+
"/icons/[slug]": docsSlugs["icons"] || [],
36+
"/illustrations/[slug]": docsSlugs["illustrations"] || [],
37+
"/blocks/application/[slug]": docsSlugs["blocks-application"] || [],
38+
"/blocks/marketing/[slug]": docsSlugs["blocks-marketing"] || [],
39+
"/blocks/publisher/[slug]": docsSlugs["blocks-publisher"] || []
4040
},
41-
additionalPaths: docsSlugs['dashboard']?.map(route => `/${route}`) || [],
41+
additionalPaths: docsSlugs["dashboard"]?.map((route) => `/${route}`) || []
4242
});
43-
};
43+
};

src/routes/sitemap.xml/docs.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ export async function getDocsSlugs() {
88
const blocks = await fetchBlocksMarkdownPosts();
99
const dashboard = await fetchDashboardPosts();
1010

11-
console.log('dashboard', dashboard);
12-
11+
console.log("dashboard", dashboard);
12+
1313
const slugsByCategory: Record<string, string[]> = {};
14-
14+
1515
// Process each category
1616
Object.entries(posts).forEach(([category, items]) => {
1717
if (Array.isArray(items)) {
18-
slugsByCategory[category] = items.map(item => {
18+
slugsByCategory[category] = items.map((item) => {
1919
// Remove leading slash from path
2020
// e.g., '/introduction' becomes 'introduction'
21-
return item.path.startsWith('/') ? item.path.slice(1) : item.path;
21+
return item.path.startsWith("/") ? item.path.slice(1) : item.path;
2222
});
2323
}
2424
});
@@ -27,26 +27,26 @@ export async function getDocsSlugs() {
2727
Object.entries(blocks).forEach(([category, items]) => {
2828
if (Array.isArray(items)) {
2929
const blocksCategoryKey = `blocks-${category}`; // e.g., 'blocks-application'
30-
slugsByCategory[blocksCategoryKey] = items.map(item => {
30+
slugsByCategory[blocksCategoryKey] = items.map((item) => {
3131
// Remove leading slash from path
32-
return item.path.startsWith('/') ? item.path.slice(1) : item.path;
32+
return item.path.startsWith("/") ? item.path.slice(1) : item.path;
3333
});
3434
}
3535
});
3636

3737
// Process builders (simple array with path property)
3838
if (Array.isArray(builders)) {
39-
slugsByCategory['builders'] = builders.map(item => item.path);
39+
slugsByCategory["builders"] = builders.map((item) => item.path);
4040
}
4141

4242
if (Array.isArray(dashboard)) {
43-
slugsByCategory['dashboard'] = dashboard.map(item => {
43+
slugsByCategory["dashboard"] = dashboard.map((item) => {
4444
// item.path is the string path from the improved fetchDashboardPosts
45-
const path = typeof item === 'string' ? item : item.path;
45+
const path = typeof item === "string" ? item : item.path;
4646
// Ensure path starts with admin-dashboard
47-
return path.startsWith('admin-dashboard') ? path : `admin-dashboard/${path}`;
47+
return path.startsWith("admin-dashboard") ? path : `admin-dashboard/${path}`;
4848
});
4949
}
50-
50+
5151
return slugsByCategory;
5252
}

src/routes/utils/index.ts

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -152,47 +152,40 @@ export const fetchBlocksMarkdownPosts = async () => {
152152
export const fetchDashboardPosts = async () => {
153153
// Get all +page.svelte files
154154
const pageGlobs = import.meta.glob("/src/routes/admin-dashboard/**/+page.svelte");
155-
155+
156156
// Get authentication .svelte files (these are not +page.svelte)
157157
const authGlobs = import.meta.glob("/src/routes/admin-dashboard/authentication/*.svelte");
158-
158+
159159
// Extract routes from +page.svelte files
160160
const pageRoutes = Object.keys(pageGlobs)
161161
.map((path) => {
162162
let route = path
163-
.replace('/src/routes/admin-dashboard', '')
164-
.replace('/+page.svelte', '')
165-
.replace(/\/\([^)]+\)/g, '') // Remove route groups
166-
.replace(/^\//, '')
167-
.replace(/\/$/, '');
168-
169-
if (route === '') {
170-
route = 'admin-dashboard';
163+
.replace("/src/routes/admin-dashboard", "")
164+
.replace("/+page.svelte", "")
165+
.replace(/\/\([^)]+\)/g, "") // Remove route groups
166+
.replace(/^\//, "")
167+
.replace(/\/$/, "");
168+
169+
if (route === "") {
170+
route = "admin-dashboard";
171171
} else {
172172
route = `admin-dashboard/${route}`;
173173
}
174174
return route;
175175
})
176-
.filter((route) => !route.includes('[') && !route.includes(']')); // Filter out dynamic routes
176+
.filter((route) => !route.includes("[") && !route.includes("]")); // Filter out dynamic routes
177177

178178
// Extract routes from authentication .svelte files
179-
const authRoutes = Object.keys(authGlobs)
180-
.map((path) => {
181-
const filename = path.split('/').pop()?.replace('.svelte', '') || '';
182-
return `admin-dashboard/authentication/${filename}`;
183-
});
179+
const authRoutes = Object.keys(authGlobs).map((path) => {
180+
const filename = path.split("/").pop()?.replace(".svelte", "") || "";
181+
return `admin-dashboard/authentication/${filename}`;
182+
});
184183

185184
// Add specific error routes that we know exist
186-
const errorRoutes = [
187-
'admin-dashboard/errors/400',
188-
'admin-dashboard/errors/404',
189-
'admin-dashboard/errors/500'
190-
];
185+
const errorRoutes = ["admin-dashboard/errors/400", "admin-dashboard/errors/404", "admin-dashboard/errors/500"];
191186

192187
// Combine all routes and remove duplicates
193-
const allRoutes = [...pageRoutes, ...authRoutes, ...errorRoutes]
194-
.filter((route, index, self) => self.indexOf(route) === index)
195-
.sort();
188+
const allRoutes = [...pageRoutes, ...authRoutes, ...errorRoutes].filter((route, index, self) => self.indexOf(route) === index).sort();
196189

197190
return allRoutes;
198191
};

static/llm/context-full.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# undefined Documentation - Full Context
2-
# Generated on 2025-09-21T08:07:56.350Z
2+
# Generated on 2025-09-21T15:30:16.698Z
33
# This file contains all documentation concatenated in logical order
44

55

0 commit comments

Comments
 (0)