-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from Fekide/109-update-translations
feat(admin): add batch updating
- Loading branch information
Showing
69 changed files
with
2,487 additions
and
887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
on: | ||
workflow_call: | ||
jobs: | ||
diff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run diff script | ||
run: sh ./scripts/diff.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
on: | ||
workflow_call: | ||
jobs: | ||
e2e: | ||
strategy: | ||
matrix: | ||
node: [14, 16, 18] | ||
strapi: [4.6, 4.7, 4.8, 4.9] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'yarn' | ||
- run: VERSION=${{ matrix.strapi }} envsubst < playground/templates/template.package.json > playground/package.json | ||
- run: yarn | ||
- run: yarn workspace playground build | ||
- run: yarn workspace playground e2e | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: cypress results (node=${{ matrix.node }},strapi=${{ matrix.strapi }}) | ||
path: | | ||
playground/cypress/videos/* | ||
playground/cypress/screenshots/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
on: | ||
workflow_call: | ||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install modules | ||
run: yarn | ||
- name: Run ESLint | ||
run: yarn lint | ||
|
||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,11 @@ | ||
name: Pull Request | ||
on: pull_request | ||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install modules | ||
run: yarn | ||
- name: Run ESLint | ||
run: yarn lint | ||
|
||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v5 | ||
|
||
lint: | ||
uses: ./.github/workflows/lint.yml | ||
diff: | ||
uses: ./.github/workflows/diff.yml | ||
unittest: | ||
strategy: | ||
matrix: | ||
version: [14, 16, 18] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.version }} | ||
cache: 'yarn' | ||
- run: yarn | ||
- run: yarn test | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./plugin/coverage/clover.xml,./providers/deepl/coverage/clover.xml | ||
flags: unittests | ||
name: codecov-umbrella | ||
uses: ./.github/workflows/unittest.yml | ||
e2e: | ||
uses: ./.github/workflows/e2e.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
on: | ||
workflow_call: | ||
jobs: | ||
unittest: | ||
strategy: | ||
matrix: | ||
version: [14, 16, 18] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.version }} | ||
cache: 'yarn' | ||
- run: yarn | ||
- run: yarn test | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./plugin/coverage/clover.xml,./providers/deepl/coverage/clover.xml,./providers/libretranslate/coverage/clover.xml | ||
flags: unittests | ||
name: codecov-umbrella |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,3 +132,7 @@ dist | |
.vscode | ||
|
||
build/ | ||
|
||
|
||
**/cypress/videos | ||
**/cypress/screenshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,10 @@ API_TOKEN_SALT=tobemodified | |
ADMIN_JWT_SECRET=tobemodified | ||
JWT_SECRET=tobemodified | ||
DEEPL_API_KEY=tobemodified | ||
INIT_ADMIN=true | ||
INIT_ADMIN_USERNAME=admin | ||
INIT_ADMIN_PASSWORD=admin | ||
INIT_ADMIN_FIRSTNAME=Admin | ||
INIT_ADMIN_LASTNAME=Admin | ||
INIT_ADMIN_EMAIL=[email protected] | ||
#DEEPL_API_URL=optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
HOST=0.0.0.0 | ||
PORT=1337 | ||
APP_KEYS="toBeModified1,toBeModified2" | ||
API_TOKEN_SALT=tobemodified | ||
ADMIN_JWT_SECRET=tobemodified | ||
JWT_SECRET=tobemodified | ||
TRANSLATE_PROVIDER=dummy | ||
INIT_ADMIN=true | ||
INIT_ADMIN_USERNAME=admin | ||
INIT_ADMIN_PASSWORD=admin | ||
INIT_ADMIN_FIRSTNAME=Admin | ||
INIT_ADMIN_LASTNAME=Admin | ||
INIT_ADMIN_EMAIL=[email protected] | ||
#DEEPL_API_URL=optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const { defineConfig } = require('cypress') | ||
|
||
const dotenv = require('dotenv') | ||
|
||
dotenv.config({ path: process.env.ENV_PATH }) | ||
|
||
module.exports = defineConfig({ | ||
e2e: { | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
baseUrl: `http://${process.env.HOST}:${process.env.PORT}`, | ||
}, | ||
env: { | ||
ADMIN_MAIL: process.env.INIT_ADMIN_EMAIL, | ||
ADMIN_PASSWORD: process.env.INIT_ADMIN_PASSWORD, | ||
}, | ||
}) |
Oops, something went wrong.