Skip to content

Commit b32d1fd

Browse files
authored
Feat/showcases (#18)
* chore: removed separated vue projects * refactor: cleanup examples * refactor: cleanup pt2
1 parent efec220 commit b32d1fd

111 files changed

Lines changed: 177 additions & 1760 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ Framework-agnostic rendering engine for server-driven UI. Build dynamic forms an
1212
-**Reactive System**: Handle declarative and imperative reactions
1313
- 🧩 **Type Safe**: Full TypeScript support
1414

15-
## Examples
15+
## Showcases
1616

1717
### React (Vanilla)
1818
```bash
19-
pnpm --filter examples-react dev
19+
pnpm --filter showcases-react dev
2020
# http://localhost:3000
2121
```
2222

2323
### React with Material UI
2424
```bash
25-
pnpm --filter examples-react-material-ui dev
25+
pnpm --filter showcases-react-material-ui dev
2626
# http://localhost:3001
2727
```
2828

2929
### React with Chakra UI
3030
```bash
31-
pnpm --filter examples-react-chakra-ui dev
31+
pnpm --filter showcases-react-chakra-ui dev
3232
# http://localhost:3002
3333
```
3434

@@ -52,7 +52,7 @@ schepta/
5252
│ ├── core/ # Framework-agnostic core logic
5353
│ ├── adapters/ # Framework adapters (react, vue, vanilla)
5454
│ └── factories/ # Framework factories (react, vue, vanilla)
55-
├── examples/ # Example applications
55+
├── showcases/ # Example applications
5656
│ ├── react/ # React vanilla example
5757
│ ├── react-material-ui/ # React with Material UI
5858
│ └── react-chakra-ui/ # React with Chakra UI

docs/.vitepress/components.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ const ReactWrapper = (Component: any) => {
2020
};
2121

2222
export default {
23-
SimpleFormReact: defineAsyncComponent(() => import('../components/examples/SimpleFormReact.vue')),
24-
ComplexFormReact: defineAsyncComponent(() => import('../components/examples/ComplexFormReact.vue')),
25-
SimpleFormVue: defineAsyncComponent(() => import('../components/examples/SimpleFormVue.vue')),
26-
ComplexFormVue: defineAsyncComponent(() => import('../components/examples/ComplexFormVue.vue')),
27-
SimpleFormVuetify: defineAsyncComponent(() => import('../components/examples/SimpleFormVuetify.vue')),
28-
ComplexFormVuetify: defineAsyncComponent(() => import('../components/examples/ComplexFormVuetify.vue')),
23+
SimpleFormReact: defineAsyncComponent(() => import('../components/showcases/SimpleFormReact.vue')),
24+
ComplexFormReact: defineAsyncComponent(() => import('../components/showcases/ComplexFormReact.vue')),
25+
SimpleFormVue: defineAsyncComponent(() => import('../components/showcases/SimpleFormVue.vue')),
26+
ComplexFormVue: defineAsyncComponent(() => import('../components/showcases/ComplexFormVue.vue')),
27+
SimpleFormVuetify: defineAsyncComponent(() => import('../components/showcases/SimpleFormVuetify.vue')),
28+
ComplexFormVuetify: defineAsyncComponent(() => import('../components/showcases/ComplexFormVuetify.vue')),
2929
};
3030

docs/.vitepress/config.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig({
2727
{ text: 'Home', link: '/en-US/' },
2828
{ text: 'Guide', link: '/en-US/guide/quick-start' },
2929
{ text: 'Concepts', link: '/en-US/concepts/01-factories' },
30-
{ text: 'Examples', link: '/en-US/examples/react' },
30+
{ text: 'Showcases', link: '/en-US/showcases/react' },
3131
],
3232
sidebar: {
3333
'/en-US/guide/': [
@@ -52,15 +52,15 @@ export default defineConfig({
5252
],
5353
},
5454
],
55-
'/en-US/examples/': [
55+
'/en-US/showcases/': [
5656
{
57-
text: 'Examples',
57+
text: 'Showcases',
5858
items: [
59-
{ text: 'React', link: '/en-US/examples/react' },
60-
{ text: 'React Material UI', link: '/en-US/examples/material-ui' },
61-
{ text: 'React Chakra UI', link: '/en-US/examples/chakra-ui' },
62-
{ text: 'Vue', link: '/en-US/examples/vue' },
63-
{ text: 'Vue Vuetify', link: '/en-US/examples/vuetify' },
59+
{ text: 'React', link: '/en-US/showcases/react' },
60+
{ text: 'React Material UI', link: '/en-US/showcases/material-ui' },
61+
{ text: 'React Chakra UI', link: '/en-US/showcases/chakra-ui' },
62+
{ text: 'Vue', link: '/en-US/showcases/vue' },
63+
{ text: 'Vue Vuetify', link: '/en-US/showcases/vuetify' },
6464
],
6565
},
6666
],
@@ -81,7 +81,7 @@ export default defineConfig({
8181
{ text: 'Início', link: '/pt-BR/' },
8282
{ text: 'Guia', link: '/pt-BR/guide/quick-start' },
8383
{ text: 'Conceitos', link: '/pt-BR/concepts/01-factories' },
84-
{ text: 'Exemplos', link: '/pt-BR/examples/react' },
84+
{ text: 'Exemplos', link: '/pt-BR/showcases/react' },
8585
],
8686
sidebar: {
8787
'/pt-BR/guide/': [
@@ -106,15 +106,15 @@ export default defineConfig({
106106
],
107107
},
108108
],
109-
'/pt-BR/examples/': [
109+
'/pt-BR/showcases/': [
110110
{
111111
text: 'Exemplos',
112112
items: [
113-
{ text: 'React', link: '/pt-BR/examples/react' },
114-
{ text: 'React Material UI', link: '/pt-BR/examples/material-ui' },
115-
{ text: 'React Chakra UI', link: '/pt-BR/examples/chakra-ui' },
116-
{ text: 'Vue', link: '/pt-BR/examples/vue' },
117-
{ text: 'Vue Vuetify', link: '/pt-BR/examples/vuetify' },
113+
{ text: 'React', link: '/pt-BR/showcases/react' },
114+
{ text: 'React Material UI', link: '/pt-BR/showcases/material-ui' },
115+
{ text: 'React Chakra UI', link: '/pt-BR/showcases/chakra-ui' },
116+
{ text: 'Vue', link: '/pt-BR/showcases/vue' },
117+
{ text: 'Vue Vuetify', link: '/pt-BR/showcases/vuetify' },
118118
],
119119
},
120120
],
@@ -135,7 +135,7 @@ export default defineConfig({
135135
{ text: 'Inicio', link: '/es-ES/' },
136136
{ text: 'Guía', link: '/es-ES/guide/quick-start' },
137137
{ text: 'Conceptos', link: '/es-ES/concepts/01-factories' },
138-
{ text: 'Ejemplos', link: '/es-ES/examples/react' },
138+
{ text: 'Ejemplos', link: '/es-ES/showcases/react' },
139139
],
140140
sidebar: {
141141
'/es-ES/guide/': [
@@ -160,15 +160,15 @@ export default defineConfig({
160160
],
161161
},
162162
],
163-
'/es-ES/examples/': [
163+
'/es-ES/showcases/': [
164164
{
165165
text: 'Ejemplos',
166166
items: [
167-
{ text: 'React', link: '/es-ES/examples/react' },
168-
{ text: 'React Material UI', link: '/es-ES/examples/material-ui' },
169-
{ text: 'React Chakra UI', link: '/es-ES/examples/chakra-ui' },
170-
{ text: 'Vue', link: '/es-ES/examples/vue' },
171-
{ text: 'Vue Vuetify', link: '/es-ES/examples/vuetify' },
167+
{ text: 'React', link: '/es-ES/showcases/react' },
168+
{ text: 'React Material UI', link: '/es-ES/showcases/material-ui' },
169+
{ text: 'React Chakra UI', link: '/es-ES/showcases/chakra-ui' },
170+
{ text: 'Vue', link: '/es-ES/showcases/vue' },
171+
{ text: 'Vue Vuetify', link: '/es-ES/showcases/vuetify' },
172172
],
173173
},
174174
],

docs/.vitepress/theme/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { MotionPlugin } from '@vueuse/motion'
77
export default {
88
...DefaultTheme,
99
enhanceApp({ app, router }) {
10-
app.component('CodeSandboxEmbed', defineAsyncComponent(() => import('../../components/examples/CodeSandboxEmbed.vue')));
1110
app.component('TerminalIcon', defineAsyncComponent(() => import('lucide-vue-next').then(m => m.Terminal)));
1211
app.component('CopyIcon', defineAsyncComponent(() => import('lucide-vue-next').then(m => m.Copy)));
1312
app.component('CheckIcon', defineAsyncComponent(() => import('lucide-vue-next').then(m => m.Check)));

docs/components/home/ConceptsSection.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
</div>
1212

1313
<div class="section-card">
14-
<h2>{{ examples.title }}</h2>
15-
<p>{{ examples.description }}</p>
14+
<h2>{{ showcases.title }}</h2>
15+
<p>{{ showcases.description }}</p>
1616
<ul>
17-
<li v-for="item in examples.items" :key="item.title">
17+
<li v-for="item in showcases.items" :key="item.title">
1818
<a :href="`/${locale}${item.link}`">{{ item.title }}</a> - {{ item.description }}
1919
</li>
2020
</ul>
@@ -30,7 +30,7 @@ const { frontmatter } = useData();
3030
3131
const locale = computed(() => frontmatter.value.locale || 'en-US');
3232
const concepts = computed(() => frontmatter.value.concepts || {});
33-
const examples = computed(() => frontmatter.value.examples || {});
33+
const showcases = computed(() => frontmatter.value.showcases || {});
3434
</script>
3535

3636
<style scoped>

docs/components/home/HeroSection.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</a>
1919
<a
2020
class="action-button secondary"
21-
:href="`/${locale}/examples/react`"
21+
:href="`/${locale}/showcases/react`"
2222
>
23-
{{ hero.viewExamples }}
23+
{{ hero.viewShowcases }}
2424
</a>
2525
</div>
2626
<div class="hero-install">

docs/en-US/examples/chakra-ui.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# React Chakra UI Examples
1+
# React Chakra UI Showcases
22

3-
Interactive examples of schepta forms using React with Chakra UI components.
3+
Interactive showcases of schepta forms using React with Chakra UI components.
44

55
::: warning Coming Soon
6-
The CodeSandbox embed for Chakra UI examples will be available soon. For now, you can view the examples locally.
6+
The CodeSandbox embed for Chakra UI showcases will be available soon. For now, you can view the showcases locally.
77
:::
88

9-
For local development, see the [Chakra UI examples directory](https://github.com/guynikan/schepta/tree/main/examples/react-chakra-ui).
9+
For local development, see the [Chakra UI showcases directory](https://github.com/guynikan/schepta/tree/main/showcases/react-chakra-ui).

docs/en-US/examples/material-ui.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# React Material UI Examples
1+
# React Material UI Showcases
22

3-
Interactive examples of schepta forms using React with Material UI components.
3+
Interactive showcases of schepta forms using React with Material UI components.
44

55
<iframe
66
src="https://codesandbox.io/embed/5tn7vv?view=split&hidenavigation=1&theme=dark"
@@ -10,6 +10,6 @@ Interactive examples of schepta forms using React with Material UI components.
1010
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
1111
></iframe>
1212
13-
The CodeSandbox above includes both simple and complex form examples. You can switch between them using the navigation in the sandbox.
13+
The CodeSandbox above includes both simple and complex form showcases. You can switch between them using the navigation in the sandbox.
1414

15-
For local development, see the [Material UI examples directory](https://github.com/guynikan/schepta/tree/main/examples/react-material-ui).
15+
For local development, see the [Material UI showcases directory](https://github.com/guynikan/schepta/tree/main/showcases/react-material-ui).

docs/en-US/examples/react.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# React Examples
1+
# React Showcases
22

3-
Interactive examples of schepta forms using React and `react-hook-form`.
3+
Interactive showcases of schepta forms using React and `react-hook-form`.
44

55
<iframe
66
src="https://codesandbox.io/embed/r9jzdl?view=split&hidenavigation=1&theme=dark"
@@ -10,6 +10,6 @@ Interactive examples of schepta forms using React and `react-hook-form`.
1010
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
1111
></iframe>
1212
13-
The CodeSandbox above includes both simple and complex form examples. You can switch between them using the navigation in the sandbox.
13+
The CodeSandbox above includes both simple and complex form showcases. You can switch between them using the navigation in the sandbox.
1414

15-
For local development, see the [React examples directory](https://github.com/guynikan/schepta/tree/main/examples/react).
15+
For local development, see the [React showcases directory](https://github.com/guynikan/schepta/tree/main/showcases/react).

docs/en-US/examples/vue.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Vue Examples
1+
# Vue Showcases
22

3-
Interactive examples of schepta forms using Vue 3.
3+
Interactive showcases of schepta forms using Vue 3.
44

55
::: warning Coming Soon
6-
Vue examples are being prepared and will be available soon!
6+
Vue showcases are being prepared and will be available soon!
77
:::
88

9-
For local development, see the [Vue examples directory](https://github.com/guynikan/schepta/tree/main/examples/vue).
9+
For local development, see the [Vue showcases directory](https://github.com/guynikan/schepta/tree/main/showcases/vue).

0 commit comments

Comments
 (0)