From 1347ccd9f860b1d5096ac394134c0bf421b109e5 Mon Sep 17 00:00:00 2001 From: Eduardo Peredo Rivero Date: Thu, 18 Jan 2024 12:17:21 -0500 Subject: [PATCH] update application name and typescript version --- index.html | 13 ++++++++++--- package.json | 14 +++++++------- public/manifest.json | 4 ++-- src/app-config.ts | 4 ++-- src/webapp/pages/app/App.tsx | 2 +- yarn.lock | 8 ++++---- 6 files changed, 26 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 492d83d..dc7c453 100644 --- a/index.html +++ b/index.html @@ -4,15 +4,22 @@ - + - + - Vite + React + TS + Data Quality diff --git a/package.json b/package.json index 0880e0e..39ea047 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "dhis2-app-skeleton", - "description": "DHIS2 Skeleton App", + "name": "data-quality", + "description": "Data Quality", "version": "0.0.1", "license": "GPL-3.0", "author": "EyeSeeTea team", "homepage": ".", "repository": { "type": "git", - "url": "git+https://github.com/eyeseetea/dhis2-app-skeleton.git" + "url": "git+https://github.com/EyeSeeTea/data-quality-dev" }, "dependencies": { "@dhis2/app-runtime": "2.8.0", @@ -72,7 +72,7 @@ "ts-node": "^10.9.1", "ts-prune": "^0.10.3", "typedoc": "0.25.7", - "typescript": "5.2.2", + "typescript": "5.3.3", "vite": "^4.2.0", "vite-bundle-visualizer": "^0.6.0", "vite-plugin-checker": "^0.6.2", @@ -102,14 +102,14 @@ "build": "VITE_DHIS2_BASE_URL='' VITE_DHIS2_AUTH='' yarn build-folder && rm -f $npm_package_name.zip && cd build && zip --quiet -r ../$npm_package_name.zip *", "prettify": "prettier \"./**/*.{js,jsx,json,css,ts,tsx}\" --write", "extract-pot": "yarn d2-i18n-extract -p src/ -o i18n/", - "localize": "yarn update-po && d2-i18n-generate -n dhis2-skeleton-app -p ./i18n/ -o ./src/locales/", + "localize": "yarn update-po && d2-i18n-generate -n data-quality -p ./i18n/ -o ./src/locales/", "update-po": "yarn extract-pot && find i18n/ -name '*.po' -exec msgmerge --backup=off -U {} i18n/en.pot \\;", "prepare": "husky install", "script-example": "npx ts-node src/scripts/example.ts" }, "manifest.webapp": { - "name": "DHIS2 Skeleton App", - "description": "DHIS2 Skeleton App", + "name": "Data Quality", + "description": "Data Quality", "icons": { "48": "icon.png" }, diff --git a/public/manifest.json b/public/manifest.json index e4bf3f0..3363958 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { - "short_name": "DHIS2 Skeleton App", - "name": "DHIS2 Skeleton App", + "short_name": "Data Quality", + "name": "Data Quality", "icons": [ { "src": "favicon.ico", diff --git a/src/app-config.ts b/src/app-config.ts index 2e08350..2612e22 100644 --- a/src/app-config.ts +++ b/src/app-config.ts @@ -1,7 +1,7 @@ import { FeedbackOptions } from "@eyeseetea/feedback-component"; export const appConfig: AppConfig = { - appKey: "dhis2-app-skeleton", + appKey: "data-quality", appearance: { showShareButton: true, }, @@ -9,7 +9,7 @@ export const appConfig: AppConfig = { repositories: { clickUp: { // https://app.clickup.com/${workspace}/v/b/N-${listId}-M - // Web development -> Common resources -> app-skeleton + // Web development -> Common resources -> data-quality listId: "42597084", title: "[User feedback] {title}", body: "## dhis2\n\nUsername: {username}\n\n{body}", diff --git a/src/webapp/pages/app/App.tsx b/src/webapp/pages/app/App.tsx index a61f17c..cc32d28 100644 --- a/src/webapp/pages/app/App.tsx +++ b/src/webapp/pages/app/App.tsx @@ -43,7 +43,7 @@ function App(props: AppProps) { - + {appConfig.feedback && appContext && (