Skip to content

Commit ec2efbb

Browse files
authored
Merge pull request #2 from DioxusLabs/narrow-api
More examples and typed language api
2 parents 0e1861b + b5850bd commit ec2efbb

70 files changed

Lines changed: 3847 additions & 983 deletions

Some content is hidden

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

.github/workflows/clean-up-preview.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
with:
2121
all-features: false
2222
no-default-features: true
23-
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-demo/web dioxus-code-live-input/web
23+
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-docsite/web dioxus-code-live-input/web
2424

2525
test:
2626
uses: ealmloff/dioxus-ci/.github/workflows/test.yml@main
2727
with:
2828
no-default-features: true
29-
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-demo/web dioxus-code-live-input/web
29+
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-docsite/web dioxus-code-live-input/web
3030

3131
fmt:
3232
uses: ealmloff/dioxus-ci/.github/workflows/fmt.yml@main
@@ -36,23 +36,11 @@ jobs:
3636
with:
3737
all-features: false
3838
no-default-features: true
39-
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-demo/web dioxus-code-live-input/web
39+
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-docsite/web dioxus-code-live-input/web
4040

4141
clippy:
4242
uses: ealmloff/dioxus-ci/.github/workflows/clippy.yml@main
4343
with:
4444
all-features: false
4545
no-default-features: true
46-
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-demo/web dioxus-code-live-input/web
47-
48-
web-demo:
49-
if: github.event_name == 'push'
50-
uses: ealmloff/dioxus-ci/.github/workflows/web-build.yml@main
51-
with:
52-
working-directory: demo
53-
ssg: true
54-
no-default-features: true
55-
features: fullstack
56-
debug-symbols: false
57-
base-path: ${{ github.event.repository.name }}
58-
dx-cli-version: 0.7.7
46+
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-docsite/web dioxus-code-live-input/web

.github/workflows/nightly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@ jobs:
1919
toolchain: nightly
2020
all-features: false
2121
no-default-features: true
22-
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-demo/web dioxus-code-live-input/web
22+
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-docsite/web dioxus-code-live-input/web
2323

2424
test:
2525
uses: ealmloff/dioxus-ci/.github/workflows/test.yml@main
2626
with:
2727
toolchain: nightly
2828
no-default-features: true
29-
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-demo/web dioxus-code-live-input/web
29+
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-docsite/web dioxus-code-live-input/web
3030

3131
clippy:
3232
uses: ealmloff/dioxus-ci/.github/workflows/clippy.yml@main
3333
with:
3434
toolchain: nightly
3535
all-features: false
3636
no-default-features: true
37-
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-demo/web dioxus-code-live-input/web
37+
features: dioxus-code/all-languages dioxus-code-editor/web dioxus-code-docsite/web dioxus-code-live-input/web
3838

3939
web-demo:
4040
uses: ealmloff/dioxus-ci/.github/workflows/web-build.yml@main
4141
with:
42-
working-directory: demo
42+
working-directory: docsite
4343
ssg: true
4444
no-default-features: true
4545
features: fullstack

.github/workflows/pages.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pages
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Web"]
6+
types: [completed]
7+
pull_request:
8+
types: [closed]
9+
10+
permissions:
11+
actions: read
12+
contents: write
13+
pull-requests: write
14+
15+
concurrency:
16+
group: pages-${{ github.event.workflow_run.id || github.event.pull_request.number }}
17+
cancel-in-progress: false
18+
19+
jobs:
20+
publish:
21+
uses: ealmloff/dioxus-ci/.github/workflows/pages-publish.yml@main

.github/workflows/pr-preview-publish.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
name: PR Preview Build
1+
name: Web
22

33
on:
4+
push:
5+
branches: [main]
46
pull_request:
57
types: [opened, synchronize, reopened, ready_for_review]
68
branches: [main]
9+
workflow_dispatch:
710

811
permissions:
912
contents: read
1013

1114
concurrency:
12-
group: pr-preview-build-${{ github.event.pull_request.number }}
15+
group: web-${{ github.event.pull_request.number || github.ref }}
1316
cancel-in-progress: true
1417

1518
jobs:
1619
build:
17-
uses: ealmloff/dioxus-ci/.github/workflows/pr-preview-build.yml@main
20+
uses: ealmloff/dioxus-ci/.github/workflows/web-build.yml@main
1821
with:
19-
working-directory: demo
22+
working-directory: docsite
2023
ssg: true
2124
no-default-features: true
2225
features: fullstack
2326
debug-symbols: false
27+
base-path: ${{ github.event.repository.name }}
2428
dx-cli-version: 0.7.7

Cargo.lock

Lines changed: 11 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)