GithubHelp home page GithubHelp logo

sts0mrg0 / neos-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neos/neos-ui

0.0 1.0 0.0 4.88 MB

Neos CMS UI written in ReactJS with Immutable data structures.

License: GNU General Public License v3.0

Shell 0.26% JavaScript 46.71% PHP 11.87% CSS 13.71% HTML 27.46%

neos-ui's Introduction

@neos/neos-ui

Build Status Dependency Status devDependency Status Code Climate Test Coverage Stories in Ready Slack Forum Twitter

The next generation Neos CMS interface written in ReactJS with Immutable data structures.

Features

  • Better editing experience for responsive websites.
  • Faster load times for the backend.
  • No reload constraint for the correct stylesheets on multi-site systems.
  • Updated Font-Awesome to v4.5.0 (old icon names are migrated on the fly).

Installation and usage

  1. You need to have latest Neos CMS up & running.

  2. Run the following commands:

    composer require neos/neos-ui:dev-master # install our package
    cd Packages/Application/Neos.Neos.Ui
    source Build/init.sh # do NodeJS stuff ie. install required node version using nvm, install npm deps
    npm run build # build everything using webpack (you might see some webpack warnings, but you can ignore them)
    
  3. Paste the following configuration into the head of your global Routes.yaml which is located in Configuration/

  • name: 'Neos UI' uriPattern: '' subRoutes: 'NeosUiSubroutes': package: 'Neos.Neos.Ui'

Now you are all set up and can open the sub-route `/neos!` to login to the new interface.

__Note: We require [nvm](https://github.com/creationix/nvm#install-script) as well as the `npm` command to be installed on your system.
If you've installed `nvm` make sure that the next node LTS version `6.3.0` is correctly installed - You can do so by executing `nvm install v6.3.0`.
If you need help setting up `nvm`, `npm` or if you got any other problems, join our [Slack](https://neos-project.slack.com/) channel and we are most happy to help you with it. :).__


### Use Docker image

__Alternatively__, instead of doing above setup steps manually, use Docker.
The [million12/neos-react-ui](https://github.com/million12/docker-neos-react-ui)
contains Neos CMS, correct version of NodeJS/nvm and `neos/neos-ui` package
installed and built, working out of the box.

Refer to [million12/neos-react-ui](https://github.com/million12/docker-neos-react-ui)
documentation about how to use it.


## Contributing

[Read developer documentation on our wiki](https://github.com/neos/neos-ui/wiki).

#### Development commands
| Command         | Description                    |
| --------------- | ------------------------------ |
| `npm run build` | Builds all assets via webpack. |
| `npm run lint:scripts`  | Lints all `.js` files via ESLint. |
| `npm run lint:css`  | Lints all `.css` files via StyleLint. |
| `npm run lint`  | Runs the above stated watch commands sequentially. |
| `npm run karma` | Executes a single run of all unit tests via karma. (This is pretty slow due to webpack's single-compilation speed, use the `watch:karma` task instead for development) |
| `npm run watch:build`  | Watches all source files and rebuilds the compiled files on file changes. |
| `npm run watch:karma`  | Watches all source files and unit test specs and runs karma after the compilation has been completed. |
| `npm run watch`  | Runs the above stated watch commands sequentially. |
| `npm test`  | Executes both `npm run lint` and `npm run karma` sequentially. |

#### Code style
Our code style is based upon `xo`, with one big difference - We use 4 spaces instead of tabs, to align our code style a bit with the PSR-2 standard for our PHP codebase. To lint the code, execute `npm run lint` in your shell.

#### Writing unit tests
The unit tests are executed with Karma and PhantomJS.
Instead of relying on the default settings of Karma, we use [chai](http://chaijs.com/) as our assertion library and
[sinon](http://sinonjs.org/) for spies. To run the unit tests, execute `npm run karma` in your shell.

Adding unit tests is fairly simple, just create a file on the same tree level as your changed/new feature, named `[filename].spec.js` and karma will execute all tests found within the spec file, other than that, just orient yourself on the existing tests.

Use `it.only(() => {})` and `describe.only(() => {})` if you want to run a specific test and not the whole test suite.

## License
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

neos-ui's People

Contributors

dimaip avatar gerdner avatar grebaldi avatar greenkeeperio-bot avatar hlubek avatar inkdpixels avatar mgoldbeck avatar ryzy avatar skurfuerst avatar sryzycki avatar

Watchers

 avatar

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.