Skip to content
Snippets Groups Projects
Select Git revision
  • db958def44d0dc9fa12e7a3fa0282a77ff899d0d
  • master default protected
  • dev protected
  • 551-init-broker-service-permissions
  • release-1.10 protected
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • release-1.9 protected
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • 485-fixity-checks
  • 530-various-schema-problems-with-subsets
  • release-1.7 protected
  • fix/auth-service
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
  • v1.9.2-rc0 protected
  • v1.9.1 protected
41 results

dbrepo-ui

User Interface

  • Runtime: Node.js 18+ or Bun (recommended)
  • Package manager: bun
  • Builder: vite
  • Storage: 🍍 pinia (with pinia-plugin-persistedstate/nuxt using local storage)
  • User config: nitro
  • Runtime modules: vue, vuetify

Prerequisites

Install the runtime dependencies from the package.json:

bun install

Develop

The folder structure follows the Nuxt auto-import configuration, i.e. the /layouts directory is imported automatically by Nuxt.

Then, start a local development server at port 3001.

bun dev

Visit http://localhost:3001 in your browser. The development server watches for changes in dbrepo-ui and will reload the frontend.

Configure

To change most display settings, modify the dbrepo.config.json in the root folder. Extend it for any configuration that the user needs to do, e.g. change the title, logo, display a list of links.

Locale

By default an English local is installed, you can use it as template to write your own locale translation. It follows a simple structure:

{
  "pages": {
    "some-page": {
      "subpages": {
        "some-other-page": {
          ...
        }
      },
      ...
    }
  },
  "toolbars": {
    "some-user-toolbar": {
      ...
    }
  },
  "notifications": {
    ...
  }
}

Test

To run the unit tests:

yarn run test:unit

Optionally, generate a coverage report:

yarn run coverage

Packaging

For production builds that build a compressed Node.js server:

bun run build

Optional: preview the production server with bun run preview.

Start the production server:

bun run .output/server/index.mjs

Troubleshooting

  1. Running bun dev for some reason does not apply <NuxtLink> on the root page /.
  • Cause: Unknown.
  • Solution: Refresh the page with F5 or Ctrl+R
  1. Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached, watch ./dbrepo-ui/node_modules/....