Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release 1.0 #106

Merged
merged 137 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
5eeebf5
feat(#73): simplify global prefix
francescovallone Aug 28, 2024
9f7c862
feat(#73): format files
francescovallone Aug 28, 2024
24c4787
feat(#74): allow passing parameters in route handler
francescovallone Aug 30, 2024
37429e9
feat(#74): add check on function type
francescovallone Aug 30, 2024
5b612bd
feat(#74): analyze and format
francescovallone Sep 1, 2024
f82aee6
feat(#74): test all the normalizations
francescovallone Sep 8, 2024
937962a
feat(#73): modify the documentation to reflect the changes
francescovallone Sep 8, 2024
76bf981
Merge pull request #75 from francescovallone/feat/73
francescovallone Sep 8, 2024
d85069c
Merge branch 'main' into develop
francescovallone Sep 10, 2024
e85a2c8
Merge branch 'main' into develop
francescovallone Sep 10, 2024
e881951
feat(#77)!: remove DeferredModule, improve the registration of the De…
francescovallone Sep 10, 2024
557711b
feat(#77): format files
francescovallone Sep 10, 2024
1bff6e2
feat(#77 | config): update serinus_config after the deletion of the M…
francescovallone Sep 10, 2024
a62c390
feat(#77): add documentation regarding the change
francescovallone Sep 10, 2024
4971bb2
Merge pull request #86 from francescovallone/feat/77
francescovallone Sep 11, 2024
9988ee4
feat(#69): allow to pass value to the next function, remove InternalR…
francescovallone Sep 13, 2024
4601caa
feat(#69): fix some packages after feat/77 merge
francescovallone Sep 13, 2024
200f1e0
feat(#69): add more tests
francescovallone Sep 14, 2024
66edff8
docs(#69): update documentation
francescovallone Sep 14, 2024
cfbbf65
Merge pull request #87 from francescovallone/feat/69
francescovallone Sep 14, 2024
0f4df3b
feat(#74): add tests for parametric handlers
francescovallone Sep 16, 2024
f03ab7b
chore(#74): format files
francescovallone Sep 16, 2024
2c490c8
Merge branch 'develop' into feat/74
francescovallone Sep 16, 2024
1caa328
fix(#89): add check to the statusCode setter in ResponseProperties
francescovallone Sep 17, 2024
19fb230
docs(#89): add warning in the documentation
francescovallone Sep 17, 2024
4849bce
Merge pull request #90 from francescovallone/fix/89
francescovallone Sep 17, 2024
b1ab755
docs(#74): update documentation to reflect the changes
francescovallone Sep 17, 2024
4158de8
Merge pull request #88 from francescovallone/feat/74
francescovallone Sep 17, 2024
aec924c
feat(#65): add prefix, setLoggerPrefix and update documentation
francescovallone Sep 21, 2024
0659309
feat(#65): change test
francescovallone Sep 21, 2024
24aa1df
Merge pull request #91 from francescovallone/feat/65
francescovallone Sep 21, 2024
6f1dd5b
feat(#66): add OnApplicationBootstrap, add OnApplicationReady lifecyc…
francescovallone Sep 21, 2024
f96b893
docs(#66): update documentation
francescovallone Sep 21, 2024
4d7a011
test(#66): add tests for all the hook
francescovallone Sep 21, 2024
bc5f20a
feat(#66): fix analyze and format code
francescovallone Sep 21, 2024
fa9e15c
Merge pull request #92 from francescovallone/feat/66
francescovallone Sep 21, 2024
b6ddfad
chore: update dependencies
francescovallone Sep 23, 2024
2267634
feat(#68): initial implementation, add request event and remove respo…
francescovallone Sep 23, 2024
357affe
feat(#68): fix ci
francescovallone Sep 23, 2024
4fdb3b3
test(#68): add tests
francescovallone Sep 23, 2024
ac9c12e
docs(#68): update documentation
francescovallone Sep 23, 2024
1520a4d
test(#68): add another matcher
francescovallone Sep 23, 2024
4e4f415
Merge pull request #93 from francescovallone/feat/68
francescovallone Sep 23, 2024
e8576dd
feat(#72): add static routes
francescovallone Sep 23, 2024
f1e1902
chore(#72): format files
francescovallone Sep 23, 2024
73fd5a7
docs(#72): add documentation
francescovallone Sep 23, 2024
0db5940
Merge pull request #94 from francescovallone/feat/72
francescovallone Sep 23, 2024
f992e53
feat(#85): refactor generate command, add model provider, gracefully …
francescovallone Sep 24, 2024
352a8e4
test(#85): add tests
francescovallone Sep 26, 2024
636f8b6
feat(#85): simplify model_provider adding maps instead of switch stat…
francescovallone Sep 26, 2024
d8cc837
feat(#85): remove unused code
francescovallone Sep 26, 2024
84da4ef
feat(#85): define expandibility for the model generation
francescovallone Sep 30, 2024
7832c8d
feat(#85): remove test model_provider
francescovallone Sep 30, 2024
7b47c74
Merge pull request #97 from francescovallone/feat/85
francescovallone Oct 1, 2024
51f60fb
docs(#85): add documentation on the ModelProvider
francescovallone Oct 1, 2024
3e5bbb7
docs(#62): add cli and configuration documentation
francescovallone Oct 1, 2024
89c2392
Merge pull request #98 from francescovallone/feat/62
francescovallone Oct 1, 2024
bf4df16
feat(#61): start implementation of client generation
francescovallone Oct 2, 2024
00cf27a
feat(#61): fix analyzer
francescovallone Oct 3, 2024
a69a1cc
chore: upgrade dependencies
francescovallone Oct 3, 2024
88a2069
feat(#61): separate controllers and routes
francescovallone Oct 3, 2024
d244005
feat: fix the params fetching
francescovallone Oct 3, 2024
444f6a9
feat(#61): add check on user-defined routes, improved performances
francescovallone Oct 7, 2024
15d5989
chore(#61): fix analyzer
francescovallone Oct 7, 2024
9a400e8
fix: fix providers injection adding another check
francescovallone Oct 11, 2024
3c1de18
chore: fix analyze
francescovallone Oct 11, 2024
90cb7ee
feat(#61): start code generation
francescovallone Oct 13, 2024
5bf73a6
feat(#61): working client, yet to polish
francescovallone Oct 14, 2024
b525062
fix(#61): fix tests
francescovallone Oct 14, 2024
006095e
Merge branch 'develop' into feat/61
francescovallone Oct 14, 2024
dec8fdb
docs(#61): start documenting the generate client command
francescovallone Oct 16, 2024
258aef0
fix: fix generate_models_command making it more precise when getting …
francescovallone Oct 17, 2024
7ae8e59
fix: json serialization now works for datetime and nullable objects
francescovallone Oct 18, 2024
f57e6f8
chore: format files
francescovallone Oct 18, 2024
4aba98e
fix: add model provider to the parseJson function
francescovallone Oct 21, 2024
e4d2a67
chore: fix analyzer
francescovallone Oct 21, 2024
61d466c
feat(#61): add output to models command
francescovallone Oct 21, 2024
5a44025
chore: add cookies
francescovallone Oct 21, 2024
64ec460
chore: add cookies
francescovallone Oct 21, 2024
35b695c
feat(#61): add output path to the model provider
francescovallone Oct 22, 2024
290dea8
chore: add components
francescovallone Oct 24, 2024
dc7a78a
feat(#101): split hooks and route methods into mixins
francescovallone Oct 24, 2024
9953936
docs: remove ref to serinus nest
francescovallone Oct 24, 2024
10e10de
feat(#101): add tests and hookable common class for routes and hooks
francescovallone Oct 24, 2024
8bfed38
chore: fix tests
francescovallone Oct 24, 2024
edaa792
feat(#101): fix tests
francescovallone Oct 24, 2024
e25d4b9
chore(#101): format files
francescovallone Oct 24, 2024
6219282
docs(#101): add documentation for new hookable mixins
francescovallone Oct 24, 2024
3d0e95c
Merge pull request #102 from francescovallone/feat/101
francescovallone Oct 24, 2024
b51d450
docs: add serinus_0_6
francescovallone Oct 24, 2024
ca54874
feat(#96): add services and secure session to serinus
francescovallone Oct 31, 2024
7bfd279
test(#96): add tests for secure session hook
francescovallone Oct 31, 2024
dae11a9
chore(#96): format files
francescovallone Oct 31, 2024
de6ec3b
docs(#96): add documentation
francescovallone Oct 31, 2024
5d1dfbb
Merge pull request #103 from francescovallone/feat/96
francescovallone Oct 31, 2024
4819736
fix: change where operator
francescovallone Nov 3, 2024
b8aa298
chore: update dependencies
francescovallone Nov 3, 2024
cde6742
chore: prepare for rc.1
francescovallone Nov 3, 2024
8980da3
chore: prepare for release 1.0.0-rc.2
francescovallone Nov 4, 2024
c718ca8
feat(json-body): add abstraction of the json body to handle both list…
francescovallone Nov 6, 2024
8237c90
tests: fix test in develop
francescovallone Nov 6, 2024
c8c5bee
chore: format files
francescovallone Nov 6, 2024
6280990
feat: decouple adapters and allow to define own handling strategies
francescovallone Nov 7, 2024
422d27d
chore: prepare for release 1.0.0-rc.3
francescovallone Nov 7, 2024
5c018eb
chore: fix analyze
francescovallone Nov 7, 2024
264d640
chore: format files
francescovallone Nov 7, 2024
72bf57a
feat: add formdata as json value for model provider
francescovallone Nov 11, 2024
d67b928
chore: format and prepare for release
francescovallone Nov 11, 2024
ccca91c
perf: use JsonUtf8Decoder and JsonUtf8Encoder to handle json conversion
francescovallone Nov 13, 2024
e363c83
chore: format files
francescovallone Nov 13, 2024
4d051c8
feat(#61): finish the work
francescovallone Nov 13, 2024
d83ded3
fix(#61): remove Todo
francescovallone Nov 13, 2024
dac92c4
Merge branch 'develop' into feat/61
francescovallone Nov 13, 2024
f4cf7f4
Merge pull request #100 from francescovallone/feat/61
francescovallone Nov 13, 2024
d467570
fix: fix models return type
francescovallone Nov 14, 2024
7070f54
chore: update pubspec links
francescovallone Nov 18, 2024
b10624f
chore: add blog page for serinus 1.0
francescovallone Nov 18, 2024
59f7e9c
tests: add ignore-file coverage
francescovallone Nov 18, 2024
223eec9
tests: remove coverage ignore
francescovallone Nov 18, 2024
193173f
docs: fix generate and add hooks service
francescovallone Nov 21, 2024
4bfeffb
docs: add typings to handler documentation
francescovallone Nov 21, 2024
6bf718e
ref: integrate cors and rate_limiter in serinus
francescovallone Nov 21, 2024
fe489a9
chore: format files
francescovallone Nov 21, 2024
f290817
chore: prepare packages for release 1.0.0
francescovallone Nov 21, 2024
e76bed7
refactor: change useViewEngine and enableVersioning with setters
francescovallone Nov 22, 2024
016994c
chore: add frontier to the documentation
francescovallone Nov 22, 2024
ee041ec
fix: rename RateLimitExceeded exception to TooManyRequestsException
francescovallone Nov 22, 2024
91d9b3c
docs: remove deadlinks
francescovallone Nov 22, 2024
45e1896
chore: fix doc build
francescovallone Nov 22, 2024
ddb6b58
docs: add meta tags
francescovallone Nov 23, 2024
27bb71a
tests: fix tests
francescovallone Nov 23, 2024
4cfa774
docs: working on the blog post
francescovallone Nov 24, 2024
f6ca50b
chore: update blog post
francescovallone Nov 25, 2024
a24f46d
chore: update blog post
francescovallone Nov 25, 2024
8f2c324
docs: fix deadlink
francescovallone Nov 25, 2024
97987e5
docs: finished
francescovallone Nov 25, 2024
5aeae52
chore: update version
francescovallone Nov 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add components
  • Loading branch information
francescovallone committed Oct 24, 2024
commit 290dea8e2833fcd2db1232bea769292263588ad3
4 changes: 4 additions & 0 deletions .website/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export default defineConfig({
text: 'Pub.dev',
link: 'https://pub.dev/packages/serinus'
},
{
text: 'Blog',
link: '/blog/'
}
],
sidebar: [
{
Expand Down
28 changes: 28 additions & 0 deletions .website/blog/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: Serinus Blog
layout: page
sidebar: false
editLink: false
search: false
head:
- - meta
- property: 'og:title'
content: Blog - Serinus

- - meta
- name: 'description'
content: Updates and release notes of Serinus

- - meta
- property: 'og:description'
content: Updates and release notes of Serinus
---

<script setup>
import Blog from '../components/blog.vue'
</script>

<Blog
:posts="[
]"
/>
43 changes: 43 additions & 0 deletions .website/components/blog.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<script setup>
const props = defineProps({
posts: Array
})

</script>

<template>

<div>
<header class="flex flex-col justify-center items-center max-w-3xl gap-3 w-full mx-auto pt-20 pb-4">
<h1 class="text-5xl font-bold">
Serinus Blog
</h1>
<p class="text-gray-300 text-lg">
Release notes, updates, and more.
</p>
</header>
<main class="flex flex-col max-w-xl gap-4 w-full mx-auto my-8">
<a v-for="(post, index) in props.posts"
class="p-4 rounded-lg hover:bg-orange-500/25 focus:bg-orange-500/25 transition-colors cursor-pointer"
:href="post.href" :key="post.date + post.href">
<article v-if="index == 0" class="flex flex-col gap-2">
<img :src="post.src" :alt="post.alt" class="rounded-lg" />
<h2 class="text-3xl font-bold">
{{ post.title }}
</h2>
<h3 class="text-sm text-gray-400"> {{ post.date }}</h3>
</article>
<article v-if="index > 0" class="flex gap-2">
<div class="rounded-lg w-24 h-24 bg-cover bg-center" :style="'background-image: url('+post.src+')'"></div>
<div class="flex flex-col gap-2">
<h2 class="text-2xl font-bold">
{{ post.title }}
</h2>
<h3 class="text-sm text-gray-400"> {{ post.date }}</h3>
</div>
</article>
</a>
</main>
</div>

</template>
123 changes: 123 additions & 0 deletions .website/components/blog_page.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<script lang="ts" setup>
import { defineProps, onMounted, onUnmounted } from 'vue'

const authors = {
"Francesco Vallone": {
src: 'francesco_vallone.webp',
twitter: 'francescovll'
}
}

type Authors = typeof authors

const props = defineProps<{
title: string
src: string
alt: string
author: keyof Authors
date: string
shadow?: boolean
}>()

const author = authors[props.author]
const profile = `/blog/authors/${author.src}`
const twitter = `https://twitter.com/${author.twitter}`

const mutated = ['.aside', '.content', '.content-container', '.VPDocFooter']
onMounted(() => {
mutated.forEach((selector) => {
document.querySelector(selector)?.classList.add('blog')
})
})

onUnmounted(() => {
mutated.forEach((selector) => {
document.querySelector(selector)?.classList.remove('blog')
})
})
</script>

<template>
<article id="blog" class="flex flex-col max-w-3xl w-full mx-auto mt-8">
<h1 class="!text-3xl !md:text-4xl font-medium">
{{ props.title }}
</h1>
<aside class="flex gap-3 items-center mt-4">
<img
class="w-9 h-9 rounded-full"
:src="profile"
:alt="props.author"
/>
<div class="flex flex-col justify-start">
<h3 class="!text-sm !m-0 opacity-75">{{ props.author }}</h3>
<p
class="flex flex-row items-center gap-2 !text-xs !m-0 opacity-75"
>
<span>{{ props.date }}</span>
<span>ー</span>
<a :href="twitter" target="_blank">@{{ author.twitter }}</a>
</p>
</div>
</aside>
<img :src="props.src" :alt="props.alt" class="w-full mt-6 mb-2" :class="props.shadow ? 'shadow-xl' : 'border'" />
<main id="blog-content">
<slot />
</main>
</article>
</template>

<style>
.blog.aside {
position: fixed !important;
z-index: 10;
left: calc(50% + 48rem / 2 + 2rem) !important;
}

.blog.content,
.blog.content-container {
max-width: unset !important;
}

.blog.VPDocFooter {
display: none !important;
}

#blog {
@apply text-lg mt-0;
}

#blog>img {
@apply rounded-lg;
}

#blog>h1 {
@apply !text-3xl md:!text-4xl font-semibold;
}

#blog>h2 {
@apply !text-2xl md:!text-3xl font-semibold;
}

#blog>h3 {
@apply !text-xl md:!text-2xl font-semibold;
}

#blog-content>video,
#blog-content>*>video,
#blog-content>img,
#blog-content>*>img {
@apply rounded-xl my-4;
/* box-shadow: 0 8px 25px rgba(0,0,0,.1) */
}

.-png {
box-shadow: unset !important;
background: transparent !important;
}

@media (min-width: 768px) {
#blog>h1 {
line-height: 3.25rem !important;
}
}
</style>
2 changes: 0 additions & 2 deletions .website/components/graph_line.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const scalePadding = (value, max) =>
`padding-left: ${((value / max) * 100).toFixed(2)}%`
const format = new Intl.NumberFormat().format

console.log(scale(props.value, props.max))

</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion .website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"vitepress": "^1.3.1"
"vitepress": "^1.4.1"
}
}
Loading
Loading