Coder Social home page Coder Social logo

wyeworks / elixir_console Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 8.0 1.26 MB

Elixir Web Console

Home Page: https://elixirconsole.wyeworks.com/

License: MIT License

Elixir 89.76% CSS 0.67% JavaScript 2.86% HTML 4.70% Procfile 0.01% Dockerfile 2.00%
elixir hacktoberfest

elixir_console's People

Contributors

dependabot[bot] avatar eldano avatar grzuy avatar iaguirre88 avatar javierm42 avatar jmbejar avatar leticiaerrandonea avatar lubien avatar matiaswilner avatar nathanl avatar nicocirio avatar noelia-lencina 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  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

elixir_console's Issues

This project has some security issues

I can run unsafe commands like File.write!/2, File.ls/1, File.read!/1, and I can read environment variables that contain secrets with System.get_env/1. I can run arbitrary commands on the system with System.cmd/2. I can also shut down the application with System.halt/1.

I think this is a really cool project, but you really need a sandbox for this to be safe to run.

Suggest commands on key tab

When pressing tab, suggest commands. Initially, let's focus on making it work with previous bindings.

If input is empty and I press tab, I should see a list of all bindings.
If input is not empty and I press tab, I should see a list of all matching bindings

Crash trying to enter commands

This happens when I try to enter commands:

[error] GenServer #PID<0.15711.0> terminating
** (UndefinedFunctionError) function ElixirConsoleWeb.ConsoleLive.handle_event/3 is undefined or private

Moving the "handle_event" method (and some supporting code) from "command_input_component.ex" to console_live.ex fixes the problem. Perhaps you didn't finish a recent refactoring?

All current tests pass running mix test. I use MacOS 10.15.3, Erlang 22.2.7, Elixir 1.9.1.

Compiler error

Enum.reduce([1,2,3,4,5], &Kernel.+/2) should work but doesn't.

invalid args for &, expected an expression in the format of &Mod.fun/arity, &local/arity or a capture containing at least one arg
ument as &1

Even the error message says it's allowed. And it indeed works in IEx.

Display bindings values

We can use some space next to the console to display the list of current bindings and their value.

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.