Skip to content

Commit

Permalink
🔖 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaoz-Topsy committed Jun 14, 2024
1 parent e6b29e0 commit b962a1c
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ node_modules
/.vitepress/dist
docs/.vitepress/cache
docs/.vitepress/dist
/.env.*
/.env.*
vite.config.ts.*.mjs
4 changes: 4 additions & 0 deletions .vitepress/config.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ export const vitePressRoutes = {
text: 'Docker',
link: '/docs/deploy/docker',
},
newRelease: {
text: 'New Release',
link: '/docs/deploy/newRelease',
},
},
githubDocs: {
contributing: {
Expand Down
1 change: 1 addition & 0 deletions .vitepress/config.sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const sidebar: DefaultTheme.SidebarItem[] = [
items: [
vitePressRoutes.deploying.githubActions, //
vitePressRoutes.deploying.docker,
vitePressRoutes.deploying.newRelease,
],
},
{
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.7] - 2024-06-----
## [1.0.7] - 2024-06-14

### Added

Expand All @@ -18,6 +18,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Storybook version and the addons we use
- Improved the automation of release notes

### WIP

- Bug report form
- Homepage

## [1.0.6] - 2024-03-21

### Added
Expand Down
2 changes: 2 additions & 0 deletions docs/deploy/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Docker makes it easy to run applications without having anything installed on th

Ensure that you have [Docker][docker] installed. Also check that you have created a `.env` file (based on the `.env.template file`) and that you have filled in the variables.

> You can also create files like `.env.prod`, `.env.dev2`, etc. When running the `buildAndDeploy.sh` file you will be prompted for which file to load.
From the root directory of this project (where the `Dockerfile` is), run `sh ./docker/buildAndDeploy.sh`. This will get some info required from the `.env` that you should have created and start the process of building the image using [Docker][docker].

## Configure
Expand Down
9 changes: 9 additions & 0 deletions docs/deploy/newRelease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# New Release

When creating a new release, there are a few things to remember

- Change the version number in the `package.json` file
- Update the `CHANGELOG.md` with all the changes
- Create a [pull request](https://github.com/NMSUD/Form/compare/main...develop) in the Github Repo

> TODO update this page after a few more releases...
1 change: 0 additions & 1 deletion docs/form/new-api-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const communityModule: IApiModule<CommunityDto, ICommunityImages, Communi
name: 'CommunityDto',
segment: 'community',
dtoMeta: CommunityDtoMeta,
persistenceMeta: CommunityPersistenceMeta,
getName: (persistence: Community) => persistence.name,

mapDtoWithImageToPersistence: communityDtoWithImageToPersistence,
Expand Down
32 changes: 13 additions & 19 deletions docs/form/new-form-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,19 @@ export const BuilderFormPage: Component = () => {
];

return (
<>
<PageHeader text="Submit a builder profile"></PageHeader>

<Card class="form">
<FormBuilder
id="BuilderDto"
segment="builder"
getName={(dto: BuilderDto) => dto.name}
formDtoMeta={BuilderDtoMeta}
propertyOverrides={propertyOverrides}
mappings={
{
// Typescript should force you to declare an object
// for each property in the dto.
}
}
/>
</Card>
</>
<FormBuilder
id="BuilderDto"
segment="builder"
getName={(dto: BuilderDto) => dto.name}
formDtoMeta={BuilderDtoMeta}
propertyOverrides={propertyOverrides}
mappings={
{
// Typescript should force you to declare an object
// for each property in the dto.
}
}
/>
);
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nmsud.form",
"version": "1.0.6",
"version": "1.0.7",
"author": "Kurt Lourens",
"type": "module",
"description": "A custom solution for capturing data for the yearly Unification Days event",
Expand Down
1 change: 1 addition & 0 deletions src/services/internal/apiFileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class ApiFileService {
name: formData.newFilename,
mediaType: formData.mimetype,
base64Content: contents,
enablePublicUrl: true,
},
};
} catch (ex) {
Expand Down

0 comments on commit b962a1c

Please sign in to comment.