Skip to content
Snippets Groups Projects
Select Git revision
  • 120573283414d461c9aad2e0e55369549e6f7bc4
  • master default protected
  • release-1.10 protected
  • dev protected
  • replication_test
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 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
  • v1.10.2 protected
  • 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
41 results

dbrepo-ui

  • Clone with SSH
  • Clone with HTTPS
  • Martin Weise's avatar
    Martin Weise authored
    12057328
    History

    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/....