diff --git a/netlify.toml b/netlify.toml index aca7f08..fc1ad3f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,4 +1,4 @@ [build] base = "website" - command = "export REACT_APP_BUILD_NO=`git rev-parse --short HEAD` && npm run test && npm run build" + command = "export VITE_BUILD_NO=`git rev-parse --short HEAD` && npm run test && npm run build" publish = "dist" diff --git a/website/src/screens/About.tsx b/website/src/screens/About.tsx index 2a5c0fe..81d4c69 100644 --- a/website/src/screens/About.tsx +++ b/website/src/screens/About.tsx @@ -12,142 +12,150 @@ import { State } from "../types/dictionary-types"; import { Link } from "react-router-dom"; import VideoPlayer from "../components/VideoPlayer"; -const About = ({ state }: { state: State }) => ( -
- - - - About - LingDocs Pashto Dictionary - -

About

-

- The LingDocs Pashto Dictionary aims to make an easily - searchable and accessible dictionary of the Pashto Language, along with - its inflections and verb conjugations. -

-

Features

- -

Video Introduction

- -

Installing

-

- After visiting this dictionary for the first time it will be accessible - from your browser even without an internet connection. You can also - {` `} - install it as an app on your phone or desktop by choosing - "Add to Home Screen" on "Install" on your browser menu. It is also - {` `} - - find and install it on the Google Play Store - - . -

-

Phonetic System

-

- This dictionary (and the{" "} - grammar that goes along with - it) uses a{" "} - - special phonetic system - {" "} - for writing the Pashto words in Latin letters, showing the pronunciation - the vowels. This has been designed to allow people to write and search - words without needing to type an special characters. -

-

Inspiration and Sources

-

- This dictionary is grateful for and indebted to the excellent work - available at qamosona.com,{" "} - wiktionary.org, and{" "} - Google Translate. These - sources were used extensively as a reference for definitions. -

-

- Currently this dictionary contains{" "} - {state.dictionaryInfo - ? state.dictionaryInfo.numberOfEntries - : "about 15,000"}{" "} - entries. It is nowhere near as comprehensive or accurate as some of these - other sources, but it does strive to present something uniquely accesible - to learners through offline web-app availability, - inflection/conjugation/phrase-building engine, and smart searching - algorithms. -

-

Contact

-

Feedback and suggestions are appreciated.

- -

- Or show your support through{" "} - buymeacoffee -

-

License and Legal Info

-

Source Code

-

- This dictionary app is open sounce. The code is available{" "} - here on GitHub{" "} - and is licensed under a GPLv3 License. -

-

Dictionary Content

-

- The contents of this dictionary are licensed under a{" "} - - Creative Commons Creative Commons Attribution-NonCommercial-ShareAlike - 4.0 International License - - , with the added stipulation that this material cannot be used or - re-distributed by any people or groups involved with military, violence, - or government intelligence work. -

-

- The LingDocs Pashto Dictionary assumes no responsibility or liability for - any errors or omissions in the content of this site. The information - contained in this site is provided on an “as is” basis with no guarantees - of completeness, accuracy, usefulness or timeliness. -

-

- Privacy Policy -

-

- © Copyright 2023 - lingdocs.com -

- {state.dictionaryInfo && ( -

- Number of Entries: {state.dictionaryInfo.numberOfEntries} - Updated:{" "} - {dayjs(state.dictionaryInfo.release).toString()} + .

- )} - {import.meta.env.REACT_APP_BUILD_NO && ( -

- App build number: {import.meta.env.REACT_APP_BUILD_NO} +

Phonetic System

+

+ This dictionary (and the{" "} + grammar that goes along with + it) uses a{" "} + + special phonetic system + {" "} + for writing the Pashto words in Latin letters, showing the pronunciation + the vowels. This has been designed to allow people to write and search + words without needing to type an special characters.

- )} -
-); +

Inspiration and Sources

+

+ This dictionary is grateful for and indebted to the excellent work + available at qamosona.com,{" "} + wiktionary.org, and{" "} + Google Translate. These + sources were used extensively as a reference for definitions. +

+

+ Currently this dictionary contains{" "} + {state.dictionaryInfo + ? state.dictionaryInfo.numberOfEntries + : "about 15,000"}{" "} + entries. It is nowhere near as comprehensive or accurate as some of + these other sources, but it does strive to present something uniquely + accesible to learners through offline web-app availability, + inflection/conjugation/phrase-building engine, and smart searching + algorithms. +

+

Contact

+

Feedback and suggestions are appreciated.

+ +

+ Or show your support through{" "} + buymeacoffee +

+

License and Legal Info

+

Source Code

+

+ This dictionary app is open sounce. The code is available{" "} + + here on GitHub + {" "} + and is licensed under a GPLv3 License. +

+

Dictionary Content

+

+ The contents of this dictionary are licensed under a{" "} + + Creative Commons Creative Commons Attribution-NonCommercial-ShareAlike + 4.0 International License + + , with the added stipulation that this material cannot be used or + re-distributed by any people or groups involved with military, violence, + or government intelligence work. +

+

+ The LingDocs Pashto Dictionary assumes no responsibility or liability + for any errors or omissions in the content of this site. The information + contained in this site is provided on an “as is” basis with no + guarantees of completeness, accuracy, usefulness or timeliness. +

+

+ Privacy Policy +

+

+ © Copyright 2023 - lingdocs.com +

+ {state.dictionaryInfo && ( +

+ Number of Entries: {state.dictionaryInfo.numberOfEntries} - Updated:{" "} + {dayjs(state.dictionaryInfo.release).toString()} +

+ )} + {import.meta.env.VITE_BUILD_NO && ( +

+ App build number: {import.meta.env.VITE_BUILD_NO} +

+ )} + + ); +}; export default About; diff --git a/website/src/vite-env.d.ts b/website/src/vite-env.d.ts index 45c7e8e..594a00f 100644 --- a/website/src/vite-env.d.ts +++ b/website/src/vite-env.d.ts @@ -2,7 +2,7 @@ /// interface ImportMetaEnv { - readonly REACT_APP_BUILD_NO: string; + readonly VITE_BUILD_NO: string; } interface ImportMeta {