Giter Club home page Giter Club logo

ele-web's Introduction

Ele Web

This is the web client for Ele. It's built using Polymer and hosted on (and developed by) Divshot. Ele is an in-browser editor for Web Components.

Local Development

Ele is separated into two pieces: the static front-end web client (this repo) and ele-api, the Node.js back-end. You'll need both repositiories, Node.js, and MongoDB to get local development up and running.

Cloning

mkdir ele && cd ele
git clone https://github.com/divshot/ele-web.git
git clone https://github.com/divshot/ele-api.git

API Up and Running

You should follow the instructions in the API README to get it up and running. Once that's done, head back here to get the web client properly set up.

Running the Web Client

Divshot allows for client-side environment variables. To develop locally, you'll need to create a .env.json file that looks like this:

{
  "API_ORIGIN":"http://url.of.your.api.server"
}

Where API_ORIGIN is set to whatever host and port on which you're running the Node.js API (for instance, http://localhost:3000).

Then you just need to install the bower components and you're up and running:

bower install
npm install -g divshot-cli
divshot server -p 4000

That's it! You should now be able to visit http://localhost:4000 and see the Ele landing page.

ele-web's People

Contributors

collin avatar fastdivision avatar germ13 avatar mbleigh 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  avatar  avatar  avatar  avatar  avatar

Watchers

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

ele-web's Issues

no worky in Safari Version 8.0.2 (10600.2.5)

hey guys... you may or may not know but i just get a blank screen in the above build of safari.

I get a console error "TypeError: Attempted to assign to readonly property." in patches-mdv.js:57

Are you going to support Polymer.Dart too?

Ele is awesome. It's like a JSFiddle for Polymer Elements. Are you going to support Polymer.Dart scripts? Dart is very powerful and much better than javascript for writing Polymer elements, please add support for it.

Publish a New Version

Note: See divshot/ele-api#5 for specifics of the API calls for this.

Devs should be able to click a button to open a dialog to publish a new version. When they click the button, they should be prompted for a version number (and shown the latest published version number as a point of reference).

Submitting the new version successfully should result in a confirmation dialog with links to the public page URL for the new version as well as a link to the Gist (at the correct SHA) for the new version.

Website if offline

Website is offline No cached version of this page is available.

Sorry, don't know where else to report.

Dashless element name error duplicates the preview iframe

We should catch the error:

Uncaught SyntaxError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'sarcasm'. The type name is invalid. 

And tell beginners they need a dash in their element name. Also, don't duplicate the iframe on an error.

Final style touches

  • Floating card style, like the editor
  • Tabs to switch between docs and source instead of just piling them up
  • Style loading screen to have a nice spinner and some color (maybe transitions too?)

Allow for picking a version in public preview

Should be able to switch between versions in the public preview (defaulting to the most recent released version unless there are no releases in which case defaulting to dev).

Simple dropdown listing versions + "latest" + "dev" is probably sufficient for this.

Version should be reflected in the URL, using replaceState if navigated to user/element-name but pushState if switching between versions.

Access to User Written Custom Elements

While ele is great for getting your feet wet, when you want to develop something more complex that depends on previously written lower level user ele custom elements - there doesn't seem to be a way to reference/import them. Tried a bunch of paths for imports and nothing worked. Am I missing something or is this something that needs to be added, like:

Can't login

When i try to login with github account i get am "access denied" message.

Periodic saving of content of an element

Should have a rate limited autosave (no more than once every X seconds, maybe start with 15) that does:

  1. PUT /:username/:package/:package.html with the left box's contents
  2. PUT /:username/:package/demo.html with the right box's contents

Should display in the top bar a "Last saved XXX"

Newer polymer version

I noticed on ele.io that polymer 0.3 is used, but 0.5.5 is the latest.

Any plans on upgrading?

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.