Skip to content

Commit

Permalink
Merge pull request #129 from medz/v4
Browse files Browse the repository at this point in the history
V4
  • Loading branch information
Seven Du authored Jul 10, 2024
2 parents 81e56e2 + dfcccea commit 2b57121
Show file tree
Hide file tree
Showing 164 changed files with 4,044 additions and 3,391 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ updates:
directory: /packages/spry
schedule:
interval: daily

# spry_cookie
- package-ecosystem: pub
directory: /packages/spry_cookie
schedule:
interval: daily
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: test

on:
push:
Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
packages: [spry]
packages: [spry, spry_cookie]
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
Expand All @@ -23,6 +23,6 @@ jobs:
- name: Analyze
run: dart analyze
working-directory: packages/${{ matrix.packages }}
- name: Test
- name: run tests
run: dart test
working-directory: packages/${{ matrix.packages }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node_modules/
node_modules/
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Spry v4.0.0-0 & Spry cookie v0.0.1

To install Spry v4.0.0-0 & Spry cookie v0.0.1 run this command:

```bash
dart pub add spry:^4.0.0
dart pub add spry_cookie:^0.0.1
```

Or update your `pubspec.yaml` file:

```yaml
dependencies:
spry: ^4.0.0
spry_cookie: ^0.0,1
```
# Spry v4.0.0-dev.2
To install Spry v4.0.0-dev.2 run this command:
```bash
dart pub add spry:^4.0.0-dev.2
```

Or update your `pubspec.yaml` file:

```yaml
dependencies:
spry: ^4.0.0-dev.2
```
## What's Changed
* fixed website url
* fixed static analysis
28 changes: 8 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,23 @@
[![X (twitter)](https://img.shields.io/badge/twitter-%40shiweidu-blue.svg)](https://twitter.com/shiweidu)
[![Documentation](https://img.shields.io/badge/docs-spry.fun-brightgreen.svg)](https://spry.fun/)

Spry is an HTTP middleware framework for Dart to make web applications and APIs server more enjoyable to write.
Spry is a lightweight, composable Dart web framework designed to work collaboratively with various runtime platforms.

```dart
import 'package:spry/spry.dart';
main() async {
final app = Application.late();
main() {
final app = Spry();
app.get("hello", (request) => "Hello, Spry!");
await app.run(port: 3000);
app.get("hello", (event) => "Hello, Spry!");
}
```

👉 [**Learn more about Spry at Spry Documentation.**](https://spry.fun/)

## Philosophy

Spry is a framework for building web applications and APIs. It's designed around dart:io, no boring creations, just lots of magic.
👉 [**Learn more about Spry at documentation website.**](https://spry.fun/guide/getting-started)

## Sponsors

Spry framework is an [MIT licensed](https://github.com/medz/spry/blob/main/LICENSE) open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider [sponsoring Seven(@medz)](https://github.com/sponsors/odroe) or [sponsor us on OpenCollective](https://opencollective.com/openodroe) development.
Spry framework is an [MIT licensed](https://github.com/medz/spry/blob/main/LICENSE) open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider [sponsoring Seven(@medz)](https://github.com/sponsors/odroe) development.

<p align="center">
<a target="_blank" href="https://github.com/sponsors/odroe#sponsors">
Expand All @@ -38,12 +32,6 @@ Spry framework is an [MIT licensed](https://github.com/medz/spry/blob/main/LICEN

## Contributing

We welcome contributions! Please read our [contributing guide](CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Prisma.

Thank you to all the people who already contributed to Odroe!

[![Contributors](https://opencollective.com/openodroe/contributors.svg?width=890)](https://github.com/odroe/prisma-dart/graphs/contributors)

## Code of Conduct
Thank you to all the people who already contributed to Spry!

This project has adopted the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). For more information see the [Code of Conduct FAQ](https://www.contributor-covenant.org/faq) or contact [[email protected]](mailto:hello@odroe.com) with any additional questions or comments.
[![Contributors](https://contrib.rocks/image?repo=medz/spry)](https://github.com/odroe/prisma-dart/graphs/contributors)
Binary file modified bun.lockb
Binary file not shown.
96 changes: 70 additions & 26 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,52 +1,96 @@
import { defineConfig } from 'vitepress';
import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'Spry',
titleTemplate: 'Spry: :title',
title: "Spry",
titleTemplate: "Spry: :title",
description:
'An HTTP middleware framework for Dart to make web applications and APIs server more enjoyable to write.',
"Spry is a lightweight, composable Dart web framework designed to work collaboratively with various runtime platforms.",
head: [["link", { rel: "icon", type: "image/svg+xml", href: "/spry.svg" }]],
sitemap: {
hostname: "https://spry.fun",
},
cleanUrls: true,
themeConfig: {
logo: {
src: "/spry.svg",
alt: "Spry",
},
editLink: {
pattern: ':repo/edit/:branch/:path',
pattern: "https://github.com/medz/spry/edit/main/docs/:path",
},
nav: [
{
text: "Guide",
items: [
{ text: "App", link: "/guide/app" },
{ text: "Routing", link: "/guide/routing" },
{ text: "Handler", link: "/guide/handler" },
{ text: "Event", link: "/guide/event" },
{ text: "WebSocket", link: "/guide/websocket/introduction" },
],
},
{
text: "Platforms",
items: [
{ text: "Plain", link: "/platforms/plain" },
{ text: "IO (dart:io)", link: "/platforms/io" },
],
},
{
text: "Examples",
link: "https://github.com/medz/spry/tree/main/examples",
},
],
sidebar: [
{ text: "What is Spry?", link: "/what-is-spry" },
{
text: "Getting Started",
link: "/getting-started",
},
{
text: 'Getting Started',
text: "Basics",
items: [
{ text: 'Introduction', link: '/getting-started/' },
{ text: 'Installation', link: '/getting-started/installation' },
{ text: 'Hello World', link: '/getting-started/hello-world' },
{ text: "App", link: "/guide/app" },
{ text: "Routing", link: "/guide/routing" },
{ text: "Handler", link: "/guide/handler" },
{ text: "Event", link: "/guide/event" },
],
},
{
text: 'Basics',
text: "WebSocket",
items: [
{ text: 'Routing', link: '/basics/routing' },
{ text: 'Controllers', link: '/basics/controllers' },
{ text: 'Request', link: '/basics/request' },
{ text: 'Response', link: '/basics/response' },
{ text: 'Errors & Exceptions', link: '/basics/exceptions' },
{ text: "Introduction", link: "/guide/websocket/introduction" },
{ text: "Hooks", link: "/guide/websocket/hooks" },
{ text: "Peer", link: "/guide/websocket/peer" },
{ text: "Message", link: "/guide/websocket/message" },
],
},
{
text: 'Advanced',
text: "Advanced",
items: [{ text: "Cookies", link: "/advanced/cookies" }],
},
{
text: "Platforms",
items: [
{ text: 'Handler', link: '/advanced/handler' },
{ text: 'Middleware', link: '/advanced/middleware' },
{ text: 'Sessions', link: '/advanced/sessions' },
{ text: 'Application', link: '/advanced/application' },
{ text: 'WebSockets', link: '/advanced/websockets' },
{
text: "Create a new platform",
link: "/platforms/create",
},
{ text: "Plain", link: "/platforms/plain" },
{ text: "IO (dart:io)", link: "/platforms/io" },
],
},
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/medz/spry' },
{ icon: "github", link: "https://github.com/medz/spry" },
{
icon: 'twitter',
link: 'https://twitter.com/shiweidu',
icon: "twitter",
link: "https://twitter.com/shiweidu",
},
],
footer: {
message: "Released under the MIT License.",
copyright: `Copyright © ${new Date().getFullYear()} Seven Du`,
},
},
});
Loading

0 comments on commit 2b57121

Please sign in to comment.