Skip to content

Commit

Permalink
Moved trellis tree to convert, exported formats and trees from index
Browse files Browse the repository at this point in the history
  • Loading branch information
aultac committed Mar 23, 2024
1 parent 44a393d commit f570f7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import debug from 'debug';
import md5 from 'md5';
import './App.css';
import { connect } from '@oada/client';
import { tree } from './trellisTree';
import { observer } from 'mobx-react-lite';
import { context } from './state';
import { toModus2QuickHack } from './toModus2'
// @ts-ignore
import { file as convertFile, units, ModusResult } from '@modusjs/convert/dist-browser/bundle.mjs';
import { file as convertFile, tree, units, ModusResult } from '@modusjs/convert/dist-browser/bundle.mjs';
import type { json } from '@modusjs/convert';
import Messages from './Messages';

Expand All @@ -23,7 +22,7 @@ const error = debug('@modusjs/app#App:error');
const warn = debug('@modusjs/app#App:warn');

export default observer(function App() {
const { state, actions } = useContext(context);
const { state, actions } = useContext(context);

async function toTrellis ({ domain, token, results } :
{ domain: string, token: string, results: ModusResult[] }): Promise<void> {
Expand Down Expand Up @@ -166,7 +165,7 @@ export default observer(function App() {
&nbsp;
</div>
</div>}

<Messages />

<div className="dropzone-container">
Expand Down Expand Up @@ -250,4 +249,4 @@ function serializeJSON(obj: any): string {
return acc;
},"")
+ endtoken;
}
}
3 changes: 2 additions & 1 deletion convert/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export * as json from './json.js';
export * as units from './units.js';
// Promote type to top-level export
export { ModusResult, InputFile } from './json.js';
export { tree } from './tree.js'; // trellis tree

// exported from the platform-specific code node/ and browser/
//export * as html from './html.js';
//export * as html from './html.js';
File renamed without changes.

0 comments on commit f570f7a

Please sign in to comment.