Skip to content

Commit

Permalink
get build to work
Browse files Browse the repository at this point in the history
  • Loading branch information
crcn committed May 21, 2022
1 parent e78e710 commit 9eebdab
Show file tree
Hide file tree
Showing 80 changed files with 501 additions and 488 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"workspaces": [
"./packages/legacy-tandem/*",
"./packages/@tandem-ui/*"
"./packages/@tandem-ui/*",
"./packages/@paperclip-lang/*"
],
"main": "index.js",
"author": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"license": "ISC",
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.20",
"@types/node": "^17.0.35",
"@typescript-eslint/eslint-plugin": "^3.6.1",
"@typescript-eslint/parser": "^3.6.1",
"chai": "^4.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/@tandem-ui/designer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@
"mousetrap": "^1.6.5",
"paperclip": "^10.1.33",
"paperclip-migrator": "^10.1.33",
"react": "^16.4.2",
"react": "^18.1.0",
"react-dnd": "^5.0.0",
"react-dnd-html5-backend": "^5.0.1",
"react-dom": "^16.4.2",
"react-dom": "^18.1.0",
"react-hammerjs": "^1.0.1",
"react-redux": "^8.0.1",
"recompose": "^0.28.2",
Expand Down
4 changes: 3 additions & 1 deletion packages/@tandem-ui/designer/src/components/root/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ import {
} from "../../state";
import { Chrome } from "./chrome.pc";

console.log("DDASSS");

export const RootComponent = () => {
const root = useSelector((v) => v) as RootState;
const dispatch = useDispatch();

// TODO - add loading state here
if (root.readyType === RootReadyType.LOADING) {
console.log("DDA");
return null;
}

Expand Down Expand Up @@ -65,6 +68,5 @@ export const RootComponent = () => {
/>
);
}

return content;
};
2 changes: 1 addition & 1 deletion packages/@tandem-ui/designer/webpack/base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = (createConfig) =>
devtool: false,
mode: "development",
output: {
path: resolve(__dirname, "..", "lib", "front-end"),
path: resolve(__dirname, "..", "lib"),
libraryTarget: "umd",
filename: "[name].bundle.js",
},
Expand Down
8 changes: 4 additions & 4 deletions packages/@tandem-ui/workspace-client/src/paperclip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RPCClientAdapter } from "@paperclip-ui/common";
import { VirtNodeSource } from "@paperclip-ui/utils";
import {
inspectNodeStyleChannel,
loadInsertableNodesChannel,
// loadInsertableNodesChannel,
revealNodeSourceByIdChannel,
revealNodeSourceChannel,
} from "@tandem-ui/workspace-core";
Expand All @@ -13,7 +13,7 @@ type LoadInsertableNodesOptions = {

export class PaperclipManager {
private _inspectNodeStyle: ReturnType<typeof inspectNodeStyleChannel>;
private _loadInsertableNodes: ReturnType<typeof loadInsertableNodesChannel>;
// private _loadInsertableNodes: ReturnType<typeof loadInsertableNodesChannel>;
private _revealSource: ReturnType<typeof revealNodeSourceChannel>;
private _revealBySourceId: ReturnType<typeof revealNodeSourceByIdChannel>;

Expand All @@ -22,7 +22,7 @@ export class PaperclipManager {

constructor(client: RPCClientAdapter) {
this._inspectNodeStyle = inspectNodeStyleChannel(client);
this._loadInsertableNodes = loadInsertableNodesChannel(client);
// this._loadInsertableNodes = loadInsertableNodesChannel(client);
this._revealSource = revealNodeSourceChannel(client);
this._revealBySourceId = revealNodeSourceByIdChannel(client);
}
Expand All @@ -36,7 +36,7 @@ export class PaperclipManager {
}

async loadInsertableNodes({ activeUri }: LoadInsertableNodesOptions) {
return await this._loadInsertableNodes.call({ activeUri });
// return await this._loadInsertableNodes.call({ activeUri });
}

/**
Expand Down
1 change: 0 additions & 1 deletion packages/@tandem-ui/workspace-client/src/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { RPCClientAdapter } from "@paperclip-ui/common";
import {
getAllPaperclipFilesChannel,
openProjectChannel,
popoutWindowChannel,
} from "@tandem-ui/workspace-core";
import { EditorClient } from "@paperclip-ui/editor-engine/lib/client/client";
import { PCDocument } from "@paperclip-ui/editor-engine/lib/client/documents";
Expand Down
5 changes: 0 additions & 5 deletions packages/@tandem-ui/workspace-core/src/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ export const revealNodeSourceByIdChannel = remoteChannel<string, void>(
"revealNodeSourceByIdChannel"
);

export const loadInsertableNodesChannel = remoteChannel<
{ activeUri: string },
AvailableNode[]
>("loadInsertableNodesChannel");

export const openProjectChannel = remoteChannel<
{ uri?: string; branch?: string; id?: string },
{ id: string; directoryPath: string; directoryUri: string }
Expand Down
1 change: 0 additions & 1 deletion packages/@tandem-ui/workspace/src/controllers/designer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as fs from "fs";

const DESIGNER_DIST_PATH = path.join(
path.dirname(require.resolve("@tandem-ui/designer")),
"..",
"lib"
);

Expand Down
166 changes: 0 additions & 166 deletions packages/@tandem-ui/workspace/src/controllers/paperclip.ts

This file was deleted.

Loading

0 comments on commit 9eebdab

Please sign in to comment.