Rename portal-ui to web-app (#3178)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
@@ -3,5 +3,5 @@ dist/
|
|||||||
target/
|
target/
|
||||||
console
|
console
|
||||||
!console/
|
!console/
|
||||||
portal-ui/node_modules/
|
web-app/node_modules/
|
||||||
.git/
|
.git/
|
||||||
|
|||||||
58
.github/workflows/jobs.yaml
vendored
@@ -58,7 +58,7 @@ jobs:
|
|||||||
# https://github.com/actions/checkout/issues/334
|
# https://github.com/actions/checkout/issues/334
|
||||||
sudo apt install -y python3-pip || apt install -y python3-pip
|
sudo apt install -y python3-pip || apt install -y python3-pip
|
||||||
pip3 install semgrep
|
pip3 install semgrep
|
||||||
semgrep --config semgrep.yaml $(pwd)/portal-ui --error
|
semgrep --config semgrep.yaml $(pwd)/web-app --error
|
||||||
|
|
||||||
ui-assets:
|
ui-assets:
|
||||||
name: "React Code Has No Warnings & Prettified"
|
name: "React Code Has No Warnings & Prettified"
|
||||||
@@ -77,31 +77,31 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ env.NVMRC }}
|
node-version: ${{ env.NVMRC }}
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
cache-dependency-path: portal-ui/yarn.lock
|
cache-dependency-path: web-app/yarn.lock
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
id: assets-cache
|
id: assets-cache
|
||||||
name: Assets Cache
|
name: Assets Cache
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./portal-ui/build/
|
./web-app/build/
|
||||||
key: ${{ runner.os }}-assets-${{ github.run_id }}
|
key: ${{ runner.os }}-assets-${{ github.run_id }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
yarn install --frozen-lockfile --immutable
|
yarn install --frozen-lockfile --immutable
|
||||||
- name: Check for Warnings in build output
|
- name: Check for Warnings in build output
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
./check-warnings.sh
|
./check-warnings.sh
|
||||||
- name: Check if Files are Prettified
|
- name: Check if Files are Prettified
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
./check-prettier.sh
|
./check-prettier.sh
|
||||||
- name: Check for dead code
|
- name: Check for dead code
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
./check-deadcode.sh
|
./check-deadcode.sh
|
||||||
@@ -191,7 +191,7 @@ jobs:
|
|||||||
name: Assets Cache
|
name: Assets Cache
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./portal-ui/build/
|
./web-app/build/
|
||||||
key: ${{ runner.os }}-assets-${{ github.run_id }}
|
key: ${{ runner.os }}-assets-${{ github.run_id }}
|
||||||
- name: Build on ${{ matrix.os }}
|
- name: Build on ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
@@ -242,7 +242,7 @@ jobs:
|
|||||||
run: npm install testcafe@3.0.0
|
run: npm install testcafe@3.0.0
|
||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/subpath-nginx/ -q --skip-js-errors -c 3
|
run: npx testcafe "chrome:headless" web-app/tests/subpath-nginx/ -q --skip-js-errors -c 3
|
||||||
|
|
||||||
- name: Clean up docker
|
- name: Clean up docker
|
||||||
if: always()
|
if: always()
|
||||||
@@ -291,7 +291,7 @@ jobs:
|
|||||||
run: npm install testcafe@3.0.0
|
run: npm install testcafe@3.0.0
|
||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-1/ -q --skip-js-errors -c 3
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-1/ -q --skip-js-errors -c 3
|
||||||
|
|
||||||
- name: Clean up users & policies
|
- name: Clean up users & policies
|
||||||
run: |
|
run: |
|
||||||
@@ -338,7 +338,7 @@ jobs:
|
|||||||
run: npm install testcafe@3.0.0
|
run: npm install testcafe@3.0.0
|
||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-2/ -q --skip-js-errors -c 3
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-2/ -q --skip-js-errors -c 3
|
||||||
|
|
||||||
- name: Clean up users & policies
|
- name: Clean up users & policies
|
||||||
run: |
|
run: |
|
||||||
@@ -385,7 +385,7 @@ jobs:
|
|||||||
run: npm install testcafe@3.0.0
|
run: npm install testcafe@3.0.0
|
||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-3/ -q --skip-js-errors -c 3
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-3/ -q --skip-js-errors -c 3
|
||||||
|
|
||||||
- name: Clean up users & policies
|
- name: Clean up users & policies
|
||||||
run: |
|
run: |
|
||||||
@@ -433,7 +433,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-4/ --skip-js-errors
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-4/ --skip-js-errors
|
||||||
|
|
||||||
all-permissions-5:
|
all-permissions-5:
|
||||||
name: Permissions Tests Part 5
|
name: Permissions Tests Part 5
|
||||||
@@ -476,7 +476,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-5/ --skip-js-errors
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-5/ --skip-js-errors
|
||||||
|
|
||||||
all-permissions-6:
|
all-permissions-6:
|
||||||
name: Permissions Tests Part 6
|
name: Permissions Tests Part 6
|
||||||
@@ -519,7 +519,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-6/ --skip-js-errors
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-6/ --skip-js-errors
|
||||||
|
|
||||||
all-permissions-7:
|
all-permissions-7:
|
||||||
name: Permissions Tests Part 7
|
name: Permissions Tests Part 7
|
||||||
@@ -561,7 +561,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-7/ --skip-js-errors
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-7/ --skip-js-errors
|
||||||
|
|
||||||
all-permissions-8:
|
all-permissions-8:
|
||||||
name: Permissions Tests Part 8
|
name: Permissions Tests Part 8
|
||||||
@@ -604,7 +604,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-8/ --skip-js-errors
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-8/ --skip-js-errors
|
||||||
|
|
||||||
all-permissions-9:
|
all-permissions-9:
|
||||||
name: Permissions Tests Part 9
|
name: Permissions Tests Part 9
|
||||||
@@ -646,7 +646,7 @@ jobs:
|
|||||||
run: npm install testcafe@3.0.0
|
run: npm install testcafe@3.0.0
|
||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-9/ --skip-js-errors -c 3
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-9/ --skip-js-errors -c 3
|
||||||
|
|
||||||
- name: Clean up users & policies
|
- name: Clean up users & policies
|
||||||
run: |
|
run: |
|
||||||
@@ -692,7 +692,7 @@ jobs:
|
|||||||
run: npm install testcafe@3.0.0
|
run: npm install testcafe@3.0.0
|
||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-A/ --skip-js-errors -c 3
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-A/ --skip-js-errors -c 3
|
||||||
|
|
||||||
- name: Clean up users & policies
|
- name: Clean up users & policies
|
||||||
run: |
|
run: |
|
||||||
@@ -738,7 +738,7 @@ jobs:
|
|||||||
run: npm install testcafe@3.0.0
|
run: npm install testcafe@3.0.0
|
||||||
|
|
||||||
- name: Run TestCafe Tests
|
- name: Run TestCafe Tests
|
||||||
run: npx testcafe "chrome:headless" portal-ui/tests/permissions-B/ --skip-js-errors -c 3
|
run: npx testcafe "chrome:headless" web-app/tests/permissions-B/ --skip-js-errors -c 3
|
||||||
|
|
||||||
- name: Clean up users & policies
|
- name: Clean up users & policies
|
||||||
run: |
|
run: |
|
||||||
@@ -902,10 +902,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install modules
|
- name: Install modules
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
run: yarn test
|
run: yarn test
|
||||||
replication:
|
replication:
|
||||||
name: Site Replication Test
|
name: Site Replication Test
|
||||||
@@ -1223,21 +1223,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ env.NVMRC }}
|
node-version: ${{ env.NVMRC }}
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
cache-dependency-path: portal-ui/yarn.lock
|
cache-dependency-path: web-app/yarn.lock
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
id: assets-cache-istanbul-coverage
|
id: assets-cache-istanbul-coverage
|
||||||
name: Assets Cache Istanbul Coverage
|
name: Assets Cache Istanbul Coverage
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./portal-ui/build/
|
./web-app/build/
|
||||||
key: ${{ runner.os }}-assets-istanbul-coverage-${{ github.run_id }}
|
key: ${{ runner.os }}-assets-istanbul-coverage-${{ github.run_id }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
yarn install --frozen-lockfile --immutable
|
yarn install --frozen-lockfile --immutable
|
||||||
- name: Check for Warnings in build output
|
- name: Check for Warnings in build output
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
./check-warnings-istanbul-coverage.sh
|
./check-warnings-istanbul-coverage.sh
|
||||||
@@ -1275,7 +1275,7 @@ jobs:
|
|||||||
name: Assets Cache Istanbul Coverage
|
name: Assets Cache Istanbul Coverage
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
./portal-ui/build/
|
./web-app/build/
|
||||||
key: ${{ runner.os }}-assets-istanbul-coverage-${{ github.run_id }}
|
key: ${{ runner.os }}-assets-istanbul-coverage-${{ github.run_id }}
|
||||||
- name: Build on ${{ matrix.os }}
|
- name: Build on ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
@@ -1298,7 +1298,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
echo "Install dependencies"
|
echo "Install dependencies"
|
||||||
cd $GITHUB_WORKSPACE/portal-ui
|
cd $GITHUB_WORKSPACE/web-app
|
||||||
yarn add -D playwright
|
yarn add -D playwright
|
||||||
yarn add -D babel-plugin-istanbul
|
yarn add -D babel-plugin-istanbul
|
||||||
yarn add -D nyc
|
yarn add -D nyc
|
||||||
@@ -1326,7 +1326,7 @@ jobs:
|
|||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: |
|
run: |
|
||||||
echo "Run tests under playwright folder only"
|
echo "Run tests under playwright folder only"
|
||||||
cd $GITHUB_WORKSPACE/portal-ui
|
cd $GITHUB_WORKSPACE/web-app
|
||||||
yarn remove playwright
|
yarn remove playwright
|
||||||
yarn add --dev @playwright/test
|
yarn add --dev @playwright/test
|
||||||
echo "npx playwright test"
|
echo "npx playwright test"
|
||||||
|
|||||||
4
.github/workflows/vulncheck.yaml
vendored
@@ -45,9 +45,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ env.NVMRC }}
|
node-version: ${{ env.NVMRC }}
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
cache-dependency-path: portal-ui/yarn.lock
|
cache-dependency-path: web-app/yarn.lock
|
||||||
- name: Checks for known security issues with the installed packages
|
- name: Checks for known security issues with the installed packages
|
||||||
working-directory: ./portal-ui
|
working-directory: ./web-app
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
run: |
|
run: |
|
||||||
yarn audit --groups dependencies
|
yarn audit --groups dependencies
|
||||||
|
|||||||
10
.gitignore
vendored
@@ -1,12 +1,12 @@
|
|||||||
# Playwright Data
|
# Playwright Data
|
||||||
portal-ui/storage/
|
web-app/storage/
|
||||||
portal-ui/playwright/.auth/admin.json
|
web-app/playwright/.auth/admin.json
|
||||||
|
|
||||||
# Report from Playwright
|
# Report from Playwright
|
||||||
portal-ui/playwright-report/
|
web-app/playwright-report/
|
||||||
|
|
||||||
# Coverage from Playwright
|
# Coverage from Playwright
|
||||||
portal-ui/.nyc_output/
|
web-app/.nyc_output/
|
||||||
|
|
||||||
# Binaries for programs and plugins
|
# Binaries for programs and plugins
|
||||||
*.exe
|
*.exe
|
||||||
@@ -37,7 +37,7 @@ dist/
|
|||||||
|
|
||||||
# Ignore node_modules
|
# Ignore node_modules
|
||||||
|
|
||||||
portal-ui/node_modules/
|
web-app/node_modules/
|
||||||
|
|
||||||
# Ignore tls cert and key
|
# Ignore tls cert and key
|
||||||
private.key
|
private.key
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
# Common large paths
|
# Common large paths
|
||||||
node_modules/
|
node_modules/
|
||||||
portal-ui/node_modules/
|
web-app/node_modules/
|
||||||
build/
|
build/
|
||||||
dist/
|
dist/
|
||||||
.idea/
|
.idea/
|
||||||
|
|||||||
@@ -1,15 +1,20 @@
|
|||||||
# Developing MinIO Console
|
# Developing MinIO Console
|
||||||
|
|
||||||
The MinIO Console requires the [MinIO Server](https://github.com/minio/minio). For development purposes, you also need to run both the MinIO Console web app and the MinIO Console server.
|
The MinIO Console requires the [MinIO Server](https://github.com/minio/minio). For development purposes, you also need
|
||||||
|
to run both the MinIO Console web app and the MinIO Console server.
|
||||||
|
|
||||||
## Running MinIO Console server
|
## Running MinIO Console server
|
||||||
|
|
||||||
Build the server in the main folder by running:
|
Build the server in the main folder by running:
|
||||||
|
|
||||||
```
|
```
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
> Note: If it's the first time running the server, you might need to run `go mod tidy` to ensure you have all modules required.
|
|
||||||
To start the server run:
|
> Note: If it's the first time running the server, you might need to run `go mod tidy` to ensure you have all modules
|
||||||
|
> required.
|
||||||
|
> To start the server run:
|
||||||
|
|
||||||
```
|
```
|
||||||
CONSOLE_ACCESS_KEY=<your-access-key>
|
CONSOLE_ACCESS_KEY=<your-access-key>
|
||||||
CONSOLE_SECRET_KEY=<your-secret-key>
|
CONSOLE_SECRET_KEY=<your-secret-key>
|
||||||
@@ -19,8 +24,8 @@ CONSOLE_DEV_MODE=on
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Running MinIO Console web app
|
## Running MinIO Console web app
|
||||||
Refer to `/portal-ui` [instructions](/portal-ui/README.md) to run the web app locally.
|
|
||||||
|
|
||||||
|
Refer to `/web-app` [instructions](/web-app/README.md) to run the web app locally.
|
||||||
|
|
||||||
# Building with MinIO
|
# Building with MinIO
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ FROM node:$NODE_VERSION as uilayer
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./portal-ui/package.json ./
|
COPY ./web-app/package.json ./
|
||||||
COPY ./portal-ui/yarn.lock ./
|
COPY ./web-app/yarn.lock ./
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
COPY ./portal-ui .
|
COPY ./web-app .
|
||||||
|
|
||||||
RUN make build-static
|
RUN make build-static
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ WORKDIR /go/src/github.com/minio/console/
|
|||||||
|
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
COPY --from=uilayer /app/build /go/src/github.com/minio/console/portal-ui/build
|
COPY --from=uilayer /app/build /go/src/github.com/minio/console/web-app/build
|
||||||
RUN go build --tags=kqueue,operator -ldflags "-w -s" -a -o console ./cmd/console
|
RUN go build --tags=kqueue,operator -ldflags "-w -s" -a -o console ./cmd/console
|
||||||
|
|
||||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7
|
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ FROM node:$NODE_VERSION as uilayer
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./portal-ui/package.json ./
|
COPY ./web-app/package.json ./
|
||||||
COPY ./portal-ui/yarn.lock ./
|
COPY ./web-app/yarn.lock ./
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
COPY ./portal-ui .
|
COPY ./web-app .
|
||||||
|
|
||||||
RUN yarn install && make build-static
|
RUN yarn install && make build-static
|
||||||
|
|
||||||
|
|||||||
26
Makefile
@@ -54,13 +54,13 @@ swagger-console:
|
|||||||
@echo "Generating swagger server code from yaml"
|
@echo "Generating swagger server code from yaml"
|
||||||
@swagger generate server -A console --main-package=management --server-package=api --exclude-main -P models.Principal -f ./swagger.yml -r NOTICE
|
@swagger generate server -A console --main-package=management --server-package=api --exclude-main -P models.Principal -f ./swagger.yml -r NOTICE
|
||||||
@echo "Generating typescript api"
|
@echo "Generating typescript api"
|
||||||
@npx swagger-typescript-api -p ./swagger.yml -o ./portal-ui/src/api -n consoleApi.ts
|
@npx swagger-typescript-api -p ./swagger.yml -o ./web-app/src/api -n consoleApi.ts
|
||||||
@git restore api/server.go
|
@git restore api/server.go
|
||||||
|
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
@(if [ -f "${NVM_DIR}/nvm.sh" ]; then \. "${NVM_DIR}/nvm.sh" && nvm install && nvm use && npm install -g yarn ; fi &&\
|
@(if [ -f "${NVM_DIR}/nvm.sh" ]; then \. "${NVM_DIR}/nvm.sh" && nvm install && nvm use && npm install -g yarn ; fi &&\
|
||||||
cd portal-ui; yarn install --prefer-offline; make build-static; yarn prettier --write . --loglevel warn; cd ..)
|
cd web-app; yarn install --prefer-offline; make build-static; yarn prettier --write . --loglevel warn; cd ..)
|
||||||
|
|
||||||
test-integration:
|
test-integration:
|
||||||
@(docker stop pgsqlcontainer || true)
|
@(docker stop pgsqlcontainer || true)
|
||||||
@@ -184,41 +184,41 @@ test-sso-integration:
|
|||||||
|
|
||||||
test-permissions-1:
|
test-permissions-1:
|
||||||
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/permissions.sh "portal-ui/tests/permissions-1/")
|
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-1/")
|
||||||
@(docker stop minio)
|
@(docker stop minio)
|
||||||
|
|
||||||
test-permissions-2:
|
test-permissions-2:
|
||||||
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/permissions.sh "portal-ui/tests/permissions-2/")
|
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-2/")
|
||||||
@(docker stop minio)
|
@(docker stop minio)
|
||||||
|
|
||||||
test-permissions-3:
|
test-permissions-3:
|
||||||
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/permissions.sh "portal-ui/tests/permissions-3/")
|
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-3/")
|
||||||
@(docker stop minio)
|
@(docker stop minio)
|
||||||
|
|
||||||
test-permissions-4:
|
test-permissions-4:
|
||||||
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/permissions.sh "portal-ui/tests/permissions-4/")
|
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-4/")
|
||||||
@(docker stop minio)
|
@(docker stop minio)
|
||||||
|
|
||||||
test-permissions-5:
|
test-permissions-5:
|
||||||
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/permissions.sh "portal-ui/tests/permissions-5/")
|
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-5/")
|
||||||
@(docker stop minio)
|
@(docker stop minio)
|
||||||
|
|
||||||
test-permissions-6:
|
test-permissions-6:
|
||||||
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/permissions.sh "portal-ui/tests/permissions-6/")
|
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-6/")
|
||||||
@(docker stop minio)
|
@(docker stop minio)
|
||||||
|
|
||||||
test-permissions-7:
|
test-permissions-7:
|
||||||
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/permissions.sh "portal-ui/tests/permissions-7/")
|
@(env bash $(PWD)/web-app/tests/scripts/permissions.sh "web-app/tests/permissions-7/")
|
||||||
@(docker stop minio)
|
@(docker stop minio)
|
||||||
|
|
||||||
test-apply-permissions:
|
test-apply-permissions:
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/initialize-env.sh)
|
@(env bash $(PWD)/web-app/tests/scripts/initialize-env.sh)
|
||||||
|
|
||||||
test-start-docker-minio:
|
test-start-docker-minio:
|
||||||
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
@(docker run -v /data1 -v /data2 -v /data3 -v /data4 -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4})
|
||||||
@@ -227,7 +227,7 @@ initialize-permissions: test-start-docker-minio test-apply-permissions
|
|||||||
@echo "Done initializing permissions test"
|
@echo "Done initializing permissions test"
|
||||||
|
|
||||||
cleanup-permissions:
|
cleanup-permissions:
|
||||||
@(env bash $(PWD)/portal-ui/tests/scripts/cleanup-env.sh)
|
@(env bash $(PWD)/web-app/tests/scripts/cleanup-env.sh)
|
||||||
@(docker stop minio)
|
@(docker stop minio)
|
||||||
|
|
||||||
initialize-docker-network:
|
initialize-docker-network:
|
||||||
@@ -246,7 +246,7 @@ test-start-docker-nginx-w-subpath:
|
|||||||
--network host \
|
--network host \
|
||||||
-d --rm \
|
-d --rm \
|
||||||
--add-host=host.docker.internal:host-gateway \
|
--add-host=host.docker.internal:host-gateway \
|
||||||
-v ./portal-ui/tests/subpath-nginx/nginx.conf:/etc/nginx/nginx.conf \
|
-v ./web-app/tests/subpath-nginx/nginx.conf:/etc/nginx/nginx.conf \
|
||||||
--name test-nginx nginx)
|
--name test-nginx nginx)
|
||||||
|
|
||||||
test-initialize-minio-nginx: test-start-docker-minio-w-redirect-url test-start-docker-nginx-w-subpath
|
test-initialize-minio-nginx: test-start-docker-minio-w-redirect-url test-start-docker-nginx-w-subpath
|
||||||
@@ -285,4 +285,4 @@ release: swagger-gen
|
|||||||
@echo "Generating Release: $(RELEASE)"
|
@echo "Generating Release: $(RELEASE)"
|
||||||
@make assets
|
@make assets
|
||||||
@git add -u .
|
@git add -u .
|
||||||
@git add portal-ui/build/
|
@git add web-app/build/
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ import (
|
|||||||
|
|
||||||
"github.com/klauspost/compress/gzhttp"
|
"github.com/klauspost/compress/gzhttp"
|
||||||
|
|
||||||
portal_ui "github.com/minio/console/portal-ui"
|
portal_ui "github.com/minio/console/web-app"
|
||||||
"github.com/minio/pkg/v2/env"
|
"github.com/minio/pkg/v2/env"
|
||||||
"github.com/minio/pkg/v2/mimedb"
|
"github.com/minio/pkg/v2/mimedb"
|
||||||
xnet "github.com/minio/pkg/v2/net"
|
xnet "github.com/minio/pkg/v2/net"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Requirements: `yarn` and [node](https://nodejs.org/en/download)
|
|||||||
|
|
||||||
## Available Scripts
|
## Available Scripts
|
||||||
|
|
||||||
In the `/portal-ui` directory, you can run:
|
In the `/web-app` directory, you can run:
|
||||||
|
|
||||||
### `yarn start`
|
### `yarn start`
|
||||||
|
|
||||||
@@ -19,7 +19,8 @@ You will also see any lint errors in the console.
|
|||||||
### `yarn test`
|
### `yarn test`
|
||||||
|
|
||||||
Launches the test runner in the interactive watch mode.<br />
|
Launches the test runner in the interactive watch mode.<br />
|
||||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more
|
||||||
|
information.
|
||||||
|
|
||||||
### `yarn build`
|
### `yarn build`
|
||||||
|
|
||||||
@@ -35,14 +36,20 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d
|
|||||||
|
|
||||||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
||||||
|
|
||||||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will
|
||||||
|
remove the single build dependency from your project.
|
||||||
|
|
||||||
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right
|
||||||
|
into your project so you have full control over them. All of the commands except `eject` will still work, but they will
|
||||||
|
point to the copied scripts so you can tweak them. At this point you’re on your own.
|
||||||
|
|
||||||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you
|
||||||
|
shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t
|
||||||
|
customize it when you are ready for it.
|
||||||
|
|
||||||
## Learn More
|
## Learn More
|
||||||
|
|
||||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
You can learn more in
|
||||||
|
the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
||||||
|
|
||||||
To learn React, check out the [React documentation](https://reactjs.org/).
|
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 768 B After Width: | Height: | Size: 768 B |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 494 B After Width: | Height: | Size: 494 B |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1012 B After Width: | Height: | Size: 1012 B |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 825 KiB After Width: | Height: | Size: 825 KiB |
|
Before Width: | Height: | Size: 648 KiB After Width: | Height: | Size: 648 KiB |
|
Before Width: | Height: | Size: 586 B After Width: | Height: | Size: 586 B |
|
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 279 B |
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
|
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 515 B |
|
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 593 B |
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 623 B |
|
Before Width: | Height: | Size: 886 B After Width: | Height: | Size: 886 B |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 303 B |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 990 B After Width: | Height: | Size: 990 B |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 888 B |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |