Compare commits

..

17 Commits

Author SHA1 Message Date
Juan Picado
3bc24bc4a7 chore: update versions (next-7) (#4703)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-07 18:45:32 +02:00
dependabot[bot]
26eeb022bb chore(deps): bump actions/cache from 3.3.3 to 4.0.2 (#4704) 2024-07-07 17:26:03 +02:00
dependabot[bot]
4c41982d9c chore(deps): bump actions/checkout from 3.6.0 to 4.1.7 (#4705) 2024-07-07 17:25:53 +02:00
dependabot[bot]
88c2885cb6 chore(deps): bump actions/setup-node from 3.8.2 to 4.0.2 (#4706) 2024-07-07 17:25:45 +02:00
renovate[bot]
e0ffae411d chore(deps): pin dependencies (#4697) 2024-07-07 14:46:35 +02:00
renovate[bot]
693b57c949 chore(deps): update actions/upload-artifact digest to a8a3f3a (#4698) 2024-07-07 14:46:20 +02:00
Marc Bernard
10dd81f473 feat: complete overhaul of web user interface (#4687)
* fix: ui-component updates

* Update all

* Update tests

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Dark logo

* Add showUplinks parameter

* Fix DependencyBlock links

* Update

* Fix highlight dark

* Update

* Color

* Fix uncaught exception

* changeset

* Fix Install Settingsmenu, tsconfig

* Remove duplicate function (merge issue)

* Fix SideBar test and CodeQL issue
2024-07-07 14:12:24 +02:00
verdacciobot
2ee28c0988 chore: updated static data 2024-07-04 00:13:45 +00:00
verdacciobot
533abbd6e3 chore: updated static data 2024-07-01 00:15:22 +00:00
verdacciobot
33e25d2876 chore: updated static data 2024-06-27 00:13:32 +00:00
verdacciobot
7d4adac1fc chore: updated static data 2024-06-24 00:14:52 +00:00
verdacciobot
0f94336a9e chore: updated static data 2024-06-20 00:12:45 +00:00
verdacciobot
36feb886ee chore: updated static data 2024-06-17 00:14:12 +00:00
Juan Picado
e54fc76f8e chore: e2e plugin generator (#4686) 2024-06-16 18:36:20 +02:00
Juan Picado
8be0d4882e chore: disable unstable test generator 2024-06-16 12:42:13 +02:00
Juan Picado
0905d04801 Revert "migrate helm chart (#4685)"
This reverts commit e7517acff9.
2024-06-16 11:09:44 +02:00
Juan Picado
e7517acff9 migrate helm chart (#4685)
* migrate heml chart

* refactor

* Update helm-lint-test.yaml

* Update package.json

* Update Chart.yaml

* Update Chart.yaml

* rename

* Update helm-chart-lint-test.yaml
2024-06-16 10:40:37 +02:00
254 changed files with 3588 additions and 1794 deletions

View File

@@ -0,0 +1,10 @@
---
'@verdaccio/ui-components': minor
'@verdaccio/ui-theme': patch
'@verdaccio/types': patch
'@verdaccio/middleware': patch
'@verdaccio/config': patch
'@verdaccio/cli': patch
---
feat: complete overhaul of web user interface

View File

@@ -66,6 +66,7 @@
"breezy-mayflies-pull",
"chilled-carrots-guess",
"chilly-rivers-chew",
"dirty-dolphins-try",
"dry-shoes-report",
"eight-icons-heal",
"eight-squids-judge",

View File

@@ -20,7 +20,7 @@ jobs:
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
steps:
- name: checkout code repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
with:
fetch-depth: 0

View File

@@ -18,7 +18,7 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
@@ -32,7 +32,7 @@ jobs:
- name: Install
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -43,14 +43,14 @@ jobs:
name: Lint
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -67,14 +67,14 @@ jobs:
name: Format
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -96,14 +96,14 @@ jobs:
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -122,13 +122,13 @@ jobs:
runs-on: windows-latest
name: UI Test E2E
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}

View File

@@ -30,7 +30,7 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
@@ -46,7 +46,7 @@ jobs:
- name: Install
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -57,7 +57,7 @@ jobs:
name: Lint
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
@@ -66,7 +66,7 @@ jobs:
run: |
corepack enable
corepack install
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -82,7 +82,7 @@ jobs:
name: Format
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
@@ -91,7 +91,7 @@ jobs:
run: |
corepack enable
corepack install
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -112,7 +112,7 @@ jobs:
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
@@ -121,7 +121,7 @@ jobs:
run: |
corepack enable
corepack prepare
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -140,7 +140,7 @@ jobs:
name: synchronize translations
if: (github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version-file: '.nvmrc'
@@ -148,7 +148,7 @@ jobs:
run: |
corepack enable
corepack install
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}

View File

@@ -21,7 +21,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.

View File

@@ -16,7 +16,7 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build

View File

@@ -13,7 +13,7 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build

View File

@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'verdaccio/verdaccio'
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # tag=v1
- uses: docker/setup-buildx-action@v1
with:

View File

@@ -18,7 +18,7 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
@@ -34,7 +34,7 @@ jobs:
- name: Install
run: pnpm install --reporter=silence --ignore-scripts --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
@@ -44,7 +44,7 @@ jobs:
needs: [prepare]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node 16
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
@@ -53,7 +53,7 @@ jobs:
run: |
corepack enable
corepack prepare
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
@@ -65,7 +65,7 @@ jobs:
- name: build
run: pnpm build
- name: Cache packages
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
id: cache-packages
with:
path: ./packages/
@@ -97,7 +97,7 @@ jobs:
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version: ${{ matrix.node }}
@@ -105,7 +105,7 @@ jobs:
run: |
corepack enable
corepack prepare
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
@@ -114,7 +114,7 @@ jobs:
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ./packages/
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
@@ -141,7 +141,7 @@ jobs:
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version: ${{ matrix.node }}
@@ -149,7 +149,7 @@ jobs:
run: |
corepack enable
corepack prepare
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
@@ -158,7 +158,7 @@ jobs:
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --loglevel debug --ignore-scripts --registry http://localhost:4873
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ./packages/
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
@@ -186,7 +186,7 @@ jobs:
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version: ${{ matrix.node }}
@@ -194,7 +194,7 @@ jobs:
run: |
corepack enable
corepack prepare
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
@@ -203,7 +203,7 @@ jobs:
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ./packages/
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}

View File

@@ -18,7 +18,7 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
@@ -33,7 +33,7 @@ jobs:
run: pnpm build
- name: Test UI
run: pnpm test:e2e:ui
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v3
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with:
name: videos
path: /home/runner/work/verdaccio/verdaccio/e2e/ui/cypress/videos

View File

@@ -0,0 +1,47 @@
name: E2E Generator Verdaccio Plugin
on:
pull_request:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
e2e-plugin-generator:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18,20, 22]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
run: |
corepack enable
corepack install
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: install
run: pnpm install
- name: build
run: pnpm build
- name: install verdaccio
run: npm install -g verdaccio@5
- name: Start server
run: verdaccio -c e2e/docker/generator-e2e/generator.yaml &
- name: ping server
run: curl http://localhost:4873/-/ping
- name: login
run: npx npm-cli-login -u test -p test -e test@domain.test -r http://localhost:4873
- name: publish
run: pnpm local:publish
- name: install yeoman
run: npm install -g yo@4
- name: install generator
run: npm install -g generator-verdaccio-plugin --registry http://localhost:4873
# Future: add a test to verify the plugin is working with prompt

View File

@@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'verdaccio/verdaccio'
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
with:
persist-credentials: false
fetch-depth: 0

View File

@@ -23,7 +23,7 @@ jobs:
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Use Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
@@ -31,7 +31,7 @@ jobs:
node-version-file: '.nvmrc'
- name: Cache pnpm modules
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
env:
cache-name: cache-pnpm-modules
with:

View File

@@ -26,7 +26,7 @@ jobs:
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
- name: Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
@@ -43,7 +43,7 @@ jobs:
- name: Install
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -54,7 +54,7 @@ jobs:
- name: Build Translations percentage
run: pnpm --filter @verdaccio/crowdin-translations build
- name: Cache Docusaurus Build
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3
with:
path: website/node_modules/.cache/webpack
key: cache/webpack-${{github.ref}}-${{ hashFiles('**/pnpm-lock.yaml') }}

View File

@@ -5,16 +5,16 @@
"main": "./build/index.js",
"types": "./build/index.d.ts",
"devDependencies": {
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"debug": "4.3.4",
"fs-extra": "11.2.0",
"get-port": "5.1.1",
"got": "11.8.6",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"verdaccio": "workspace:7.0.0-next-7.17"
"verdaccio": "workspace:7.0.0-next-7.18"
},
"scripts": {
"test": "jest",

View File

@@ -0,0 +1,39 @@
storage: ./storage
web:
title: Verdaccio E2E Local
auth:
htpasswd:
file: ./htpasswd
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
'@verdaccio/*':
access: $all
publish: $all
unpublish: $all
'@*/*':
access: $all
publish: $authenticated
unpublish: $authenticated
proxy: npmjs
'verdaccio-*':
access: $all
publish: $all
unpublish: $all
'verdaccio':
access: $all
publish: $all
unpublish: $all
'**':
access: $all
publish: $authenticated
unpublish: $authenticated
proxy: npmjs
middlewares:
audit:
enabled: false
log: { type: stdout, format: json, level: http }

View File

@@ -3,9 +3,9 @@
"name": "@verdaccio/e2e-ui",
"version": "2.0.0",
"devDependencies": {
"verdaccio": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"verdaccio": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
"debug": "4.3.4",
"cypress": "^13.6.0",

View File

@@ -1,5 +1,18 @@
# @verdaccio/api
## 7.0.0-next-7.18
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/middleware@7.0.0-next-7.18
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/auth@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
- @verdaccio/store@7.0.0-next-7.18
- @verdaccio/utils@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/api",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,13 +38,13 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/auth": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/middleware": "workspace:7.0.0-next-7.17",
"@verdaccio/store": "workspace:7.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/auth": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/middleware": "workspace:7.0.0-next-7.18",
"@verdaccio/store": "workspace:7.0.0-next-7.18",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"abortcontroller-polyfill": "1.7.5",
"body-parser": "1.20.2",
"cookies": "0.9.0",
@@ -56,7 +56,7 @@
},
"devDependencies": {
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"mockdate": "3.0.5",
"nock": "13.5.1",
"supertest": "6.3.4"

View File

@@ -1,5 +1,18 @@
# @verdaccio/auth
## 7.0.0-next-7.18
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/loaders@7.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
- verdaccio-htpasswd@12.0.0-next-7.18
- @verdaccio/signature@7.0.0-next-7.5
- @verdaccio/utils@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/auth",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "logger",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -38,21 +38,21 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/loaders": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/loaders": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/signature": "workspace:7.0.0-next-7.5",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"debug": "4.3.4",
"lodash": "4.17.21",
"verdaccio-htpasswd": "workspace:12.0.0-next-7.17"
"verdaccio-htpasswd": "workspace:12.0.0-next-7.18"
},
"devDependencies": {
"express": "4.19.2",
"supertest": "6.3.4",
"@verdaccio/middleware": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4"
"@verdaccio/middleware": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5"
},
"funding": {
"type": "opencollective",

View File

@@ -1,5 +1,16 @@
# @verdaccio/cli
## 7.0.0-next-7.18
### Patch Changes
- 10dd81f: feat: complete overhaul of web user interface
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
- @verdaccio/node-api@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/cli",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"author": {
"name": "Juan Picado",
"email": "juanpicado19@gmail.com"
@@ -43,10 +43,10 @@
"start": "ts-node src/index.ts"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/node-api": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/node-api": "workspace:7.0.0-next-7.18",
"clipanion": "3.2.1",
"envinfo": "7.11.0",
"kleur": "4.1.5",

View File

@@ -1,5 +1,13 @@
# @verdaccio/config
## 7.0.0-next-7.18
### Patch Changes
- 10dd81f: feat: complete overhaul of web user interface
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/utils@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/config",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "logger",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,8 +38,8 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"debug": "4.3.4",
"js-yaml": "4.1.0",
"lodash": "4.17.21",

View File

@@ -18,6 +18,12 @@ storage: ./storage
# https://verdaccio.org/docs/webui
web:
title: Verdaccio
# custom colors for header background and font
# primaryColor: "#4b5e40"
# custom logos and favicon
# logo: ./path/to/logo.png
# logoDark: ./path/to/logoDark.png
# favicon: ./path/to/favicon.ico
# comment out to disable gravatar support
# gravatar: false
# by default packages are ordercer ascendant (asc|desc)
@@ -35,6 +41,7 @@ web:
# showSearch: true
# showRaw: true
# showDownloadTarball: true
# showUplinks: true
# HTML tags injected after manifest <scripts/>
# scriptsBodyAfter:
# - '<script type="text/javascript" src="https://my.company.com/customJS.min.js"></script>'

View File

@@ -21,6 +21,12 @@ plugins: /verdaccio/plugins
# https://verdaccio.org/docs/webui
web:
title: Verdaccio
# custom colors for header background and font
# primaryColor: "#4b5e40"
# custom logos and favicon
# logo: ./path/to/logo.png
# logoDark: ./path/to/logoDark.png
# favicon: ./path/to/favicon.ico
# Comment out to disable gravatar support
# gravatar: false
# By default packages are ordered ascendant (asc|desc)
@@ -38,6 +44,7 @@ web:
# showSearch: true
# showRaw: true
# showDownloadTarball: true
# showUplinks: true
# HTML tags injected after manifest <scripts/>
# scriptsBodyAfter:
# - '<script type="text/javascript" src="https://my.company.com/customJS.min.js"></script>'

View File

@@ -1,5 +1,7 @@
# @verdaccio/core
## 7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/core",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "core utilities",
"keywords": [
"private",
@@ -44,7 +44,7 @@
"lodash": "4.17.21",
"typedoc": "0.23.25",
"typedoc-plugin-missing-exports": "latest",
"@verdaccio/types": "workspace:12.0.0-next-7.4"
"@verdaccio/types": "workspace:12.0.0-next-7.5"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -39,7 +39,7 @@
"lockfile": "1.0.4"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4"
"@verdaccio/types": "workspace:12.0.0-next-7.5"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -1,5 +1,13 @@
# Change Log
## 12.0.0-next-7.18
### Patch Changes
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/url@12.0.0-next-7.18
- @verdaccio/utils@7.0.0-next-7.18
## 12.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/tarball",
"version": "12.0.0-next-7.17",
"version": "12.0.0-next-7.18",
"description": "tarball utilities resolver",
"keywords": [
"private",
@@ -33,16 +33,16 @@
"access": "public"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/url": "workspace:12.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/url": "workspace:12.0.0-next-7.18",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"debug": "4.3.4",
"gunzip-maybe": "^1.4.2",
"lodash": "4.17.21",
"tar-stream": "^3.1.7"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"node-mocks-http": "1.14.1"
},
"scripts": {

View File

@@ -1,5 +1,11 @@
# Change Log
## 12.0.0-next-7.5
### Patch Changes
- 10dd81f: feat: complete overhaul of web user interface
## 12.0.0-next-7.4
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/types",
"version": "12.0.0-next-7.4",
"version": "12.0.0-next-7.5",
"description": "verdaccio types definitions",
"keywords": [
"private",

View File

@@ -83,6 +83,7 @@ export type PackageManagers = 'pnpm' | 'yarn' | 'npm';
export type CommonWebConf = {
title?: string;
logo?: string;
logoDark?: string;
favicon?: string;
gravatar?: boolean;
sort_packages?: string;
@@ -98,6 +99,7 @@ export type CommonWebConf = {
showFooter?: boolean;
showThemeSwitch?: boolean;
showDownloadTarball?: boolean;
showUplinks?: boolean;
hideDeprecatedVersions?: boolean;
primaryColor: string;
showRaw?: boolean;

View File

@@ -1,5 +1,11 @@
# Change Log
## 12.0.0-next-7.18
### Patch Changes
- @verdaccio/core@7.0.0-next-7.18
## 12.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/url",
"version": "12.0.0-next-7.17",
"version": "12.0.0-next-7.18",
"description": "url utilities resolver",
"keywords": [
"private",
@@ -33,13 +33,13 @@
"access": "public"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"debug": "4.3.4",
"lodash": "4.17.21",
"validator": "13.11.0"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"node-mocks-http": "1.14.1"
},
"scripts": {

View File

@@ -1,5 +1,12 @@
# @verdaccio/hooks
## 7.0.0-next-7.18
### Patch Changes
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/hooks",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -29,17 +29,17 @@
"node": ">=18"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"core-js": "3.35.0",
"debug": "4.3.4",
"got-cjs": "12.5.4",
"handlebars": "4.7.8"
},
"devDependencies": {
"@verdaccio/auth": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/auth": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"nock": "13.5.1"
},
"scripts": {

View File

@@ -1,5 +1,11 @@
# @verdaccio/loaders
## 7.0.0-next-7.18
### Patch Changes
- @verdaccio/logger@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/loaders",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -13,14 +13,14 @@
"url": "https://github.com/verdaccio/verdaccio"
},
"dependencies": {
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"debug": "4.3.4",
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
"verdaccio-auth-memory": "workspace:*",
"customprefix-auth": "2.0.0-next.0"

View File

@@ -1,5 +1,11 @@
# @verdaccio/logger-7
## 7.0.0-next-7.18
### Patch Changes
- @verdaccio/logger-commons@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/logger-7",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "logger for verdaccio 5.x version",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -38,11 +38,11 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.17",
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.18",
"pino": "7.11.0"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4"
"@verdaccio/types": "workspace:12.0.0-next-7.5"
},
"funding": {
"type": "opencollective",

View File

@@ -1,5 +1,11 @@
# @verdaccio/logger-commons
## 7.0.0-next-7.18
### Patch Changes
- @verdaccio/core@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/logger-commons",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "logger",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -38,14 +38,14 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/logger-prettify": "workspace:7.0.0-next-7.3",
"debug": "4.3.4",
"colorette": "2.0.20"
},
"devDependencies": {
"pino": "7.11.0",
"@verdaccio/types": "workspace:12.0.0-next-7.4"
"@verdaccio/types": "workspace:12.0.0-next-7.5"
},
"funding": {
"type": "opencollective",

View File

@@ -1,5 +1,11 @@
# @verdaccio/logger
## 7.0.0-next-7.18
### Patch Changes
- @verdaccio/logger-commons@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/logger",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "logger",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -38,11 +38,11 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.17",
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.18",
"pino": "8.17.2"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4"
"@verdaccio/types": "workspace:12.0.0-next-7.5"
},
"funding": {
"type": "opencollective",

View File

@@ -1,5 +1,16 @@
# @verdaccio/middleware
## 7.0.0-next-7.18
### Patch Changes
- 10dd81f: feat: complete overhaul of web user interface
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/url@12.0.0-next-7.18
- @verdaccio/utils@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/middleware",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "express middleware utils",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,10 +38,10 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/url": "workspace:12.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/url": "workspace:12.0.0-next-7.18",
"debug": "4.3.4",
"lru-cache": "7.18.3",
"express": "4.19.2",
@@ -54,7 +54,7 @@
"url": "https://opencollective.com/verdaccio"
},
"devDependencies": {
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"body-parser": "1.20.2",
"supertest": "6.3.4"
}

View File

@@ -42,34 +42,46 @@ export function renderWebMiddleware(config, tokenMiddleware, pluginOptions) {
res.sendFile(file, sendFileCallback(next));
});
// check the origin of the logo
if (config?.web?.logo && !isURLhasValidProtocol(config?.web?.logo)) {
// URI related to a local file
const absoluteLocalFile = path.posix.resolve(config.web.logo);
debug('serve local logo %s', absoluteLocalFile);
try {
// TODO: replace existsSync by async alternative
if (
fs.existsSync(absoluteLocalFile) &&
typeof fs.accessSync(absoluteLocalFile, fs.constants.R_OK) === 'undefined'
) {
// Note: `path.join` will break on Windows, because it transforms `/` to `\`
// Use POSIX version `path.posix.join` instead.
config.web.logo = path.posix.join('/-/static/', path.basename(config.web.logo));
router.get(config.web.logo, function (_req, res, next) {
// @ts-ignore
debug('serve custom logo web:%s - local:%s', config.web.logo, absoluteLocalFile);
res.sendFile(absoluteLocalFile, sendFileCallback(next));
});
debug('enabled custom logo %s', config.web.logo);
} else {
config.web.logo = undefined;
function renderLogo(logo: string | undefined): string | undefined {
// check the origin of the logo
if (logo && !isURLhasValidProtocol(logo)) {
// URI related to a local file
const absoluteLocalFile = path.posix.resolve(logo);
debug('serve local logo %s', absoluteLocalFile);
try {
// TODO: replace existsSync by async alternative
if (
fs.existsSync(absoluteLocalFile) &&
typeof fs.accessSync(absoluteLocalFile, fs.constants.R_OK) === 'undefined'
) {
// Note: `path.join` will break on Windows, because it transforms `/` to `\`
// Use POSIX version `path.posix.join` instead.
logo = path.posix.join('/-/static/', path.basename(logo));
router.get(logo, function (_req, res, next) {
// @ts-ignore
debug('serve custom logo web:%s - local:%s', logo, absoluteLocalFile);
res.sendFile(absoluteLocalFile, sendFileCallback(next));
});
debug('enabled custom logo %s', logo);
} else {
logo = undefined;
debug(`web logo is wrong, path ${absoluteLocalFile} does not exist or is not readable`);
}
} catch {
logo = undefined;
debug(`web logo is wrong, path ${absoluteLocalFile} does not exist or is not readable`);
}
} catch {
config.web.logo = undefined;
debug(`web logo is wrong, path ${absoluteLocalFile} does not exist or is not readable`);
}
return logo;
}
const logo = renderLogo(config?.web?.logo);
if (config?.web?.logo) {
config.web.logo = logo;
}
const logoDark = renderLogo(config?.web?.logoDark);
if (config?.web?.logoDark) {
config.web.logoDark = logoDark;
}
router.get('/-/web/:section/*', function (req, res) {

View File

@@ -26,16 +26,20 @@ const defaultManifestFiles: Manifest = {
css: [],
};
export function resolveLogo(config: ConfigYaml, requestOptions: RequestOptions) {
if (typeof config?.web?.logo !== 'string') {
export function resolveLogo(
logo: string | undefined,
url_prefix: string | undefined,
requestOptions: RequestOptions
) {
if (typeof logo !== 'string') {
return '';
}
const isLocalFile = config?.web?.logo && !isURLhasValidProtocol(config?.web?.logo);
const isLocalFile = logo && !isURLhasValidProtocol(logo);
if (isLocalFile) {
return `${getPublicUrl(config?.url_prefix, requestOptions)}-/static/${path.basename(config?.web?.logo)}`;
} else if (isURLhasValidProtocol(config?.web?.logo)) {
return config?.web?.logo;
return `${getPublicUrl(url_prefix, requestOptions)}-/static/${path.basename(logo)}`;
} else if (isURLhasValidProtocol(logo)) {
return logo;
} else {
return '';
}
@@ -61,7 +65,8 @@ export default function renderHTML(
const title = config?.web?.title ?? WEB_TITLE;
const login = hasLogin(config);
const scope = config?.web?.scope ?? '';
const logo = resolveLogo(config, requestOptions);
const logo = resolveLogo(config?.web?.logo, config?.url_prefix, requestOptions);
const logoDark = resolveLogo(config?.web?.logoDark, config?.url_prefix, requestOptions);
const pkgManagers = config?.web?.pkgManagers ?? ['yarn', 'pnpm', 'npm'];
const version = res.locals.app_version ?? '';
const flags = {
@@ -81,6 +86,8 @@ export default function renderHTML(
showFooter,
showSearch,
showDownloadTarball,
showRaw,
showUplinks,
} = Object.assign(
{},
{
@@ -97,6 +104,8 @@ export default function renderHTML(
showFooter,
showSearch,
showDownloadTarball,
showRaw,
showUplinks,
darkMode,
url_prefix,
basename,
@@ -104,6 +113,7 @@ export default function renderHTML(
primaryColor,
version,
logo,
logoDark,
flags,
login,
pkgManagers,

View File

@@ -14,6 +14,7 @@ web:
showRaw: true
primary_color: '#ffffff'
logo: './test/config/dark-logo.png'
logoDark: './test/config/dark-logo.png'
html_cache: false
url_prefix: /prefix

View File

@@ -79,6 +79,13 @@ describe('test web server', () => {
return loadLogo('file-logo.yaml', '/-/static/dark-logo.png');
});
test('should render dark logo as file', async () => {
const {
window: { __VERDACCIO_BASENAME_UI_OPTIONS },
} = await render('file-logo.yaml');
expect(__VERDACCIO_BASENAME_UI_OPTIONS.logoDark).toMatch('/prefix/-/static/dark-logo.png');
});
test('should not render logo as absolute file is wrong', async () => {
const {
window: { __VERDACCIO_BASENAME_UI_OPTIONS },

View File

@@ -1,5 +1,16 @@
# @verdaccio/node-api
## 7.0.0-next-7.18
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
- @verdaccio/server-fastify@7.0.0-next-7.18
- @verdaccio/server@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/node-api",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "node API",
"main": "build/index.js",
"types": "build/index.d.ts",
@@ -38,17 +38,17 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/server": "workspace:7.0.0-next-7.17",
"@verdaccio/server-fastify": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/server": "workspace:7.0.0-next-7.18",
"@verdaccio/server-fastify": "workspace:7.0.0-next-7.18",
"core-js": "3.35.0",
"debug": "4.3.4",
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"jest": "29.7.0",
"selfsigned": "2.4.1",
"supertest": "6.3.4"

View File

@@ -1,5 +1,13 @@
# Change Log
## 12.0.0-next-7.18
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
## 12.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "verdaccio-audit",
"version": "12.0.0-next-7.17",
"version": "12.0.0-next-7.18",
"description": "Verdaccio Middleware plugin to bypass npmjs audit",
"keywords": [
"private",
@@ -30,16 +30,16 @@
"node": ">=12"
},
"dependencies": {
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"express": "4.19.2",
"https-proxy-agent": "5.0.1",
"node-fetch": "cjs"
},
"devDependencies": {
"@verdaccio/auth": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/auth": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"nock": "13.5.1",
"supertest": "6.3.4"
},

View File

@@ -1,5 +1,11 @@
# Change Log
## 12.0.0-next-7.18
### Patch Changes
- @verdaccio/core@7.0.0-next-7.18
## 12.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "verdaccio-auth-memory",
"version": "12.0.0-next-7.17",
"version": "12.0.0-next-7.18",
"description": "Auth plugin for Verdaccio that keeps users in memory",
"keywords": [
"private",
@@ -30,13 +30,13 @@
"node": ">=18"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"debug": "4.3.4"
},
"devDependencies": {
"@types/debug": "^4.1.12",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4"
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -1,5 +1,12 @@
# Change Log
## 12.0.0-next-7.18
### Patch Changes
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/file-locking@12.0.0-next.1
## 12.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "verdaccio-htpasswd",
"version": "12.0.0-next-7.17",
"version": "12.0.0-next-7.18",
"description": "htpasswd auth plugin for Verdaccio",
"keywords": [
"private",
@@ -33,7 +33,7 @@
"node": ">=12"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/file-locking": "workspace:12.0.0-next.1",
"apache-md5": "1.1.8",
"bcryptjs": "2.4.3",
@@ -44,9 +44,9 @@
},
"devDependencies": {
"@types/bcryptjs": "2.4.6",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"mockdate": "3.0.5"
},
"scripts": {

View File

@@ -1,5 +1,13 @@
# Change Log
## 12.0.0-next-7.18
### Patch Changes
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/file-locking@12.0.0-next.1
- @verdaccio/utils@7.0.0-next-7.18
## 12.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/local-storage",
"version": "12.0.0-next-7.17",
"version": "12.0.0-next-7.18",
"description": "Local storage implementation",
"keywords": [
"private",
@@ -36,9 +36,9 @@
"node": ">=18"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/file-locking": "workspace:12.0.0-next.1",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"core-js": "3.35.0",
"debug": "4.3.4",
"globby": "11.1.0",
@@ -50,10 +50,10 @@
},
"devDependencies": {
"@types/minimatch": "5.1.2",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"minimatch": "9.0.4"
},
"scripts": {

View File

@@ -1,5 +1,11 @@
# Change Log
## 12.0.0-next-7.18
### Patch Changes
- @verdaccio/core@7.0.0-next-7.18
## 12.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "verdaccio-memory",
"version": "12.0.0-next-7.17",
"version": "12.0.0-next-7.18",
"description": "Storage implementation in memory",
"keywords": [
"private",
@@ -30,15 +30,15 @@
"node": ">=18"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"memory-fs": "0.5.0",
"debug": "4.3.4",
"memfs": "3.5.3"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17"
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -1,5 +1,11 @@
# @verdaccio/ui-theme
## 7.0.0-next-7.18
### Patch Changes
- 10dd81f: feat: complete overhaul of web user interface
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/ui-theme",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "Verdaccio User Interface",
"author": {
"name": "Verdaccio Contributors",
@@ -27,9 +27,9 @@
"@testing-library/dom": "9.3.4",
"@testing-library/jest-dom": "6.3.0",
"@testing-library/react": "14.1.2",
"@verdaccio/node-api": "workspace:7.0.0-next-7.17",
"@verdaccio/node-api": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:*",
"@verdaccio/ui-components": "workspace:3.0.0-next-7.7",
"@verdaccio/ui-components": "workspace:3.0.0-next-7.8",
"babel-loader": "8.3.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"country-flag-icons": "1.5.9",

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { renderWithStore, screen } from 'verdaccio-ui/utils/test-react-testing-library';
import { act, renderWithStore, screen } from 'verdaccio-ui/utils/test-react-testing-library';
import { store } from '@verdaccio/ui-components';
@@ -13,17 +13,21 @@ jest.spyOn(HTMLElement.prototype, 'offsetWidth', 'get').mockReturnValue(600);
/* eslint-disable react/jsx-no-bind*/
describe('<App />', () => {
describe('footer', () => {
test('should display the Header component', () => {
renderWithStore(<App />, store);
test('should display the Header component', async () => {
await act(() => {
renderWithStore(<App />, store);
});
expect(screen.getByTestId('footer')).toBeInTheDocument();
});
test('should not display the Header component', () => {
test('should not display the Header component', async () => {
// @ts-ignore
window.__VERDACCIO_BASENAME_UI_OPTIONS = {
showFooter: false,
};
renderWithStore(<App />, store);
await act(() => {
renderWithStore(<App />, store);
});
expect(screen.queryByTestId('footer')).toBeFalsy();
});
});

View File

@@ -31,14 +31,14 @@
"username": "030",
"id": 7524528
},
{
"username": "dianmorales",
"id": 558740
},
{
"username": "mbtools",
"id": 59966492
},
{
"username": "dianmorales",
"id": 558740
},
{
"username": "anikethsaha",
"id": 26347874
@@ -891,10 +891,6 @@
"username": "recallwei",
"id": 62941121
},
{
"username": "ChadKillingsworth",
"id": 1247639
},
{
"username": "ngash",
"id": 6511656

View File

@@ -6,7 +6,8 @@
"visit-home-page": "Visit homepage",
"open-an-issue": "Open an issue",
"download-tarball": "Download tarball",
"raw": "Raw Manifest"
"raw": "View manifest",
"raw-title": "Manifest of {{package}}"
},
"dialog": {
"registry-info": {
@@ -59,7 +60,7 @@
"hide-deprecated": "All deprecated versions are hidden by global configuration"
},
"package": {
"published-on": "Published on {{time}}",
"published-on": "Published {{time}}",
"version": "v{{version}}",
"visit-home-page": "Visit homepage",
"homepage": "Homepage",
@@ -84,7 +85,7 @@
},
"form-validation": {
"required-field": "This field is required",
"required-min-length": "This field required the min length of {{length}}",
"required-min-length": "This field required with a minimum length of {{length}}",
"unable-to-sign-in": "Unable to sign in",
"username-or-password-cant-be-empty": "Username or password can't be empty!"
},
@@ -105,6 +106,7 @@
},
"installation": {
"title": "Installation",
"latest": "latest version",
"global": "global package",
"yarnModern": "yarn modern syntax"
},
@@ -115,10 +117,13 @@
"title": "Author"
},
"distribution": {
"title": "Latest Distribution",
"title": "Distribution",
"license": "License",
"size": "Size",
"file-count": "file count"
"file-count": "File Count"
},
"keywords": {
"title": "Keywords"
},
"maintainers": {
"title": "Maintainers"

View File

@@ -1,5 +1,14 @@
# @verdaccio/proxy
## 7.0.0-next-7.18
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/utils@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/proxy",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "verdaccio proxy fetcher",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,9 +38,9 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"JSONStream": "1.3.5",
"debug": "4.3.4",
"got-cjs": "12.5.4",
@@ -48,8 +48,8 @@
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"get-stream": "^6.0.1",
"nock": "13.5.1",
"node-mocks-http": "1.14.1",

View File

@@ -37,7 +37,7 @@
"build": "esbuild src/index.ts --bundle --outfile=build/dist.js --platform=node --target=node12 && pnpm run build:types"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"@orama/orama": "1.2.4",
"debug": "4.3.4",
"esbuild": "0.14.10"

View File

@@ -1,5 +1,15 @@
# @verdaccio/search
## 7.0.0-next-7.7
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
- @verdaccio/proxy@7.0.0-next-7.18
## 7.0.0-next-7.6
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/search",
"version": "7.0.0-next-7.6",
"version": "7.0.0-next-7.7",
"description": "verdaccio search proxy",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -40,13 +40,13 @@
"dependencies": {
"debug": "4.3.4",
"lodash": "4.17.21",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/proxy": "workspace:7.0.0-next-7.17"
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/proxy": "workspace:7.0.0-next-7.18"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"mockdate": "3.0.5",
"nock": "13.5.1",
"node-mocks-http": "1.14.1"

View File

@@ -1,5 +1,22 @@
# @verdaccio/server
## 7.0.0-next-7.18
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/middleware@7.0.0-next-7.18
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/api@7.0.0-next-7.18
- @verdaccio/auth@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/loaders@7.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
- verdaccio-audit@12.0.0-next-7.18
- @verdaccio/store@7.0.0-next-7.18
- @verdaccio/web@7.0.0-next-7.18
- @verdaccio/utils@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/server",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "server logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -29,17 +29,17 @@
"node": ">=18"
},
"dependencies": {
"@verdaccio/api": "workspace:7.0.0-next-7.17",
"@verdaccio/auth": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/loaders": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/middleware": "workspace:7.0.0-next-7.17",
"@verdaccio/store": "workspace:7.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/web": "workspace:7.0.0-next-7.17",
"verdaccio-audit": "workspace:12.0.0-next-7.17",
"@verdaccio/api": "workspace:7.0.0-next-7.18",
"@verdaccio/auth": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/loaders": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/middleware": "workspace:7.0.0-next-7.18",
"@verdaccio/store": "workspace:7.0.0-next-7.18",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"@verdaccio/web": "workspace:7.0.0-next-7.18",
"verdaccio-audit": "workspace:12.0.0-next-7.18",
"compression": "1.7.4",
"cors": "2.8.5",
"debug": "4.3.4",
@@ -47,7 +47,7 @@
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/proxy": "workspace:7.0.0-next-7.17",
"@verdaccio/proxy": "workspace:7.0.0-next-7.18",
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
"http-errors": "2.0.0"
},

View File

@@ -1,5 +1,18 @@
# @verdaccio/server-fastify
## 7.0.0-next-7.18
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/auth@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/tarball@12.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
- @verdaccio/store@7.0.0-next-7.18
- @verdaccio/utils@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/server-fastify",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "fastify server api implementation",
"keywords": [
"private",
@@ -33,13 +33,13 @@
"access": "public"
},
"dependencies": {
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/auth": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/store": "workspace:7.0.0-next-7.17",
"@verdaccio/tarball": "workspace:12.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/auth": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/store": "workspace:7.0.0-next-7.18",
"@verdaccio/tarball": "workspace:12.0.0-next-7.18",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"core-js": "3.35.0",
"debug": "4.3.4",
"fastify": "4.25.2",
@@ -47,7 +47,7 @@
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"ts-node": "10.9.2"
},
"scripts": {

View File

@@ -42,8 +42,8 @@
"debug": "4.3.4"
},
"devDependencies": {
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4"
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5"
},
"funding": {
"type": "opencollective",

View File

@@ -32,8 +32,8 @@
"homepage": "https://verdaccio.org",
"license": "MIT",
"devDependencies": {
"@verdaccio/cli": "workspace:7.0.0-next-7.17",
"@verdaccio/ui-theme": "workspace:7.0.0-next-7.17",
"@verdaccio/cli": "workspace:7.0.0-next-7.18",
"@verdaccio/ui-theme": "workspace:7.0.0-next-7.18",
"fs-extra": "11.2.0",
"webpack": "5.90.0",
"webpack-bundle-analyzer": "4.10.1",

View File

@@ -1,5 +1,22 @@
# @verdaccio/store
## 7.0.0-next-7.18
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
- @verdaccio/tarball@12.0.0-next-7.18
- @verdaccio/url@12.0.0-next-7.18
- @verdaccio/hooks@7.0.0-next-7.18
- @verdaccio/loaders@7.0.0-next-7.18
- @verdaccio/logger@7.0.0-next-7.18
- @verdaccio/local-storage@12.0.0-next-7.18
- @verdaccio/proxy@7.0.0-next-7.18
- @verdaccio/search@7.0.0-next-7.7
- @verdaccio/utils@7.0.0-next-7.18
## 7.0.0-next-7.17
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/store",
"version": "7.0.0-next-7.17",
"version": "7.0.0-next-7.18",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,17 +38,17 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/hooks": "workspace:7.0.0-next-7.17",
"@verdaccio/loaders": "workspace:7.0.0-next-7.17",
"@verdaccio/local-storage": "workspace:12.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/search": "workspace:7.0.0-next-7.6",
"@verdaccio/proxy": "workspace:7.0.0-next-7.17",
"@verdaccio/tarball": "workspace:12.0.0-next-7.17",
"@verdaccio/url": "workspace:12.0.0-next-7.17",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/hooks": "workspace:7.0.0-next-7.18",
"@verdaccio/loaders": "workspace:7.0.0-next-7.18",
"@verdaccio/local-storage": "workspace:12.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/search": "workspace:7.0.0-next-7.7",
"@verdaccio/proxy": "workspace:7.0.0-next-7.18",
"@verdaccio/tarball": "workspace:12.0.0-next-7.18",
"@verdaccio/url": "workspace:12.0.0-next-7.18",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"JSONStream": "1.3.5",
"debug": "4.3.4",
"lodash": "4.17.21",
@@ -57,7 +57,7 @@
},
"devDependencies": {
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"mockdate": "3.0.5",
"nock": "13.5.1",
"node-mocks-http": "1.14.1"

View File

@@ -3,11 +3,11 @@
{
"id": 558752,
"login": "juanpicado",
"contributions": 5274,
"contributions": 5283,
"repositories": [
{
"name": "verdaccio",
"contributions": 2917
"contributions": 2923
},
{
"name": "verdaccio-cookbook",
@@ -15,7 +15,7 @@
},
{
"name": "generator-verdaccio-plugin",
"contributions": 96
"contributions": 98
},
{
"name": "puppet-verdaccio",
@@ -119,7 +119,7 @@
},
{
"name": "charts",
"contributions": 38
"contributions": 39
},
{
"name": "verdaccio-e2e-example",
@@ -352,6 +352,17 @@
}
]
},
{
"id": 59966492,
"login": "mbtools",
"contributions": 34,
"repositories": [
{
"name": "verdaccio",
"contributions": 34
}
]
},
{
"id": 558740,
"login": "dianmorales",
@@ -367,17 +378,6 @@
}
]
},
{
"id": 59966492,
"login": "mbtools",
"contributions": 28,
"repositories": [
{
"name": "verdaccio",
"contributions": 28
}
]
},
{
"id": 26347874,
"login": "anikethsaha",
@@ -2957,17 +2957,6 @@
}
]
},
{
"id": 1247639,
"login": "ChadKillingsworth",
"contributions": 1,
"repositories": [
{
"name": "verdaccio",
"contributions": 1
}
]
},
{
"id": 6511656,
"login": "ngash",
@@ -5066,7 +5055,7 @@
"full_name": "verdaccio/verdaccio",
"html_url": "https://github.com/verdaccio/verdaccio",
"description": "📦🔐 A lightweight Node.js private proxy registry",
"stargazers_count": 16006,
"stargazers_count": 16061,
"archived": false
},
{
@@ -5094,7 +5083,7 @@
"html_url": "https://github.com/verdaccio/generator-verdaccio-plugin",
"description": " 🧩 yeoman verdaccio plugin generator (low maintenance)",
"stargazers_count": 12,
"archived": false
"archived": true
},
{
"name": "puppet-verdaccio",
@@ -5327,7 +5316,7 @@
"full_name": "verdaccio/charts",
"html_url": "https://github.com/verdaccio/charts",
"description": "☸️🐳 Verdaccio Helm chart repository",
"stargazers_count": 58,
"stargazers_count": 59,
"archived": false
},
{
@@ -5353,7 +5342,7 @@
"login": "verdaccio",
"full_name": "verdaccio/e2e-tests",
"html_url": "https://github.com/verdaccio/e2e-tests",
"description": "e2e tests",
"description": "run e2e tests for 5.x and 6.x branches",
"stargazers_count": 1,
"archived": false
},

View File

@@ -1,5 +1,13 @@
# generator-verdaccio-plugin
## 5.0.0-next-7.1
### Patch Changes
- Updated dependencies [10dd81f]
- @verdaccio/config@7.0.0-next-7.18
- @verdaccio/core@7.0.0-next-7.18
## 5.0.0-next-7.0
### Major Changes

View File

@@ -1,6 +1,6 @@
{
"name": "generator-verdaccio-plugin",
"version": "5.0.0-next-7.0",
"version": "5.0.0-next-7.1",
"description": "plugin generator for verdaccio",
"homepage": "https://github.com/verdaccio",
"author": {
@@ -21,12 +21,12 @@
"yeoman-environment": "3.19.3",
"yeoman-generator": "5.9.0",
"yosay": "2.0.2",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17"
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18"
},
"devDependencies": {
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"ts-jest": "29.1.0",
"yeoman-assert": "3.1.1",
"yeoman-test": "6.3.0"
@@ -42,7 +42,8 @@
"type-check": "tsc --noEmit -p tsconfig.build.json",
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
"build": "babel src/ --out-dir generators/ --copy-files --extensions \".ts,.tsx\" --source-maps --ignore src/app/templates",
"test": "vitest run --pool=forks",
"test": "echo \"on development\" && exit 0",
"test:new": "vitest run --pool=forks",
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\""
},
"license": "MIT"

View File

@@ -9,13 +9,13 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"devDependencies": {
"@verdaccio/auth": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/logger": "workspace:7.0.0-next-7.17",
"@verdaccio/middleware": "workspace:7.0.0-next-7.17",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/utils": "workspace:7.0.0-next-7.17",
"@verdaccio/auth": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/logger": "workspace:7.0.0-next-7.18",
"@verdaccio/middleware": "workspace:7.0.0-next-7.18",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"@verdaccio/utils": "workspace:7.0.0-next-7.18",
"body-parser": "1.20.2",
"debug": "4.3.4",
"express": "4.19.2",

View File

@@ -9,10 +9,10 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"devDependencies": {
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/core": "workspace:7.0.0-next-7.17",
"@verdaccio/config": "workspace:7.0.0-next-7.17",
"verdaccio": "7.0.0-next-7.17"
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"@verdaccio/core": "workspace:7.0.0-next-7.18",
"@verdaccio/config": "workspace:7.0.0-next-7.18",
"verdaccio": "7.0.0-next-7.18"
},
"scripts": {
"start": "ts-node src/index.ts",

View File

@@ -40,11 +40,11 @@
"approvalProgress": 17
},
"pt-BR": {
"translationProgress": 28,
"approvalProgress": 28
"translationProgress": 27,
"approvalProgress": 27
},
"ru": {
"translationProgress": 57,
"translationProgress": 56,
"approvalProgress": 36
},
"sr-CS": {
@@ -52,8 +52,8 @@
"approvalProgress": 9
},
"tr": {
"translationProgress": 4,
"approvalProgress": 4
"translationProgress": 3,
"approvalProgress": 3
},
"uk": {
"translationProgress": 1,

View File

@@ -60,7 +60,7 @@
"react/jsx-curly-brace-presence": ["warn", { "props": "ignore", "children": "ignore" }],
"react/jsx-pascal-case": ["error"],
"react/jsx-props-no-multi-spaces": ["error"],
"react/jsx-sort-default-props": ["error"],
"react/sort-default-props": ["error"],
"react/jsx-sort-props": ["error"],
"react/no-string-refs": ["error"],
"react/no-danger-with-children": ["error"],

View File

@@ -1,5 +1,11 @@
# @verdaccio/ui-components
## 3.0.0-next-7.8
### Minor Changes
- 10dd81f: feat: complete overhaul of web user interface
## 3.0.0-next-7.7
### Patch Changes

View File

@@ -0,0 +1,3 @@
module.exports = () =>
// eslint-disable-next-line max-len
'<h1 id="storybook-cli">Storybook CLI</h1>\n<p>This is a wrapper for <a href="https://www.npmjs.com/package/@storybook/cli">https://www.npmjs.com/package/@storybook/cli</a></p>';

View File

@@ -1,2 +0,0 @@
<h1 id="storybook-cli">Storybook CLI</h1>
<p>This is a wrapper for <a href="https://www.npmjs.com/package/@storybook/cli">https://www.npmjs.com/package/@storybook/cli</a></p>

View File

@@ -1,3 +1,4 @@
import fs from 'fs';
import { rest } from 'msw';
const packagesPayload = require('./api/home-packages.json');
@@ -21,24 +22,20 @@ export const handlers = [
}),
rest.get('http://localhost:9000/-/verdaccio/data/package/readme/storybook', (req, res, ctx) => {
return res(
ctx.text(`<h1 id="storybook-cli">Storybook CLI MSW.js</h1>
<p>This is a wrapper for <a href="https://www.npmjs.com/package/@storybook/cli">https://www.npmjs.com/package/@storybook/cli</a></p>
`)
);
return res(ctx.text(require('./api/storybook-readme')()));
}),
rest.get('http://localhost:9000/-/verdaccio/data/sidebar/jquery', (req, res, ctx) => {
return res(ctx.json(require('./api/jquery-sidebar.json')));
}),
rest.get('http://localhost:9000/-/verdaccio/data/sidebar/JSONStream', (req, res, ctx) => {
return res(ctx.status(401));
return res(ctx.status(401)); // unauthorized
}),
rest.get('http://localhost:9000/-/verdaccio/data/sidebar/semver', (req, res, ctx) => {
return res(ctx.status(500));
return res(ctx.status(500)); // internal server error
}),
rest.get('http://localhost:9000/-/verdaccio/data/sidebar/kleur', (req, res, ctx) => {
return res(ctx.status(404));
return res(ctx.status(404)); // not found
}),
rest.get('http://localhost:9000/-/verdaccio/data/sidebar/glob', (req, res, ctx) => {
return res(ctx.json(require('./api/glob-sidebar.json')));
@@ -55,6 +52,14 @@ export const handlers = [
rest.get('http://localhost:9000/-/verdaccio/data/package/readme/jquery', (req, res, ctx) => {
return res(ctx.text(require('./api/jquery-readme')()));
}),
rest.get('http://localhost:9000/verdaccio/-/verdaccio-1.0.0.tgz', (req, res, ctx) => {
const fileContent = fs.readFileSync('./api/verdaccio-1.0.0.tgz');
return res(
ctx.status(200),
ctx.set('Content-Type', 'application/octet-stream'),
ctx.body(fileContent)
);
}),
rest.post<{ username: string; password: string }, { token: string; username: string }>(
'http://localhost:9000/-/verdaccio/sec/login',

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/ui-components",
"version": "3.0.0-next-7.7",
"version": "3.0.0-next-7.8",
"description": "theme ui component",
"author": "Juan Picado <juanpicado19@gmail.com>",
"license": "MIT",
@@ -76,7 +76,7 @@
"@types/hast": "^2.0.0",
"@types/react-router": "^5.1.20",
"@types/unist": "^2.0.0",
"@verdaccio/types": "workspace:12.0.0-next-7.4",
"@verdaccio/types": "workspace:12.0.0-next-7.5",
"babel-loader": "^8.3.0",
"mockdate": "3.0.5",
"msw": "0.49.3",

View File

@@ -0,0 +1,65 @@
import React from 'react';
import { MemoryRouter } from 'react-router';
import { store } from '../';
import { act, renderWithStore, screen, waitFor } from '../test/test-react-testing-library';
import AppRoute from './AppRoute';
// force the windows to expand to display items
// https://github.com/bvaughn/react-virtualized/issues/493#issuecomment-640084107
jest.spyOn(HTMLElement.prototype, 'offsetHeight', 'get').mockReturnValue(600);
jest.spyOn(HTMLElement.prototype, 'offsetWidth', 'get').mockReturnValue(600);
function appTest(path: string) {
renderWithStore(
<MemoryRouter initialEntries={[path]}>
<AppRoute />
</MemoryRouter>,
store
);
}
// See jest/server-handlers.ts for test routes
describe('AppRoute', () => {
afterEach(() => {
jest.clearAllMocks();
});
test('renders Front component for ROOT path', async () => {
act(() => appTest('/'));
await waitFor(() => expect(screen.getByTestId('loading')).toBeInTheDocument());
await waitFor(() => expect(screen.getAllByTestId('package-item-list')).toHaveLength(5));
});
test('renders VersionPage component for PACKAGE path', async () => {
act(() => appTest('/-/web/detail/jquery'));
await waitFor(() => screen.getByTestId('readme-tab'));
expect(screen.getByTestId('sidebar')).toBeInTheDocument();
});
test('renders VersionPage component for PACKAGE VERSION path', async () => {
act(() => appTest('/-/web/detail/jquery/v/3.6.3'));
await waitFor(() => screen.getByTestId('readme-tab'));
expect(screen.getByTestId('sidebar')).toBeInTheDocument();
});
test('renders Forbidden component for not allowed PACKAGE', async () => {
act(() => appTest('/-/web/detail/JSONstream'));
await waitFor(() => screen.getByTestId('not-found-go-to-home-button'));
});
test('renders NotFound component for missing PACKAGE', async () => {
act(() => appTest('/-/web/detail/kleur'));
await waitFor(() => screen.getByTestId('not-found-go-to-home-button'));
});
test('renders NotFound component for non-existing PACKAGE VERSION', async () => {
act(() => appTest('/-/web/detail/jquery/v/0.9.9'));
await waitFor(() => screen.getByTestId('not-found-go-to-home-button'));
});
test('renders NotFound component for non-matching path', async () => {
act(() => appTest('/oiccadrev'));
await waitFor(() => screen.getByTestId('not-found-go-to-home-button'));
});
});

View File

@@ -0,0 +1,27 @@
import { render, screen } from '@testing-library/react';
import React from 'react';
import {
AppConfigurationProvider,
PersistenceSettingProvider,
StyleBaseline,
ThemeProvider,
} from '../';
const AppContainer = () => (
<AppConfigurationProvider>
<ThemeProvider>
<StyleBaseline />
<PersistenceSettingProvider>
<div>{'Theme'}</div>
</PersistenceSettingProvider>
</ThemeProvider>
</AppConfigurationProvider>
);
describe('ThemeProvider', () => {
test('should render with theme', async () => {
render(<AppContainer />);
await screen.findByText('Theme');
});
});

View File

@@ -6,11 +6,11 @@ const colors = {
black: '#000',
white: '#fff',
red: '#d32f2f',
orange: '#CD4000',
orange: '#cd4000',
greySuperLight: '#f5f5f5',
greyLight: '#d3d3d3',
greyLight2: '#908ba1',
greyLight3: '#f3f4f240',
greyLight3: '#f3f4f2',
greyDark: '#a9a9a9',
greyDark2: '#586069',
greyChateau: '#95989a',
@@ -38,7 +38,7 @@ const themeModes = {
...colors,
primary: '#ffffff',
secondary: '#424242',
background: '#1A202C',
background: '#1a202c',
},
};

View File

@@ -1,28 +1,22 @@
import React from 'react';
import { store } from '../../store/store';
import {
cleanup,
fireEvent,
renderWithStore,
screen,
waitFor,
} from '../../test/test-react-testing-library';
import { cleanup, fireEvent, renderWithStore, screen } from '../../test/test-react-testing-library';
import ActionBar from './ActionBar';
const defaultPackageMeta = {
_uplinks: {},
latest: {
name: 'verdaccio-ui/local-storage',
version: '8.0.1-next.1',
name: 'verdaccio',
version: '1.0.0',
dist: {
fileCount: 0,
unpackedSize: 0,
tarball: 'http://localhost:8080/bootstrap/-/bootstrap-4.3.1.tgz',
fileCount: 1,
unpackedSize: 171,
tarball: 'http://localhost:9000/verdaccio/-/verdaccio-1.0.0.tgz',
},
homepage: 'https://verdaccio.org',
bugs: {
url: 'https://github.com/verdaccio/monorepo/issues',
url: 'https://github.com/verdaccio/verdaccio/issues',
},
},
};
@@ -39,6 +33,12 @@ describe('<ActionBar /> component', () => {
expect(screen.getByTestId('HomeIcon')).toBeInTheDocument();
});
test('should not render if data is missing', () => {
// @ts-ignore - testing with missing data
renderWithStore(<ActionBar packageMeta={undefined} />, store);
expect(screen.queryByTestId('HomeIcon')).toBeNull();
});
test('when there is no action bar data', () => {
const packageMeta = {
...defaultPackageMeta,
@@ -64,6 +64,14 @@ describe('<ActionBar /> component', () => {
expect(screen.getByLabelText('action-bar-action.download-tarball')).toBeTruthy();
});
test('when button to download is disabled', () => {
renderWithStore(
<ActionBar packageMeta={defaultPackageMeta} showDownloadTarball={false} />,
store
);
expect(screen.queryByTestId('download-tarball-btn')).not.toBeInTheDocument();
});
test('when there is a button to raw manifest', () => {
renderWithStore(<ActionBar packageMeta={defaultPackageMeta} showRaw={true} />, store);
expect(screen.getByLabelText('action-bar-action.raw')).toBeTruthy();
@@ -71,15 +79,28 @@ describe('<ActionBar /> component', () => {
test('when click button to raw manifest open a dialog with viewer', async () => {
renderWithStore(<ActionBar packageMeta={defaultPackageMeta} showRaw={true} />, store);
expect(screen.queryByTestId('rawViewer--dialog')).toBeFalsy();
fireEvent.click(screen.getByLabelText('action-bar-action.raw'));
await waitFor(() => expect(screen.getByTestId('rawViewer--dialog')).toBeInTheDocument());
await screen.findByTestId('rawViewer--dialog');
fireEvent.click(screen.getByTestId('close-raw-viewer'));
await screen.getByLabelText('action-bar-action.raw');
expect(screen.queryByTestId('rawViewer--dialog')).toBeFalsy();
});
test('should not display download tarball button', () => {
renderWithStore(<ActionBar packageMeta={defaultPackageMeta} showRaw={true} />, store);
renderWithStore(<ActionBar packageMeta={defaultPackageMeta} showRaw={false} />, store);
expect(screen.queryByLabelText('Download tarball')).toBeFalsy();
});
test('when click button to download ', async () => {
renderWithStore(<ActionBar packageMeta={defaultPackageMeta} showRaw={false} />, store);
fireEvent.click(screen.getByTestId('download-tarball-btn'));
await store.getState().loading.models.download;
});
test('should not display show raw button', () => {
renderWithStore(<ActionBar packageMeta={defaultPackageMeta} showRaw={false} />, store);
expect(screen.queryByLabelText('action-bar-action.raw')).toBeFalsy();

Some files were not shown because too many files have changed in this diff Show More