Skip to content

Commit 27cd720

Browse files
committed
BREAK remove vue/solid, focus on react
1 parent 7b3d876 commit 27cd720

Some content is hidden

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

85 files changed

+94
-3487
lines changed

CONTRIBUTING.md

-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ deno test -A
4848
- **/framework**
4949
- **core** framework framework core
5050
- **react** framework framework for React
51-
- **vue** framework framework for Vue.js
52-
- **solid** framework framework for SolidJS
5351
- **/server** server core of Aleph.js
5452
- **/shared** shared libraries
5553
- **/tests** unit/integration testings

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
Some demo apps deployed to [Deno Deploy](https://deno.com/deploy) with the new architecture:
1212

1313
- React App: https://aleph-hello.deno.dev/
14-
- Vue App: https://aleph-vue.deno.dev/
1514
- REST API: https://aleph-api.deno.dev/
1615
- React 18 Suspense SSR: https://aleph-suspense-ssr.deno.dev/
1716
- UnoCSS(tailwind): https://aleph-unocss.deno.dev/
@@ -29,7 +28,7 @@ Some demo apps deployed to [Deno Deploy](https://deno.com/deploy) with the new a
2928
## Get started
3029

3130
Initialize a new project, you can pick a start template with `--template` flag, available templates:
32-
`[react, vue, api, solid, yew]`
31+
`[react, react-mdx, api, yew]`
3332

3433
```bash
3534
deno run -A -r https://alephjs.org/init.ts

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"./types.d.ts"
1111
],
1212
"jsx": "react-jsx",
13-
"jsxImportSource": "https://esm.sh/v112/[email protected]"
13+
"jsxImportSource": "https://esm.sh/v113/[email protected]"
1414
},
1515
"importMap": "./import_map.json",
1616
"fmt": {

examples/react-app/routes/todos.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { FormEvent } from "react";
2-
import { Head, useData, useMutation } from "aleph/react";
2+
import { Head, useData } from "aleph/react";
33

44
type Todo = {
55
id: number;
@@ -43,8 +43,7 @@ export async function mutation(req: Request): Promise<Response> {
4343
}
4444

4545
export default function Todos() {
46-
const { data: { todos } } = useData<{ todos: Todo[] }>();
47-
const { isMutating, mutation } = useMutation<{ todos: Todo[] }>();
46+
const { data: { todos }, isMutating, mutation } = useData<{ todos: Todo[] }>();
4847

4948
const onSubmit = async (e: FormEvent<HTMLFormElement>) => {
5049
e.preventDefault();

examples/react-mdx-app/routes/_export.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// deno-fmt-ignore-file
44
// deno-lint-ignore-file
55
// @ts-nocheck
6-
var u=Object.defineProperty;var c=(s,e)=>{for(var o in e)u(s,o,{get:e[o],enumerable:!0})};import*as y from"./_404.tsx";import*as k from"./_app.tsx";import*as v from"./index.tsx";import*as A from"./docs.tsx";var t={};c(t,{default:()=>b});import{Fragment as g,jsx as r,jsxs as i}from"https://esm.sh/[email protected]/jsx-runtime";import{useMDXComponents as h}from"https://esm.sh/v112/@mdx-js/[email protected]";import{Head as j}from"aleph/react";function d(s){let e=Object.assign({h1:"h1",p:"p",code:"code",pre:"pre"},h(),s.components);return i(g,{children:[r(j,{children:r("title",{children:"Get Started - Docs"})}),`
6+
var u=Object.defineProperty;var c=(s,e)=>{for(var o in e)u(s,o,{get:e[o],enumerable:!0})};import*as y from"./_404.tsx";import*as k from"./_app.tsx";import*as v from"./index.tsx";import*as A from"./docs.tsx";var t={};c(t,{default:()=>b});import{Fragment as g,jsx as r,jsxs as i}from"https://esm.sh/[email protected]/jsx-runtime";import{useMDXComponents as h}from"https://esm.sh/v113/@mdx-js/[email protected]";import{Head as j}from"aleph/react";function d(s){let e=Object.assign({h1:"h1",p:"p",code:"code",pre:"pre"},h(),s.components);return i(g,{children:[r(j,{children:r("title",{children:"Get Started - Docs"})}),`
77
`,r(e.h1,{id:"get-started",children:"Get Started"}),`
88
`,i(e.p,{children:["Initialize a new project, you can pick a start template with ",r(e.code,{children:"--template"}),` flag, available templates:
99
`,r(e.code,{children:"[react, vue, api, yew]"})]}),`
1010
`,r(e.pre,{children:r(e.code,{className:"hljs language-bash",children:`deno run -A https://deno.land/x/[email protected]/init.ts
11-
`})})]})}function f(s={}){let{wrapper:e}=Object.assign({},h(),s.components);return e?r(e,Object.assign({},s,{children:r(d,s)})):d(s)}var b=f;var l={};c(l,{default:()=>x});import{Fragment as N,jsx as n,jsxs as a}from"https://esm.sh/[email protected]/jsx-runtime";import{useMDXComponents as p}from"https://esm.sh/v112/@mdx-js/[email protected]";import{Head as w}from"aleph/react";function m(s){let e=Object.assign({h1:"h1",p:"p",strong:"strong",a:"a",blockquote:"blockquote",em:"em",code:"code",pre:"pre",span:"span"},p(),s.components);return a(N,{children:[n(w,{children:n("title",{children:"About - Docs"})}),`
11+
`})})]})}function f(s={}){let{wrapper:e}=Object.assign({},h(),s.components);return e?r(e,Object.assign({},s,{children:r(d,s)})):d(s)}var b=f;var l={};c(l,{default:()=>x});import{Fragment as N,jsx as n,jsxs as a}from"https://esm.sh/[email protected]/jsx-runtime";import{useMDXComponents as p}from"https://esm.sh/v113/@mdx-js/[email protected]";import{Head as w}from"aleph/react";function m(s){let e=Object.assign({h1:"h1",p:"p",strong:"strong",a:"a",blockquote:"blockquote",em:"em",code:"code",pre:"pre",span:"span"},p(),s.components);return a(N,{children:[n(w,{children:n("title",{children:"About - Docs"})}),`
1212
`,n(e.h1,{id:"about",children:"About"}),`
1313
`,a(e.p,{children:[n(e.strong,{children:"Aleph.js"})," (or ",n(e.strong,{children:"Aleph"})," or ",n(e.strong,{children:"\u05D0"})," or ",n(e.strong,{children:"\u963F\u83B1\u592B"}),", ",n("samp",{children:"\u02C8\u0251\u02D0l\u025Bf"}),`) is a
1414
fullstack framework in `,n(e.a,{href:"https://deno.land",children:"Deno"}),". Inspired by ",n(e.a,{href:"https://nextjs.org",children:"Next.js"}),", ",n(e.a,{href:"https://remix.run",children:"Remix"})," and ",n(e.a,{href:"https://vitejs.dev",children:"Vite"}),"."]}),`

examples/react-mdx-app/routes/docs/get-started.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { Head } from "aleph/react"
1212
# Get Started
1313

1414
Initialize a new project, you can pick a start template with `--template` flag, available templates:
15-
`[react, vue, api, yew]`
15+
`[react, react-mdx, api]`
1616

1717
```bash
1818
deno run -A https://deno.land/x/[email protected]/init.ts
19-
```
19+
```

examples/react-mdx-app/server.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import mdx from "aleph/plugins/mdx";
55
import modules from "./routes/_export.ts";
66

77
// check https://mdxjs.com/docs/extending-mdx
8-
import remarkFrontmatter from "https://esm.sh/v112/[email protected]";
9-
import remarkGFM from "https://esm.sh/v112/[email protected]";
10-
import rehypeHighlight from "https://esm.sh/v112/[email protected]";
11-
import rehypeSlug from "https://esm.sh/v112/[email protected]";
8+
import remarkFrontmatter from "https://esm.sh/v113/[email protected]";
9+
import remarkGFM from "https://esm.sh/v113/[email protected]";
10+
import rehypeHighlight from "https://esm.sh/v113/[email protected]";
11+
import rehypeSlug from "https://esm.sh/v113/[email protected]";
1212

1313
serve({
1414
plugins: [

examples/solid-app/README.md

-7
This file was deleted.

examples/solid-app/assets/external-link.svg

-6
This file was deleted.

examples/solid-app/assets/logo.svg

-6
This file was deleted.

examples/solid-app/assets/solid.svg

-2
This file was deleted.

examples/solid-app/components/Header.tsx

-53
This file was deleted.

examples/solid-app/components/Logo.tsx

-18
This file was deleted.

examples/solid-app/index.html

-16
This file was deleted.

examples/solid-app/main.ts

-3
This file was deleted.

examples/solid-app/routes/_app.tsx

-11
This file was deleted.

0 commit comments

Comments
 (0)