Code Monkey home page Code Monkey logo

esri-redux's People

Contributors

dependabot[bot] avatar robert-w avatar swampguzzler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

esri-redux's Issues

Add a branch without Flow called master-noflow

In case Flow seems like a little much to adopt or it is a small project and the team does not have time to learn it,

  • - Remove Declarations
  • - Remove Tooling & Update .babelrc
  • - Remove Flow from tests
  • - Remove Remove Types

Live link not working

For me, the live link hangs like this:

image

With the following error in the console:

Refused to load the script 'https://www.arcgis.com/sharing/rest/portals/self?f=json&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback' because it violates the following Content Security Policy directive: "script-src 'self' js.arcgis.com 'unsafe-inline' 'unsafe-eval'".

Then after I've left the window and return I see:

image

With an additional error in the console:

s._attach @ init.js:396
init.js:356 dojo.io.script error k {message: "Timeout exceeded", response: Object, log: undefined, stack: "Error: Timeout exceeded↵    at k [as constructor] … at f (https://js.arcgis.com/4.0/init.js:178:388)"}

Then when I enter my credentials to view the map I see an additional error:

Uncaught TypeError: Cannot read property 'lods' of null
    at Object.getZoom (VectorTileLayerView2D.js:8)
    at Object.<anonymous> (VectorTileLayerView2D.js:5)
    at d (init.js:77)
    at h.isActive.c [as callback] (init.js:77)
    at h._dispatch (init.js:83)
    at c (init.js:90)
    at MutationObserver.observe.attributes (init.js:91)

This sounds vaguely like it might be related to vector tile basemaps having been updated moved recently?

Also couldn't hurt to bump to a more recent version of 4.x.

General Cleanup and Dockerized Version

General Cleanup

  • Update Dependencies to latest, and look into using Webpack 2 since it is almost ready
  • Cleanup & remove old repos
  • Not everyone is ready for Flow, so make master not use flow and create a master-flow branch that users can grab if they want flow, this means I can drop master-noflow since it will become the new master.
  • Look into using Pug templates again, so that CSP, Meta Info, Title, JSAPI versions, and other things can be more easily configured.

Docker Version

Use docker with docker-compose to create a branch that runs entirely in a docker container. Potential additions could include:

  • Documentation on installation, running, and cleanup.
  • Index file served by express with locals defined in an env file read by docker-compose
  • Build process to pass all built files back to host machine via volumes, so map all generated code back to the host machine so it can be copied and pasted for deployment.
  • Have a production build able to run in docker so there is a way to deploy the container to a container service or even copy the src out and deploy on heroku or something similar
  • Setup server rendering or even take the easy way out, write a script that fetches the html file after it is loaded and idle and save it to a local public folder. This would allow to prerender esri tiles and many other components easily. (When the container is running, run a build script that uses a simple get request on the index.html file and saves it to the build folder).

NOTE: Use docker-mongoose as an idea for a micro service oriented version of this, which would allow for extremely flexible team development and a simple way to enforce testing and standards.

If interested in contributing, please see Project 1. There will be a new branch soon called new-master. Checkout and submit PR's there.

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.