new module articles, structure

This commit is contained in:
Daniel Herrero 2017-12-19 11:05:07 +01:00
parent edb29c7ced
commit f0c9b2beca
10 changed files with 99 additions and 1 deletions

1
client/articles/index.js Normal file
View File

@ -0,0 +1 @@
export * from './src/articles';

View File

@ -0,0 +1,21 @@
{
"module": "articles",
"name": "Articles",
"icon": "/static/images/icon_articles.svg",
"routes": [
{
"state": "articles",
"abstract": true,
"acl": ["employee"]
},
{
"url": "/articles",
"state": "articles.index",
"component": "vn-articles-index"
}, {
"url": "/create",
"state": "articles.create",
"component": "vn-client-create"
}
]
}

View File

@ -0,0 +1,3 @@
export * from './module';
import './index/index';

View File

View File

@ -0,0 +1,15 @@
import ngModule from '../module';
export default class Controller {
constructor() {
this.model = {};
}
search(index) {
index.accept();
}
}
ngModule.component('vnArticlesIndex', {
template: require('./index.html'),
controller: Controller
});

View File

@ -0,0 +1,3 @@
{
"Articles": "Artículos"
}

View File

@ -0,0 +1,5 @@
import {ng} from 'vendor';
import 'core';
const ngModule = ng.module('articles', ['vnCore']);
export default ngModule;

View File

@ -5,5 +5,6 @@
"client": [],
"production": [],
"route": [],
"locator": []
"locator": [],
"articles": []
}

View File

@ -43,3 +43,14 @@ export const locator = () => {
};
core.splitingRegister.register('locator', locator);
export const articles = () => {
return new Promise(resolve => {
require.ensure([], () => {
require('articles');
resolve('articles');
}, 'articles');
});
};
core.splitingRegister.register('articles', articles);

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
<style type="text/css">
.st0{stroke:#000000;stroke-width:0.6335;stroke-miterlimit:10;}
.st1{fill:#FFFFFF;stroke:#000000;stroke-width:0.6335;stroke-miterlimit:10;}
.st2{fill:none;stroke:#000000;stroke-width:0.6335;stroke-miterlimit:10;}
.st3{fill:none;stroke:#000000;stroke-width:1.9005;stroke-miterlimit:10;}
</style>
<g>
<path class="st0" d="M17.4,4L5.6,10.8v13.6l11.8,6.8l11.8-6.8V10.8L17.4,4z M29,24.3L17.4,31L5.8,24.3V10.9l11.6-6.7L29,10.9V24.3z
"/>
<polygon class="st1" points="29,10.9 29,24.3 17.4,31 5.8,24.3 5.8,10.9 17.4,4.2 "/>
<path class="st2" d="M8.4,12.6"/>
<line class="st1" x1="5.8" y1="10.9" x2="17.4" y2="17.6"/>
<polygon class="st0" points="22.9,14.3 11.3,7.6 12.4,7 24,13.7 "/>
<line class="st2" x1="17.4" y1="17.6" x2="29" y2="10.9"/>
<path class="st3" d="M20,19.8"/>
<line class="st2" x1="17.4" y1="31" x2="17.4" y2="17.6"/>
<polygon class="st0" points="22.9,17.8 23.9,17.2 23.9,13.7 22.9,13.7 "/>
<g>
<path d="M7.6,18.4v4.4l0.1,0.1v-4.4L7.6,18.4z M7.9,18.3L7.9,18.3L7.9,18.3L7.9,18.3z M7.9,18.5V23L8,23L7.9,18.5L7.9,18.5z"/>
<path d="M8.4,18.8v4.4l0.2,0.1v-4.4L8.4,18.8z M8.1,18.7v4.4l0.1,0L8.1,18.7L8.1,18.7z"/>
<path d="M8.6,18.9v4.4l0.3,0.2v-4.4L8.6,18.9z M9,19.2v4.4l0.1,0L9,19.2L9,19.2z"/>
<path d="M9.2,19.3v4.4l0.1,0L9.2,19.3L9.2,19.3z M9.5,19.5v4.4L9.7,24v-4.4L9.5,19.5z"/>
<path d="M9.7,19.6V24l0.2,0.1v-4.4L9.7,19.6z M10.2,19.9v4.4l0.1,0L10.2,19.9L10.2,19.9z"/>
<path d="M10.5,20.1v4.4l0.3,0.2v-4.4L10.5,20.1z M10.3,19.9v4.4l0.1,0L10.3,19.9L10.3,19.9z"/>
<path d="M10.9,20.3v4.5l0.3,0.1v-4.5L10.9,20.3z M11.3,20.5V25l0.2,0.1v-4.4L11.3,20.5z"/>
<path d="M11.6,20.7v4.5l0.2,0.1v-4.5L11.6,20.7z M11.8,20.8v4.5l0.3,0.2V21L11.8,20.8z"/>
<path d="M12.4,21.1v4.5l0.1,0.1L12.4,21.1L12.4,21.1z M12.6,21.2v4.5l0.2,0.1v-4.5L12.6,21.2z"/>
<path d="M13,21.5v4.5l0.2,0.1v-4.5L13,21.5z M13.3,21.7v4.5l0.1,0.1L13.3,21.7L13.3,21.7z"/>
<path d="M13.7,21.9v4.5l0.2,0.1V22L13.7,21.9z M14,22.1v4.5l0.1,0.1L14,22.1L14,22.1z"/>
<path d="M14.3,22.3v4.5l0.2,0.1v-4.5L14.3,22.3z M14.8,22.5V27l0.1,0.1v-4.5L14.8,22.5z"/>
<path d="M15.1,22.7v4.5l0.2,0.1v-4.5L15.1,22.7z M15.5,22.9v4.5l0.1,0.1V23L15.5,22.9z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB