Simplify constants declaration

This commit is contained in:
David Haz
2025-07-20 23:42:47 +03:00
parent 9d027c25b7
commit 0c79f0af67
85 changed files with 383 additions and 558 deletions

View File

@@ -1,8 +1,7 @@
import code from '@content/Components/GlassIcons/GlassIcons.vue?raw';
import type { CodeObject } from '../../../types/code';
import { createCodeObject } from '../../../types/code';
export const glassIcons: CodeObject = {
cli: `npx jsrepo add https://vue-bits.dev/ui/Components/GlassIcons`,
export const glassIcons = createCodeObject(code, 'Components/GlassIcons', {
usage: `<template>
<GlassIcons :items="items" class="my-glass-icons" />
</template>
@@ -18,6 +17,5 @@ export const glassIcons: CodeObject = {
{ icon: 'pi pi-pencil', color: 'orange', label: 'Notes' },
{ icon: 'pi pi-chart-bar', color: 'green', label: 'Stats' }
];
</script>`,
code
};
</script>`
});