Code Monkey home page Code Monkey logo

atomic_assets's People

Contributors

bbrock25 avatar dhumphreys avatar mrjaco12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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

Forkers

dhumphreys

atomic_assets's Issues

Component Generator Bug

In lib/rails/generators/atomic_assets/templates/component.rb line 1 references @component.component_name but is never set in the generator.

asset generator has atomic_cms specific code in it

We should migrate most of the methods out of the templates/component.rb file and push that logic over to the CMS specific generators.

  def edit
    rtn = cms_fields(field_types)
    rtn << h.component(<%= ":#{@component.key}" %>, field_previews).render
    rtn.html_safe
  end

  protected

  def field_previews
    {
      header: "{{preview.header}}",
      content: markdown_preview('preview.content')
    }
  end

  def field_types
    {
      header: { field_type: "text" },
      content: { field_type: "markdown" }
    }
  end

and from the component
if add_option(options[:header])
is an active controller hack that is included in the AtomicCms readme, not even the project.

Lets clean it up!

Generating text_block component freezes

While installing and configuring the Atomic CMS, at the step where you have to create the text_block component, after I ran rails g atomic_assets:component text_block the terminal hangs.

atomic asset generator

When creating a new atomic asset, the developer should be able to run

rails g atomic_assets:component component_name 

and have the associated files created for them

  • component_name.rb
  • component_name.scss
  • component_name.js
  • component_name.html.slim

Gem ownership

Hey guys! :) Tyler asked me to add Spartan as a gem owner on ruby gems. He said the username was "spartansystems", but the CLI wants an email and gives me this result when I try to transfer:

$ gem owner -a spartansytems atomic_assets

# Adding spartansytems: Owner could not be found.

Let me know the email(s) to use, and I will add you guys.

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.