Giter VIP home page Giter VIP logo

ooui's Issues

System.TypeLoadException: 'Method 'QuitApplication' in type 'OouiPlatformServices' from assembly 'Ooui.Forms, Version=0.5.123.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.'

I followed almost all the instructions on https://montemagno.com/building-a-xaml-xamarin-forms-asp-net-website/

added the lines

app.UseOoui();
Xamarin.Forms.Forms.Init();

But got this exception on Xamarin Forms Init():

System.TypeLoadException: 'Method 'QuitApplication' in type 'OouiPlatformServices' from assembly 'Ooui.Forms, Version=0.5.123.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.'

Xamarin.Forms   2.5.0.121934
Ooui    	0.5.123
Ooui.AspNetCore 0.5.123
Ooui.Forms    	0.5.123

Improve font measuring

Use real data about character sizes (at least ASCII) to measure strings more accurately.

TypeScript or JQuery

Please consider removing any dependency on jquery and/or implementation using TypeScript to provider better developer experience with strong typing, intelligence and other features that TypeScript provides such ECMA script compliance and NULL check as the project size increase this will also ease any pain with regards to testing and introducing any issues.

Time for Visual Studio templates

Hi,
Ooui sounds amazing.
Would be great if you could provide Visual Studio templates that implement the following:

  • Xamarin.Forms templates with an addition ASP.NET Core Ooui client!
  • ASP.NET Core Ooui client as a class library to be added to an existing Xamarin.Forms PCL project

You guys don't really get it, but Ooui is a total deal changer.

Is ListView implemeted?

Hello! I'm new to this wonderful project and I'm playing around with it to see what works and what does not.

For now, I've put this XAML:

<ListView ItemsSource="{Binding People}" >
    <ListView.ItemTemplate>
        <DataTemplate>
            <TextCell Text="{Binding Name}" />
        </DataTemplate>
    </ListView.ItemTemplate>
</ListView>

But nothing is rendered in the web browser.

I think that ListView isn't supported yet. Otherwise, how do I use it? Thank you!

Support main page template

Currently the main page is hardcoded as a string.

Allow the user to override it to control their own libraries, add analytics, etc.

Persistent (and recoverable) Sessions

Please consider using Dependency Injection for Session Management, using DistributedCaching, Redis or other would allow Sessions to be persisted and recovered should a node in a webcluster fail.

Support Canvas and Context2d

I want to do some drawing!

  • Canvas
  • Save return values from Calls
  • Context2d
  • Save drawing calls
  • Clear with reset

Select element not implemented fully?

Hi, really enjoying the project, great idea.

I'm trying to use a select element, but I'm not sure it's fully implemented. I couldn't find an Option type, so I had to define one:

public class Option : Element
{
	public Option()
		: base("option")
	{
	}

	string _value = "";
	public string Value 
	{
		get => _value;
		set => SetProperty(ref _value, value ?? "", "value");
	}
}

but then I couldn't find a way to get the SelectedIndex of the current element from the Select in the ChangedHandler, and the Selects Value property is null, even with an item selected . Am I doing it wrong?

Socket Closes when navigating away and back to page

In Chrome

1.) http://soundbitefm.azurewebsites.net/
2.) Click on podcast art
3.) hit back in browers
4.) white screen

Web socket created
ooui.js:46 WebSocket connection to 'ws://soundbitefm.azurewebsites.net/ooui.ws?id=ec584595b3b64d00a35977d6aaf659aa&w=1920&h=949' failed: Error during WebSocket handshake: Unexpected response code: 400
ooui @ ooui.js:46
ooui.js:54 Web socket error Event
(anonymous) @ ooui.js:54
ooui.js:58 Web socket close CloseEvent
(anonymous) @ ooui.js:58
ooui.js:110 WebSocket is already in CLOSING or CLOSED state.

can we use it to replace other front end web technologies?

Just a question, I know its in preview mode still, but wanted to ask about the road map as we are using c# and xaml to create a basic web app button counter, in future would we be able to use these 2 technologies to create a complete fully functional web app just like we can in angular, react e.t.c ? or will we still need to learn html , css and JS?

Match Page size to the browser

Xamarin Forms needs to know the size of the rectangle to paint into. Right now it's hard coded as 640x480. It should instead use the actual browser size.

Reconnect client when disconnected

This happens quite often on mobile devices.

A notice should be displayed if a connection can't be established.

  • Detect disconnect/failure
  • Reload page after disconnect

Add Default Styling for Buttons

Currently buttons require additional styling to look right on the screen. If you don't explicitly set the bootstrap styles or the HeightRequest = 30 (give or take a little with the number 30) the button will be smaller than the text and not look correctly.

Current Button Behavior:
image

XAML:

<Button />

Recommended Fix:
Since it has been discussed in #32 that we are going to take the dependency of Bootstrap I think it would be appropriate to apply the styles to the Button Renderer.

This is something I can take and submit a PR for

location.reload() when WebSocket closed disrupts user experience

I tried to simulate a bad network connection by disabling my network adapter. This caused - in FF 57 and Chrome 62 - the close event for the WebSocket to be called.

Is this behavior by design? I haven't tested yet how the mobile versions of FF and Chrome handle network losses on mobile devices and the behavior might be different there.

Parse HTML to create Element

This would be a slow but convenient way to generate elements.

var e = Element.Parse ("<div><label id='l' class='w' for='i'/><input id='i' /></div>");
e["l"].Text = "The Answer";
((Input)e["i"]).Value = "42";

Syntax will be limited to XHTML. Need to preserve UserIds. Need to map HTML names to C#.

Publish JSON to enable web apis

Need to add a PublishJson function to UI so that apps can work as api hosts.

Something like:

PublishJson (new Person ());
PublishJson (() => new Person ());

Switch does not fire change event

It seems as though the node.addEventListener(m.k... event is not being triggered by the bootstrap.toggle?
If the code is changed to use jquery $(node).on(m.k... it works as expected.
Is this a known issue or am I missing something?

cannot build from CLI or VS Code

First of all, thank you for this beautiful little piece of technology!

When I try to compile and run the sample using the VS Code or using the dotnet cli directly

dotnet run --project Samples/Samples.csproj

I get the below error.

C:\Users\bitbonk.nuget\packages\xamarin.forms\2.4.0.38779\build\netstandard1.0\Xamarin.Forms.targets(51,3): error MSB4062: The "Xamarin.Forms.Build.Tasks.FixedCreateCSharpManifestResourceName" task could not be loaded from the assembly C:\Users\bitbonk.nuget\packages\xamarin.forms\2.4.0.38779\build\netstandard1.0\Xamarin.Forms.Build.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [c:\temp\Ooui\Ooui.Forms\Ooui.Forms.csproj]
The build failed. Please fix the build errors and run again.

When I build and run from Visual Studio 2017, everything works fine.

This issue might be related.
Also: this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.