0.7.1 • Published 7 months ago

@recogito/plugin-duke-unreal-export v0.7.1

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Duke University 3D Export Plugin

A custom Recogito Studio export for Duke University's Unreal 3D importer.

Installation

  1. Change into your Recogito Client folder. To install the plugin package, run:
npm install @recogito/plugin-duke-unreal-export
  1. Edit your astro.config.mjs:
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import netlify from '@astrojs/netlify';

+ import DukeUnrealExportPlugin from '@recogito/plugin-duke-unreal-export';

export default defineConfig({
  integrations: [
    react(),
+   DukeUnrealExportPlugin()
  ],
  output: 'server',
  adapter: netlify(),
  vite: {
    ssr: {
      noExternal: ['clsx', '@phosphor-icons/*', '@radix-ui/*']
    },
    optimizeDeps: {
      esbuildOptions: {
        target: 'esnext'
      }
    }
  }
});
  1. Restart the Recogito Client.

Development

  • Run npm install in the root folder and in the .dev folder.
  • Run npm run build to build the plugin.
  • Run npm run dev to start the test application.
  • Go to http://localhost:4321/

Configuring for Supabase Backend Access

This plugin retrieves data from the database. Therefore, you need to configure the test app for Supabase access.

  1. Create a copy of the file .dev/.env.example named .dev/.env.
  2. Edit the .dev/.env file to configure your Supabase project URL and public API key.
  3. Restart the test app with npm run dev.

The test application will list only the UI extensions provided by a plugin. In this plugin, that's simply a <a> link to the export route, meant to go into Recogito's export menu later. Because of the limitations of the test app, the "current project" will be undefined, and the link will point to:

http://localhost:4321/api/undefined/export/unreal

To test the export route, you need to manually replace undefined with the ID of a project you have access to. E.g.:

http://localhost:4321/api/1cb15deb-e9c9-44e8-acbf-e30423d58e9e/export/unreal

0.7.1

7 months ago

0.7.0

7 months ago

0.6.1

7 months ago

0.6.0

8 months ago

0.5.0-beta.10

9 months ago

0.5.0-beta.9

9 months ago

0.5.0-beta.8

9 months ago

0.5.0-beta.7

9 months ago

0.5.0-beta.6

9 months ago

0.5.0-beta.5

9 months ago

0.5.0-beta.4

9 months ago

0.5.0-beta.3

9 months ago

0.5.0-beta.2

9 months ago

0.5.0-beta.1

9 months ago

0.3.0

9 months ago

0.2.0

9 months ago