open-reaction-database / ord-interface

Search/browse interface and APIs for the Open Reaction Database
https://open-reaction-database.org
Apache License 2.0
19 stars 10 forks source link

ORD-schema version #70

Closed ipendlet closed 11 months ago

ipendlet commented 1 year ago

Likely an issue for @mikennel

Regarding work on https://github.com/open-reaction-database/ord-interface/tree/vue

For the vue implementation to work we currently have to use "ord-schema": "^0.3.40".

This should be brought up to the latest version OR be included in the installation to ensure the right version is used.

ipendlet commented 1 year ago

Also change the vue config to hit the correct port on the docker. In the current branch should be:

const { defineConfig } = require('@vue/cli-service')
const path = require('path')

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      "^/api": {
        target: "http://0.0.0.0:5000/client/",
        changeOrigin: true
      },
      "^/editor": {
        target: "http://0.0.0.0:5000/editor",
        changeOrigin: true
      }
    }
  },
  chainWebpack: config => {
    config.plugin('copy')
      .tap(entries => {
        entries[0].patterns.push({
          from: path.resolve(__dirname, 'src/ketcher/templates'),
          to: path.resolve(__dirname, 'dist/templates'),
          toType: 'dir',
          noErrorOnMissing: false,
          globOptions: { ignore: ['.DS_Store'] },
        })
        return entries
      })
  }
})