GithubHelp home page GithubHelp logo

justiceo / angularize-wp Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 6.0 1.92 MB

Super-charge WordPress with AngularJs components

Home Page: https://justiceo.github.io/Angularize-wp/

License: MIT License

JavaScript 73.05% HTML 14.70% CSS 1.68% PHP 10.57%
angularjs wordpress plugin lazyloading widgets

angularize-wp's Introduction

Angularize WordPress

Super-charge your WordPress site with AngularJs components. For example, loading all sidebar widgets, banners and sliders, ads, forms etc.

Hello World component

Below is a complete (with script tag) example of an angular component in a WordPress site.

<script type="text/javascript">
  document.addEventListener("DOMContentLoaded", function(event) {
    angularize.component("echo", {
      template: 'Hello World!',
      controller: function() {}
    })
  });
</script>

Now, anywhere you enter the tag <echo></echo> in your WordPress site (posts, pages, widgets etc), you will get the text Hello World!

Stack

AngularJs, ES6, Babel + Browserfiy, Gulp, Karma + Jasmine

Quick start

# clone the repo
$ git clone https://github.com/justiceo/angularize

# change directory to your app
$ cd angularize

# install the dependencies with npm
$ npm install

# Ignore updates to app.templates.js
$ git update-index --assume-unchanged src/core/app.templates.js

# start the server
$ npm start

go to http://localhost:3000 in your browser.

Developing

  • single run: npm run build
  • build files and watch: npm start

Testing

  • single run: npm test
  • live mode (TDD style): npm run test-watch

Plugins that Interfer with Rest Api

  • Wordfence security: the most popular security plugin on wordpress.
    • When enabled, some requests incorrectly return a 404
    • An example request would be localhost/wp-json/wp/v2/posts/?author=1

License

MIT

Release 1.0.0 Goals

  • working documentation
  • working demo
  • optional inclusion of extra components
  • optional inclusion of extra modules
  • working tests

todo

  • on new-post page, display a loading sign while component loads
  • create a build-from-dashboard solution for this project
  • Angularize should have an auth endpoint for /login register/ and logout/ - depends on WpObject not collection error above
  • Revisions doesn't work
  • Settings object works but have WpCollections
  • Issue a warning when WordFence is installed

angularize-wp's People

Contributors

derekbaah avatar dumendlovu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

angularize-wp's Issues

Search for category & tag

Both options do not work. They just sort of zone out of the page entirely till you click on the featured image again. Thought we'd be going with a dropdown for the categories actually.

Tags and categories

It'd be best if we made the category a dropdown so people can see all the categories in the site as opposed to having to type in a letter to see a list.

About tags, users should be able to add new tags themselves and not rely solely on what's available

Image insert in posts not working

It's not possible to insert an image within posts (not featured image). Tried severally with the image button in the toolbar, nothing happens

Category & tag selection

Making categories a dropdown, where a user can actually see a list of available categories and click to select will be much easier and let them know all the categories beforehand.

For tags, they should be able to add new tags themselves and not have to just select from old ones.

Insert image

Cant find any option to insert media anywhere on the page

Post published/submitted for review

Upon clicking save and publish, nothing really shows the post has been submitted. Some sort of success message will be best. Also posts have to be submitted for review first!

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.