Closed chadwhitacre closed 3 years ago
Alright, so where is our client-side routing implemented?
client/index.js
, looks like ...
I made a client/dashboard/PathwaysView.html
file, and wired it up in index.js
, but it's not available through the web. Our Gulp asset pipeline is not copying it over into public/dashboard/
as I would expect. How do I tell Gulp to do that?
Looks like templates
is the task responsible for copying the file over.
Why isn't it?
Hrm, it's there now. :-/
:shrug:
Alright, there's a start, anyway. I plan to pick up with this on Monday, hopefully at the Sprout office! :-)
Lookin' good, @whit537. Adding a couple commits for housekeeping.
Cool, thanks @MatthewVita. :-)
Rebased on master now that #357 has landed. Previous head was d4458add7a311982b4200903705de039782aa460.
http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/simple
Looks about right:
I am working on installing angular-drag-and-drop-lists
into our application.
My first step is to get the code into our public/vendors.min.js
.
I've added the following to our package.json
:
"angular-drag-and-drop-lists": "marceljuenemann/angular-drag-and-drop-lists#822552b2b6fe28fa7675ec434c769fa96ba5e154",
I've run npm install
and npm ls
shows angular-drag-and-drop-lists
to be installed:
$ npm ls|grep angular
├── angular@1.3.14
├── angular-cookie@1.0.0 (git+https://github.com/ivpusic/angular-cookie.git#67eb8455445dfbf38d23f17e3a0b9af773b03d77)
├── angular-drag-and-drop-lists@1.3.0 (git+https://github.com/marceljuenemann/angular-drag-and-drop-lists.git#822552b2b6fe28fa7675ec434c769fa96ba5e154)
├── angular-filter@0.5.4
├── angular-route@1.3.14
$
From angular-drag-and-drop-lists
' package.json
, I expect the angular-drag-and-drop-lists.js
file to end up in our node_modules
, and for gulp to include it from there when creating vendors.min.js
.
Looks like I have to add it to the gulpfile ...
Yay! :-)
I had to rerun gulp. The gulp watcher wasn't apparently smart enough?
Now I'm working on getting the simple demo installed into the stub pathways page.
29a6a676df4709c0b61cdd1ecfd4ea75084e82b3 is giving me the pre
with the computed dummy data, but I'm not getting the ul
items.
So Angular has some kinda scopes, right? And the DOM has to match or be scoped or whatever with the controller?
modelAsJson
appears to be in scope in the DOM.
Boom!
Okay! Ready to start getting the drag/drop itself actually working. :-)
Alright! Where the heck is the drag-n-drop?
What is click supposed to do and why isn't it doing it in my case?
The demo has a click event listed in the DOM inspector:
Ours doesn't:
Alright, how the heck do I debug this?
Let's read the docs ...
BTW, what's our browser support target, @MatthewVita @dmtroyer @timothyfcook? I'm not seeing an answer on http://cityasacampus.org/ ...
dnd-draggable
Required attribute. The value has to be an object that represents the data of the element. In case of a drag and drop operation the object will be serialized and unserialized on the receiving end.
https://github.com/marceljuenemann/angular-drag-and-drop-lists#dnd-draggable-directive
The value has to be an object that represents the data of the element.
Why is this item
in the demo? Do I have some plumbing wrong?
Why is this
item
in the demo?
Probably from the item in list
ng-repeat
?
... which I believe is working because {{item.label}}
appears to be working.
More to the point: the demo has drag{start,end}
events, and we don't:
The (program):34
links are unhelpful. They go to:
chrome-devtools://devtools/bundled/inspector.html?&remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@deadbeef/&can_dock=true&dockSide=undocked
And that's an empty page:
<!--
* Copyright 2014 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
-->
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Security-Policy" content="object-src 'none'; script-src 'self' 'unsafe-eval' https://chrome-devtools-frontend.appspot.com">
<link rel="stylesheet" type="text/css" href="inspector.css">
<script type="text/javascript" src="inspector.js"></script>
</head>
<body class="undocked" id="-blink-dev-tools"></body>
</html>
Is Angular not running properly on this page?
I don't see any Angular-y events on the html
element (I'm now using the Firefox web inspector since Chrome's events helper was unhelpful):
I do see some on the demo:
Well, I guess we bundle Angular into vendors.min.js
.
My hunch is that @MatthewVita and/or @dmtroyer could point me in the right direction pretty quickly here.
Barring that, I suppose it's time to go spelunking in Angular ...
I'm trying to get unminified Angular into vendors.min.js
. I modified our gulpfile.js
to reference the angular.js
instead of angular.min.js
. I double-checked that angular.js
contains the unminified source. I terminated gulp default
and ran it again. I removed vendors.min.js
and reran gulp default
. I'm still seeing minified Angular in vendors.min.js
. Ooh ... I guess we are minifying it ourselves even if we're not using their pre-minified version as input ...
Yeah, there we go ...
Closes #201.
To-do
Based on https://github.com/saxifrage/cityasacampus/pull/364#issuecomment-162681923.
WIP on #377
topicsgrids under "AllTopicsGrids"topicgrid by clicking on it under "AllTopicsGrids""$Topic""$Grid"WIP on #384
topicsgrids under "AllTopicsGrids" (drag to garbage can? little clickyx
or trashcan when loaded?)topicgrid"$Topic""$Grid"TopicsGrids" and"$Topic""$Grid" alphabetizedWIP on #385
Bumped (https://github.com/saxifrage/cityasacampus/pull/364#issuecomment-166408512)
/:organizer/map
/:organizer/map/preview
(admin-only)