I think I will just look at your and James' Elm code and write a sortable 
list from scratch.  Avoiding all this webpack/node palaver is one of the 
reasons I learnt Elm in the first place.

Thanks

Ivan


On Wednesday, September 7, 2016 at 2:34:54 PM UTC+1, Ivan Uemlianin wrote:
>
> Updating node fixed it, thanks.
> Now I need to work out how to serve on 0.0.0.0 instead of localhost ...
>
> Will report back once everything's up.
>
> Ivan
>
>
> On Wednesday, September 7, 2016 at 2:17:37 PM UTC+1, Sergey Skrynnikov 
> wrote:
>>
>> Sorry for not linking this, you should be able to join the team here 
>> http://elmlang.herokuapp.com/
>> As a first guess - updating your node.js version could help (I just tried 
>> installing everything from scratch and it worked on node 5.0.0 for me)
>>
>> среда, 7 сентября 2016 г., 16:12:17 UTC+3 пользователь Ivan Uemlianin 
>> написал:
>>>
>>> I don't think I can, no, I'm not "currently associated with that team".
>>>
>>> Ivan
>>>
>>>
>>> On Wednesday, September 7, 2016 at 2:04:20 PM UTC+1, Sergey Skrynnikov 
>>> wrote:
>>>>
>>>> Interesting, I'll look into it. Could you contact me on the elm slack (
>>>> https://elmlang.slack.com)? (i'm @sergey.skrynnikov)
>>>>
>>>> среда, 7 сентября 2016 г., 15:55:28 UTC+3 пользователь Ivan Uemlianin 
>>>> написал:
>>>>>
>>>>> Dear Sergey
>>>>>
>>>>> I get errors if I run this with npm (I can run with the reactor but 
>>>>> there's no styling, and dnd doesn't happen).  Sample of top errors below. 
>>>>>  
>>>>> What am I missing? (I have no experience with webpack or npm).
>>>>>
>>>>>
>>>>> [1] ERROR in ./src/Main.elm
>>>>> [1] Module build failed: TypeError: Object function Object() { [native 
>>>>> code] } has no method 'assign'
>>>>> [1]     at Object.getOptions 
>>>>> (/home/rokiteer/elephant-guide/node_modules/elm-webpack-loader/index.js:
>>>>> 20:17)
>>>>> [1]     at Object.module.exports 
>>>>> (/home/rokiteer/elephant-guide/node_modules/elm-webpack-loader/index
>>>>> .js:40:28)
>>>>> [1]  @ ./src/index.js 6:10-29
>>>>> [1]
>>>>> [1] ERROR in 
>>>>> ./~/css-loader!./~/postcss-loader!./~/sass-loader!./src/styles/main.scss
>>>>> [1] Module build failed: ReferenceError: Promise is not defined
>>>>> ...
>>>>>
>>>>> Thanks
>>>>>
>>>>> Ivan
>>>>>
>>>>>
>>>>> On Wednesday, September 7, 2016 at 1:42:11 PM UTC+1, Sergey Skrynnikov 
>>>>> wrote:
>>>>>>
>>>>>> I've made a table with drag/drop reordering of rows with a bit of a 
>>>>>> different approach, it gets the row positions through a port so that in 
>>>>>> can 
>>>>>> calculate the drop target based on the mouse position.
>>>>>> https://github.com/IwalkAlone/elephant-guide/ - main logic in 
>>>>>> src/components/deck/update.elm
>>>>>> James's approach seems interesting too, I'll give it a look as well!
>>>>>>
>>>>>>
>>>>>> среда, 7 сентября 2016 г., 15:03:20 UTC+3 пользователь Ivan Uemlianin 
>>>>>> написал:
>>>>>>>
>>>>>>> Dear All
>>>>>>>
>>>>>>> I have a couple of GUIs I'd like to write in Elm.  One is done and 
>>>>>>> working well.  The other is
>>>>>>> currently written (by me) with React and included a drag-and-drop 
>>>>>>> sortable list (i.e., list items
>>>>>>> can be dragged to new positions in the list).
>>>>>>>
>>>>>>> What is the current status of drag-and-drop in Elm for html elements?
>>>>>>>
>>>>>>> I have read:
>>>>>>>
>>>>>>> - this thread, which seems to be about graphics elements only:
>>>>>>>
>>>>>>>     https://groups.google.com/forum/#!topic/elm-discuss/wNKPqj8P2K8
>>>>>>>
>>>>>>> - this github repo, which I haven't been able to get working (have 
>>>>>>> raised an issue):
>>>>>>>
>>>>>>>     https://github.com/reactivetype/elm-dragNdrop
>>>>>>>
>>>>>>> Is there a library or module I can use as reference?  If not, what 
>>>>>>> would be the chalenges of
>>>>>>> implementing this?  (If I could have both these GUIs in Elm instead 
>>>>>>> of Javascript that would mean a
>>>>>>> lot to me:)
>>>>>>>
>>>>>>> With thanks and best wishes
>>>>>>>
>>>>>>> Ivan
>>>>>>>
>>>>>>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to