nitrogen / nitrogenproject.com Goto Github PK
View Code? Open in Web Editor NEWSource files for the NitrogenProject.com website.
Home Page: http://nitrogenproject.com
Source files for the NitrogenProject.com website.
Home Page: http://nitrogenproject.com
Hi Jesse,
I was testing the demos with the new changes and I had this error:
=INFO REPORT==== 29-Sep-2014::17:35:26 ===
{error,error,function_clause,
[{string,to_lower,[undefined],[{file,"string.erl"},{line,492}]},
{demos_textbox_autocomplete,'-autocomplete_enter_event/2-lc$^0/1-0-',2,
[{file,"src/demos/demos_textbox_autocomplete.erl"},{line,38}]},
{demos_textbox_autocomplete,autocomplete_enter_event,2,
[{file,"src/demos/demos_textbox_autocomplete.erl"},{line,36}]},
{element_textbox_autocomplete,event,1,
[{file,"src/elements/forms/element_textbox_autocomplete.erl"},
{line,59}]},
{wf_core,run_websocket,1,[{file,"src/wf_core.erl"},{line,72}]},
{nitrogen,ws_message_catched,1,[{file,"src/nitrogen.erl"},{line,60}]},
{nitrogen,ws_message,3,[{file,"src/nitrogen.erl"},{line,51}]},
{simple_bridge_websocket,process_frames,6,
[{file,"src/simple_bridge_websocket.erl"},{line,261}]}]}
I tried to find a solution, but as you can see, I put this issue here because I am not sure if it is a problem of simple_bridge (websocket), nitrogen_core (element or core) or even a problem with the demo (but in this case it worked before). So... at least I report :(
Another thing I wanted to ask is: What do you think about upgrading jquery, jquery-ui, jquery-mobile and jquery-fileupload? I have been testing some demos with new versions of jquery and ui and I think would be a good idea for the new version. Of course, I propose it thinking in helping you (more than with sigma_sql :) Soon, I will upload to my repos what I did, it took me too long becasue I changed it totally and I hadn't much time), because I think you have enough work right now.
Well, I think I wrote enough, I always go on and on.
Thanks.
Don't know if this is the right channel but wanted to note the tutorial could have
a note on the my_element.erl example about suggesting to declare event/1 to export.
New erlang and nitrogen users will get stuck on this...
The process of generating newcookie value at times results in non-sanitized values that cause WAF, in this case ModSecurity, to block users by detecting it as an SQL Injection.
ModSecurity: Warning. detected SQLi using libinjection. [file "owasp-modsecurity-crs/rules/REQUEST-942-APPLICATION-ATTACK-SQLI.conf"] [line "45"] [id "942100"] [rev ""] [msg "SQL Injection Attack Detected via libinjection"] [data "Matched Data:1c found within REQUEST_COOKIES:newcookie: 9-v_3SWDUTnZw-K8zJ2r6fH--KAaenS6hDvFkNPYZDjxZioAbU5L88xmV__SO4PeNygvkhcApIhcDA5r1iCjFH8OEqLzuMOVziOYJfRBSic85Sqm01ClC4uts-0QdUsmfrLLiw"
Looking at wf_pickle:pickle/1
which is used to generate the newcookie values, the replacement of "+" with "-" is the likely cause of this issue.
We need to have mobile demonstrations. Currently there are none.
My enhancement for the nitrogen project reads its configuration parameters from /etc/app.config.
Since the start-up mechanism differs in NitrogenProject, I'm not able to add a demo-page without altering the start-up mechanism.
How do we proceed?
greetings
Steffen
Hi, I was running the "make test" target to see if a change I made was passing.
However I found that the test for multidropdownblank was failing.
The function returns [[]] instead of the expected [].
test_multidropdownblank() ->
{
fun() -> wf:set_multiple(multiple, []) end,
- fun() -> wf:qs(multiple) == [] end
+ fun() -> wf:qs(multiple) == [[]] end
}.
https://github.com/nitrogen/NitrogenProject.com/blob/master/src/tests/tests_simplecontrols.erl#L75
The question now becomes - what is wf:qs supposed to return if there is no result?
It seems that:
Could you confirm my understanding?
Kind regards,
Fabian
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.