Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add Background Tool, Pointer Tool, Minio Support #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

WIP: Add Background Tool, Pointer Tool, Minio Support #21

wants to merge 3 commits into from

Conversation

654wak654
Copy link

@654wak654 654wak654 commented Mar 26, 2020

When merged this pull request will:

  • Add a background tool (Shortcut: b): Allows you to upload an image for the background of the canvas.

    • Some setting to move/scale the background image?
  • Add a pointer tool (Shortcut: f): Allows users to point at things for others to see.

    • Everyone should get their own pointer.
    • Showing pointers to new users should be done in a better way.
  • Add support for minio object storage.

    • Currently it replaces all filesystem use, but filesystem use should be brought back, and minio made an optional thing.
    • Minio credentials should be read from an environment variable instead of js code itself.

Other TODOs:

  • Should probably add the vscode and idea folders to .gitignore.
  • Clean back the README
  • Use IIFEs instead of js modules.

- Pointer (Shortcut: `f`): Allows users to point at things for others to see.

#### Minio suport:
- Instead of writing to the filesystem, the server now saves boards to a minio instance. The configuration is inside [server/minio.js](server/minio.js).
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want the changes to the README

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, it's in my TODO list to just remove these.

@@ -0,0 +1,2 @@
# Default ignored files
/workspace.xml
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add .idea and .vscode to the gitignore instead of checking them in.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, in the TODO list.

"shortcut": "b",
"draw": draw,
"onstart": onstart
});
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about that tool. It could quickly get out of hands with many users...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's not something for public boards. Maybe it could be enabled when creating a board? Or even in the server?

"onquit": () => showPointer(false, true),
"mouseCursor": "none",
"stylesheet": "tools/pointer/pointer.css"
});
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tool seems very useful ! This is the one I think we need the most. But it should have one pointer per user.

catchCallback(err, false);
}
accept(boardData);
});
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could have a simple Persistence interface, that just asynchronously writes or read a value for a key, and have the backend (file or minio) chosen using an environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants