Skip to content

Commit d89f7f6

Browse files
committed
chore: replace modules by plugins
1 parent 8e9a7f0 commit d89f7f6

6 files changed

Lines changed: 11 additions & 31 deletions

File tree

app/composables/useNavigation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ const _useNavigation = () => {
187187
items: [],
188188
}
189189

190-
const modulesGroup: SearchGroup = {
191-
id: 'modules-search',
192-
label: 'Modules',
190+
const pluginsGroup: SearchGroup = {
191+
id: 'plugins-search',
192+
label: 'Plugins',
193193
items: [],
194194
}
195195

@@ -199,7 +199,7 @@ const _useNavigation = () => {
199199
items: [],
200200
}
201201

202-
const groups = [aiGroup, modulesGroup, hostingGroup]
202+
const groups = [aiGroup, pluginsGroup, hostingGroup]
203203

204204
if (!searchTerm.value) {
205205
return groups

app/composables/usePlugins.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ export const pluginImage = function (icon: string = '', _size: number = 80) {
2727
if (!icon) return
2828

2929
if (/^https?:\/\//.test(icon)) return icon
30-
// return 'https://fr.wikipedia.org/static/images/icons/wikipedia.png'
3130
return `https://raw.githubusercontent.com/litestar-org/plugins/main/icons/${icon}`
32-
// if (/\.svg$/.test(icon)) return `https://raw.githubuserxcontent.com/nuxt/modules/main/icons/${icon}`
3331

34-
// return `https://ipx.nuxt.com/s_${size},f_auto/gh/nuxt/modules/main/icons/${icon}`
3532
}
3633

3734
export const pluginIcon = function (category: string) {

app/pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,15 @@ defineOgImageComponent('OgImageMain', {})
253253
<USeparator />
254254

255255
<UPageSection
256-
:description="page.modules.description"
257-
:links="page.modules.links"
256+
:description="page.plugins.description"
257+
:links="page.plugins.links"
258258
:ui="{
259259
root: 'bg-gradient-to-b from-muted dark:from-muted/40 to-default',
260260
}"
261261
>
262262
<template #title>
263263
<LazyMDC
264-
:value="page.modules.title"
264+
:value="page.plugins.title"
265265
unwrap="p"
266266
cache-key="index-plugins-title"
267267
hydrate-never

content.config.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default defineContentConfig({
224224
code: z.string(),
225225
}),
226226
templates: PageSection,
227-
modules: PageSection,
227+
plugins: PageSection,
228228
deploy: PageSection,
229229
stats: PageSection.extend({
230230
community: BaseSection,
@@ -276,22 +276,6 @@ export default defineContentConfig({
276276
tags: z.array(z.string()),
277277
}),
278278
}),
279-
landing: defineCollection({
280-
type: 'page',
281-
source: [
282-
{ include: 'index.md' },
283-
{ include: 'blog.yml' },
284-
{ include: 'modules.yml' },
285-
{ include: 'deploy.yml' },
286-
{ include: 'template.yml' },
287-
{ include: 'video-courses.yml' },
288-
{ include: 'enterprise/sponsors.yml' },
289-
{ include: 'enterprise/agencies.yml' },
290-
{ include: 'newsletter.yml' },
291-
{ include: 'enterprise/jobs.yml' },
292-
],
293-
schema: PageHero,
294-
}),
295279
deploy: defineCollection({
296280
type: 'page',
297281
source: 'deploy/*',

content/index.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ templates:
478478
- title: Customizable & extensible
479479
description: Everything remain easily customizable and extensible.
480480
icon: i-lucide-palette
481-
modules:
482-
title: Extend Litestar with modules
483-
description: Litestar has a rich module ecosystem, with both official and community-driven modules. This accelerates development by providing ready-to-use solutions for common needs.
481+
plugins:
482+
title: Extend Litestar with plugins
483+
description: Litestar has a rich module ecosystem, with both official and community-driven plugins. This accelerates development by providing ready-to-use solutions for common needs.
484484
links:
485485
- label: Explore all plugins
486486
to: /plugins

helpers/mdc-parser.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ let configs
251251
export function getMdcConfigs() {
252252
if (!configs) {
253253
configs = Promise.all([
254-
// import('/Users/far/projects/nuxt/nuxt.com/node_modules/.pnpm/nuxt-content-twoslash@0.1.2_@nuxtjs+mdc@0.16.1_magicast@0.3.5__magicast@0.3.5/node_modules/nuxt-content-twoslash/dist/runtime/mdc.config').then(m => m.default)
255254
])
256255
}
257256
return configs

0 commit comments

Comments
 (0)