Skip to content

Commit

Permalink
Merge pull request #252 from strapi/plugin/content-type-builder-dev
Browse files Browse the repository at this point in the history
Plugin content type builder dev
  • Loading branch information
Aurelsicoko committed Sep 25, 2017
2 parents 3d7b26d + e77321e commit 5ae0511
Show file tree
Hide file tree
Showing 690 changed files with 14,003 additions and 15,313 deletions.
Empty file modified .eslintignore
100644 → 100755
Empty file.
Empty file modified .eslintrc
100644 → 100755
Empty file.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified LICENSE.md
100644 → 100755
Empty file.
Empty file modified ROADMAP.md
100644 → 100755
Empty file.
Empty file modified lerna.json
100644 → 100755
Empty file.
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/.editorconfig
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/LICENSE.md
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/README.md
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/app.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/assets/images/logo-strapi.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified packages/strapi-admin/admin/src/components/Header/index.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/components/Header/styles.scss
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified packages/strapi-admin/admin/src/components/Toggle/index.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/components/Toggle/styles.scss
100644 → 100755
Empty file.
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/AdminPage/syles.scss
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/App/actions.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/App/constants.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/App/reducer.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/App/styles.scss
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/Content/index.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/Content/styles.scss
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/LeftMenu/index.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/LeftMenu/styles.scss
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified packages/strapi-admin/admin/src/containers/PluginPage/index.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/i18n.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/index.html
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/reducers.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/store.js
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/styles/base/animations.scss
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/styles/base/fonts.scss
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/styles/base/helpers.scss
100644 → 100755
Empty file.
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified packages/strapi-admin/admin/src/styles/main.scss
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/styles/variables/variables.scss
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/translations/en.json
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/admin/src/translations/fr.json
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/config/routes.json
100644 → 100755
Empty file.
Empty file modified packages/strapi-admin/controllers/Admin.js
100644 → 100755
Empty file.
28 changes: 28 additions & 0 deletions packages/strapi-admin/files/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "strapi-admin",
"version": "0.0.0",
"description": "Strapi Admin",
"repository": {
"type": "git",
"url": "git://github.com/strapi/strapi-admin.git"
},
"engines": {
"npm": ">=3"
},
"author": "Strapi",
"license": "MIT",
"scripts": {
"setup": "npm install && cd public && npm install && npm run build",
"test": "cd public && npm run test"
},
"pre-commit": [
"test"
],
"dependencies": {
"cheerio": "0.22.0",
"lodash": "^4.17.2"
},
"devDependencies": {
"pre-commit": "1.1.3"
}
}
122 changes: 122 additions & 0 deletions packages/strapi-admin/files/public/.github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Contributing to react-boilerplate

Love react-boilerplate and want to help? Thanks so much, there's something to do for everybody!

Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.

Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.

## Using the issue tracker

The [issue tracker](https://github.com/mxstbr/react-boilerplate/issues) is
the preferred channel for [bug reports](#bugs), [features requests](#features)
and [submitting pull requests](#pull-requests).

<a name="bugs"></a>
## Bug reports

A bug is a _demonstrable problem_ that is caused by the code in the repository.
Good bug reports are extremely helpful - thank you!

Guidelines for bug reports:

1. **Use the GitHub issue search** &mdash; check if the issue has already been reported.

2. **Check if the issue has been fixed** &mdash; try to reproduce it using the latest `master` or development branch in the repository.

3. **Isolate the problem** &mdash; ideally create a [reduced test case](https://css-tricks.com/reduced-test-cases/) and a live example.

A good bug report shouldn't leave others needing to chase you up for more information. Please try to be as detailed as possible in your report. What is your environment? What steps will reproduce the issue? What browser(s) and OS
experience the problem? What would you expect to be the outcome? All these details will help people to fix any potential bugs.

Example:

> Short and descriptive example bug report title
>
> A summary of the issue and the browser/OS environment in which it occurs. If
> suitable, include the steps required to reproduce the bug.
>
> 1. This is the first step
> 2. This is the second step
> 3. Further steps, etc.
>
> `<url>` - a link to the reduced test case
>
> Any other information you want to share that is relevant to the issue being
> reported. This might include the lines of code that you have identified as
> causing the bug, and potential solutions (and your opinions on their
> merits).

<a name="features"></a>
## Feature requests

Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.


<a name="pull-requests"></a>
## Pull requests

Good pull requests - patches, improvements, new features - are a fantastic
help. They should remain focused in scope and avoid containing unrelated
commits.

**Please ask first** before embarking on any significant pull request (e.g.
implementing features, refactoring code, porting to a different language),
otherwise you risk spending a lot of time working on something that the
project's developers might not want to merge into the project.

Please adhere to the coding conventions used throughout a project (indentation,
accurate comments, etc.) and any other requirements (such as test coverage).

Since the `master` branch is what people actually use in production, we have a
`dev` branch that unstable changes get merged into first. Only when we
consider that stable we merge it into the `master` branch and release the
changes for real.

Adhering to the following process is the best way to get your work
included in the project:

1. [Fork](https://help.github.com/articles/fork-a-repo/) the project, clone your fork, and configure the remotes:

```bash
# Clone your fork of the repo into the current directory
git clone https://github.com/<your-username>/react-boilerplate.git
# Navigate to the newly cloned directory
cd react-boilerplate
# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/mxstbr/react-boilerplate.git
```

2. If you cloned a while ago, get the latest changes from upstream:

```bash
git checkout dev
git pull upstream dev
```

3. Create a new topic branch (off the `dev` branch) to contain your feature, change, or fix:

```bash
git checkout -b <topic-branch-name>
```

4. Commit your changes in logical chunks. Please adhere to these [git commit message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) or your code is unlikely be merged into the main project. Use Git's [interactive rebase](https://help.github.com/articles/about-git-rebase/) feature to tidy up your commits before making them public.

5. Locally merge (or rebase) the upstream dev branch into your topic branch:

```bash
git pull [--rebase] upstream dev
```

6. Push your topic branch up to your fork:

```bash
git push origin <topic-branch-name>
```

7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
with a clear title and description.

**IMPORTANT**: By submitting a patch, you agree to allow the project
owners to license your work under the terms of the [MIT License](https://github.com/mxstbr/react-boilerplate/blob/master/LICENSE.md).
30 changes: 30 additions & 0 deletions packages/strapi-admin/files/public/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# React Boilerplate

Before opening a new issue, please take a moment to review our [**community guidelines**](https://github.com/mxstbr/react-boilerplate/blob/master/.github/CONTRIBUTING.md) to make the contribution process easy and effective for everyone involved.

Please direct redux-saga related questions to stack overflow:
http://stackoverflow.com/questions/tagged/redux-saga

For questions related to the boilerplate itself, you can also find answers on our gitter chat:
https://gitter.im/mxstbr/react-boilerplate

**Before opening a new issue, you may find an answer in already closed issues**:
https://github.com/mxstbr/react-boilerplate/issues?q=is%3Aissue+is%3Aclosed

## Issue Type

- [ ] Bug (https://github.com/mxstbr/react-boilerplate/blob/master/.github/CONTRIBUTING.md#bug-reports)
- [ ] Feature (https://github.com/mxstbr/react-boilerplate/blob/master/.github/CONTRIBUTING.md#feature-requests)

## Description

(Add images if possible)

## Steps to reproduce

(Add link to a demo on https://jsfiddle.net or similar if possible)

# Versions

- Node/NPM:
- Browser:
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## React Boilerplate

Thank you for contributing! Please take a moment to review our [**contributing guidelines**](https://github.com/mxstbr/react-boilerplate/blob/master/.github/CONTRIBUTING.md)
to make the process easy and effective for everyone involved.

**Please open an issue** before embarking on any significant pull request, especially those that
add a new library or change existing tests, otherwise you risk spending a lot of time working
on something that might not end up being merged into the project.

Before opening a pull request, please ensure:

- [ ] You have followed our [**contributing guidelines**](https://github.com/mxstbr/react-boilerplate/blob/master/.github/CONTRIBUTING.md)
- [ ] Pull request has tests (we are going for 100% coverage!)
- [ ] Code is well-commented, linted and follows project conventions
- [ ] Documentation is updated (if necessary)
- [ ] Internal code generators and templates are updated (if necessary)
- [ ] Description explains the issue/use-case resolved and auto-closes related issues

Be kind to code reviewers, please try to keep pull requests as small and focused as possible :)

**IMPORTANT**: By submitting a patch, you agree to allow the project
owners to license your work under the terms of the [MIT License](https://github.com/mxstbr/react-boilerplate/blob/master/LICENSE.md).
10 changes: 10 additions & 0 deletions packages/strapi-admin/files/public/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Don't check auto-generated stuff into git
coverage
build
node_modules
stats.json

# Cruft
.DS_Store
npm-debug.log
.idea
18 changes: 18 additions & 0 deletions packages/strapi-admin/files/public/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: node_js
sudo: true
dist: trusty
node_js:
- "5.0"
script: npm run build
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- sh -e /etc/init.d/xvfb start
notifications:
email:
on_failure: change
after_success: 'npm run coveralls'
44 changes: 44 additions & 0 deletions packages/strapi-admin/files/public/app/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<ifModule mod_rewrite.c>


#######################################################################
# GENERAL #
#######################################################################

# Make apache follow sym links to files
Options +FollowSymLinks
# If somebody opens a folder, hide all files from the resulting folder list
IndexIgnore */*


#######################################################################
# REWRITING #
#######################################################################

# Enable rewriting
RewriteEngine On

# If its not HTTPS
RewriteCond %{HTTPS} off

# Comment out the RewriteCond above, and uncomment the RewriteCond below if you're using a load balancer (e.g. CloudFlare) for SSL
# RewriteCond %{HTTP:X-Forwarded-Proto} !https

# Redirect to the same URL with https://, ignoring all further rules if this one is in effect
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R,L]

# If we get to here, it means we are on https://

# If the file with the specified name in the browser doesn't exist
RewriteCond %{REQUEST_FILENAME} !-f

# and the directory with the specified name in the browser doesn't exist
RewriteCond %{REQUEST_FILENAME} !-d

# and we are not opening the root already (otherwise we get a redirect loop)
RewriteCond %{REQUEST_FILENAME} !\/$

# Rewrite all requests to the root
RewriteRule ^(.*) /

</ifModule>
66 changes: 66 additions & 0 deletions packages/strapi-admin/files/public/app/.nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
##
# Put this file in /etc/nginx/conf.d folder and make sure
# you have line 'include /etc/nginx/conf.d/*.conf;'
# in your main nginx configuration file
##

##
# Redirect to the same URL with https://
##

server {

listen 80;

# Type your domain name below
server_name example.com;

return 301 https://$server_name$request_uri;

}

##
# HTTPS configurations
##

server {

listen 443;

# Type your domain name below
server_name example.com;

ssl on;
ssl_certificate /path/to/certificate.crt;
ssl_certificate_key /path/to/server.key;

# Use only TSL protocols for more secure
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

# Always serve index.html for any request
location / {
# Set path
root /var/www/;
try_files $uri /index.html;
}

##
# If you want to use Node/Rails/etc. API server
# on the same port (443) config Nginx as a reverse proxy.
# For security reasons use a firewall like ufw in Ubuntu
# and deny port 3000/tcp.
##

# location /api/ {
#
# proxy_pass http://localhost:3000;
# proxy_http_version 1.1;
# proxy_set_header X-Forwarded-Proto https;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;
#
# }

}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// import Header from '../index';

import expect from 'expect';
// import { shallow } from 'enzyme';
// import React from 'react';

describe('<Header />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(true);
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// import LeftMenuFooter from '../index';

import expect from 'expect';
// import { shallow } from 'enzyme';
// import React from 'react';

describe('<LeftMenuFooter />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(true);
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// import LeftMenuHeader from '../index';

import expect from 'expect';
// import { shallow } from 'enzyme';
// import React from 'react';

describe('<LeftMenuHeader />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(true);
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// import LeftMenuLink from '../index';

import expect from 'expect';
// import { shallow } from 'enzyme';
// import React from 'react';

describe('<LeftMenuLink />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(true);
});
});

0 comments on commit 5ae0511

Please sign in to comment.