Skip to content

Commit

Permalink
chores(ci): fix git url
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Nov 18, 2023
1 parent eb4de23 commit e7ee321
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 56 deletions.
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<center>
<div align="center">

# Astro Utils

<img src="./assets/logo.rounded.png" alt="Astro Utils" height="300px"/>
</center>
</div>

> Components to help with your astro app
Expand All @@ -26,10 +26,10 @@ Add the middleware to your server

`src/middleware.ts`
```ts
import amMiddleware from "@astro-utils/forms";
import astroForms from "@astro-utils/forms";
import {sequence} from "astro/middleware";

export const onRequest = sequence(amMiddleware());
export const onRequest = sequence(astroForms());
```

Add the `WebForms` component in the layout
Expand Down Expand Up @@ -59,9 +59,9 @@ function formSubmit(){
}
---
<Layout>
{showSubmitText}
<BindForm bind={form}>
{showSubmitText}
<h4>What you name*</h4>
<Input type={'text'} name="name" maxlength={20} required/>
Expand All @@ -79,13 +79,10 @@ When vite reloads the page, the browser will popup confirmation dialog. This is
`astro.config.mjs`
```js
import { defineConfig } from 'astro/config';
import amDebug from "@astro-utils/forms/dist/integration.js";
import astroFormsDebug from "@astro-utils/forms/dist/integration.js";

export default defineConfig({
output: 'server',
integrations: [amDebug],
experimental: {
middleware: true
}
integrations: [astroFormsDebug]
});
```
135 changes: 100 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"examples/*"
],
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/npm": "^11.0.1",
"@semantic-release/release-notes-generator": "^12.1.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"context",
"jsx"
],
"homepage": "https://astro-utils.github.io/docs/",
"homepage": "https://withastro-utils.github.io/docs/",
"author": "Ido S.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/astro-utils/metro-forms.git"
"url": "https://github.com/withastro-utils/forms.git"
},
"bugs": {
"url": "https://github.com/astro-utils/metro-forms/issues"
"url": "https://github.com/withastro-utils/forms/issues"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/formidable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"formidable",
"request"
],
"homepage": "https://astro-utils.github.io/docs/",
"homepage": "https://withastro-utils.github.io/docs/",
"author": "Ido S.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/astro-utils/metro-forms.git"
"url": "https://github.com/withastro-utils/forms.git"
},
"bugs": {
"url": "https://github.com/astro-utils/metro-forms/issues"
"url": "https://github.com/withastro-utils/forms/issues"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Astro Forms

<img src ="https://raw.githubusercontent.com/astro-utils/metro-forms/main/assets/logo.webp" width="100px"/><br/>
<img src ="https://raw.githubusercontent.com/withastro-utils/forms/main/assets/logo.webp" width="100px"/><br/>


Reactive forms for Astro without any JavaScript!
Expand Down
6 changes: 3 additions & 3 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"react",
"hooks"
],
"homepage": "https://astro-utils.github.io/docs/",
"homepage": "https://withastro-utils.github.io/docs/",
"author": "Ido S.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/astro-utils/metro-forms.git"
"url": "https://github.com/withastro-utils/forms.git"
},
"bugs": {
"url": "https://github.com/astro-utils/metro-forms/issues"
"url": "https://github.com/withastro-utils/forms/issues"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit e7ee321

Please sign in to comment.