misterjames / collidr Goto Github PK
View Code? Open in Web Editor NEWAn open source project leveraging SignalR to make real time forms easy.
License: Apache License 2.0
An open source project leveraging SignalR to make real time forms easy.
License: Apache License 2.0
Likely something like just logging to the console would be fine.
These just need to be exposed as events.
If you start up two browsers and navigate to the same entity you can reproduce this.
In browser A, enter a field. In browser B you see that field A is being edited. If you close browser A at this point, browser B's tooltip doesn't disappear.
Need to expose a disconnect event in CollidR that the formatter listens to and can process departed editors correctly.
Maybe you can use Hub.Context.User instead of HttpContext.Current.User. ?
The default formatter must deal with exit field correctly.
Can leverage reflection/generics/etc. to find the name of the model and possibly the ID based on primary key, or have it provided through the method call.
This would allow for auto generation of the following:
<script src="~/Scripts/CollidR.js"></script>
<script type="text/javascript">
var collidR = new $.collidR(
{
entityType: "MyNameSpace.Models.Type",
entityId: @Model.PersonId
})
.registerClient();
</script>
With a line of code like:
@Html.RegisterCollidR<Person>( p => p.PersonID)
This should be a pluggable toast notification from the bottom.
Example:
This isn't currently happening, need a way to queue and playback events on the server when someone joins an entity, and clear when the room is cleared. This will be a little fuzzy, but need to work through this.
The formatter should change the alert pane red when an edit happens.
Should be able to get things going as much as possible without the user hand-bombing stuff.
Should consider things like a raw CollidR install and a CollidR.Mvc install.
Maybe could monitor the connection ID, then:
string connectionId = Context.ConnectionId;
var username = string.Format("{0}|(connection:{1})", Context.User.Identity.Name, connectionId);
I do not know whether to be interesting, but you can watch here: https://github.com/gplesz/CollidR
(I also requested to send any pull.)
Current implementation only supports integer based primary keys for objects. Consider adding support for other primary key types.
Need some PS work in place to build when we have a release branch.
The sample should be set up to use WebActivator. This will lay the footwork for the NuGet package, which should work without having to do much to get it to run (though, perhaps the package should also include a read me to explain).
Currently we are having to copy edits to the javascript files in multiple places. Need to add some build scripts to do this automatically.
When user "A" starts editing a record, give the option to other users to shadow changes for user "A".
Example:
General clean up. Will need to think about auto merging this as a build by-product later on...
Hi, any updates for ASP MVC core and models nested collections
Basically just extend the built in MVC Scaffolder to include this section at the bottom of the Edit view:
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
<script src="~/Scripts/jquery.signalR-1.1.3.js"></script>
<script src="~/Scripts/bootstrap.js"></script>
@(Html.RegisterCollidRFor(p => p.PersonId))
}
Get the sample running inside VS2013 instead of VS2012
Need the following implemented:
Going to be using GitFlow.
Must implement proper post-departure formatting when an editor disconnects.
Related to: #3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.