diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..ca259a7f7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Build +on: + push: + branches: + - master # or the name of your main branch +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + # If you wish to fail your job when the Quality Gate is red, uncomment the + # following lines. This would typically be used to fail a deployment. + # - uses: sonarsource/sonarqube-quality-gate-action@master + # timeout-minutes: 5 + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 000000000..3f98a4965 Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/README.md b/README.md index b28258a10..488f42791 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,17 @@ $3.50 of every sale goes to the [_cost-effective_](https://www.givewell.org/char ![video-hub-app](https://user-images.githubusercontent.com/17264277/82097107-3ed91700-96d0-11ea-8679-87fa3e07cd0b.jpg) +This should be the landing screen of the videohub. +Screen Shot 2022-09-11 at 5 25 41 PM + +### Mac OS +If you are having issues with the downloading process access issues. Follow these steps: +- Choose Apple menu > System Preferences, click Security & Privacy , then click General. +- Click on the Lock to change Security Settings. +- Allow system from opening Video-Hub-App + +Screen Shot 2022-09-11 at 5 28 51 PM + ## About @@ -40,6 +51,17 @@ See [issues](https://github.com/whyboris/Video-Hub-App/issues) for what is in pr ⚠ The repository is usually ahead of the publicly [released version](https://github.com/whyboris/Video-Hub-App/releases) - it is 🚧 WIP and may have bugs in it. +### Download Node: + +Skip this step if you have the latest Node downloaded. + +- Navigate and download Node for your correct Operating System: https://nodejs.org/en/download/ + +Check if you have Node downloaded by running this command +``` +npm --version +``` + How to start: - `npm install` to install diff --git a/i18n/README.md b/i18n/README.md index 401f3f117..5df42a695 100644 --- a/i18n/README.md +++ b/i18n/README.md @@ -2,10 +2,23 @@ Thank you for considering adding an additional translation to Video Hub App! +# Setup Translations take seconds using the _Google Translation API_ and the [translate-json-object](https://github.com/KhaledMohamedP/translate-json-object) library, but it does require a _Google Cloud API_ key (please use your own). +### How to get Google Could API Key +Navigate to the following [Wesbite](https://console.cloud.google.com/apis/credentials) + +Log into your Google account and navigate to the "create credentials" section. +Screen Shot 2022-09-11 at 4 47 28 PM + + Note : Do not embed API keys directly in code: API keys that are embedded in code can be accidentally exposed to the public, for example, if you forget to remove the keys from code that you share. Instead of embedding your API keys in your applications, store them in environment variables or in files outside of your application's source tree. + +Add those changes to your local repository! + Simply `cd i18n`, edit the `translate.js` file there to include your key and the target language abbreviation (e.g. `en`), and run (`node translate.js`). +Screen Shot 2022-09-11 at 4 49 54 PM + For abbreviations please choose a 2-letter abbreviation that is on both lists: - https://github.com/electron/electron/blob/master/docs/api/locales.md - https://cloud.google.com/translate/docs/languages diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..e04ad0d47 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=VIdeo-hub-app