Skip to content

Commit

Permalink
bump version to 1.0.0 and add release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
barshathakuri committed Dec 18, 2024
1 parent 0d0ae7b commit bc991f2
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# go-alert-hub

### Major Changes

## 1.0.0

- 889066b: Add subscription modal, authentication and hcapcha.

- Add login
- Add Register
- Add Historical alert

### Patch Changes

- Updated dependencies and add patch [889066b]
- @ifrc-go/ui@1.2.1.patch


- 0d0ae7b: Bug fixes
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"name": "ifrc-alert-hub",
"version": "0.0.1",
"version": "1.0.0",
"type": "module",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/IFRCGo/alert-hub-web-app.git",
"directory": "app"
},
"scripts": {
"start": "vite",
"build": "vite build",
Expand Down
12 changes: 10 additions & 2 deletions src/components/GlobalFooter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import Link from '#components/Link';
import {
appCommitHash,
appVersion,
appPackageName,
appRepositoryUrl,
} from '#config';

import i18n from './i18n.json';
Expand All @@ -28,14 +30,20 @@ function GlobalFooter(props: Props) {
} = props;

const strings = useTranslation(i18n);
const versionTag = `${appPackageName}@${appVersion}`;
const versionUrl = `${appRepositoryUrl}/releases/tag/${versionTag}`;
const copyrightText = resolveToComponent(
strings.footerIFRC,
{
year,
appVersion: (
<span title={appCommitHash}>
<Link
href={versionUrl}
title={appCommitHash}
external
>
{appVersion}
</span>
</Link>
),
},
);
Expand Down
4 changes: 4 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const {
APP_COMMIT_HASH,
APP_VERSION,
APP_HCAPTCHA_SITEKEY,
APP_PACKAGE_NAME,
APP_REPOSITORY_URL,
} = import.meta.env;

export const appTitle = APP_TITLE; // not used
Expand All @@ -15,3 +17,5 @@ export const mapboxToken = APP_MAPBOX_ACCESS_TOKEN;
export const hCaptchaKey = APP_HCAPTCHA_SITEKEY;
export const appCommitHash = APP_COMMIT_HASH;
export const appVersion = APP_VERSION;
export const appPackageName = APP_PACKAGE_NAME;
export const appRepositoryUrl = APP_REPOSITORY_URL;
2 changes: 2 additions & 0 deletions src/declarations/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ interface ImportMetaEnv extends ImportMetaEnvAugmented {
// The custom environment variables that are passed through the vite
APP_COMMIT_HASH: string;
APP_VERSION: string;
APP_PACKAGE_NAME: string;
APP_REPOSITORY_URL: string;
}

interface ImportMeta {
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { compression } from 'vite-plugin-compression2';
import checker from 'vite-plugin-checker';
import { ValidateEnv as validateEnv } from '@julr/vite-plugin-validate-env';
import { VitePluginRadar } from 'vite-plugin-radar';
import pkg from './package.json';

import alertHubPackage from './package.json';
import envConfig from './env';
Expand All @@ -22,6 +23,8 @@ export default defineConfig(({ mode }) => {
define: {
'import.meta.APP_COMMIT_HASH': JSON.stringify(commitHash),
'import.meta.env.APP_VERSION': JSON.stringify(alertHubPackage.version),
'import.meta.env.APP_PACKAGE_NAME': JSON.stringify(env.npm_package_name),
'import.meta.env.APP_REPOSITORY_URL': JSON.stringify(pkg.repository.url.match(/https:\/\/github\.com\/[^ ]+/)?.[0].replace(/\.git$/, '')),
},
plugins: [
isProd ? checker({
Expand Down

0 comments on commit bc991f2

Please sign in to comment.