Merge branch 'master' of ssh://git.verdnatura.es:/var/lib/git/salix
# Conflicts: # @salix/app/src/components/main-menu/main-menu.html
This commit is contained in:
commit
95546c9018
|
@ -1,7 +1,8 @@
|
||||||
<div style="position: fixed; top: 0; right: 0; padding: 1.5em; color: white;">
|
<div style="position: fixed; top: 0; right: 0; padding: 1em 1.5em; color: white; z-index: 10;">
|
||||||
|
<i class="material-icons" title="Logout" ng-click="$ctrl.onLogoutClick()">exit_to_app</i>
|
||||||
<i class="material-icons" id="apps" style="cursor: pointer;">apps</i>
|
<i class="material-icons" id="apps" style="cursor: pointer;">apps</i>
|
||||||
<i class="material-icons">notifications</i>
|
<i class="material-icons" title="Notifications">notifications</i>
|
||||||
<i class="material-icons">account_circle</i>
|
<i class="material-icons" title="Profile" style="font-size: 35px;">account_circle</i>
|
||||||
<ul class="mdl-menu mdl-js-menu mdl-menu--bottom-right user-menu" pad-medium for="apps" >
|
<ul class="mdl-menu mdl-js-menu mdl-menu--bottom-right user-menu" pad-medium for="apps" >
|
||||||
<a ui-sref="clients"><i class="material-icons" id="clients">person</i></a>
|
<a ui-sref="clients"><i class="material-icons" id="clients">person</i></a>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,8 +1,18 @@
|
||||||
|
require('./style.css');
|
||||||
import template from './main-menu.html';
|
import template from './main-menu.html';
|
||||||
import {module} from '../../module';
|
import {module} from '../../module';
|
||||||
|
|
||||||
export const NAME = "vnMainmenu";
|
export const NAME = 'vnMainMenu';
|
||||||
export const COMPONENT = {
|
export const COMPONENT = {
|
||||||
template: template
|
template: template,
|
||||||
|
controller: function ()
|
||||||
|
{
|
||||||
|
this.onLogoutClick = function ()
|
||||||
|
{
|
||||||
|
let appName = 'salix';
|
||||||
|
document.cookie = `${appName}-session=; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
|
||||||
|
window.location = `/account?api_key=${appName}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
module.component(NAME, COMPONENT);
|
module.component(NAME, COMPONENT);
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
vn-main-menu i {
|
||||||
|
padding: .1em;
|
||||||
|
border-radius: .1em;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
vn-main-menu i:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: .85;
|
||||||
|
}
|
|
@ -5,4 +5,21 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: $pad-large;
|
padding: $pad-large;
|
||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
|
}
|
||||||
|
|
||||||
|
html [vn-auto], vn-auto, .vn-auto,
|
||||||
|
html [vn-none], vn-none, .vn-none,
|
||||||
|
html [vn-one], vn-one, .vn-one,
|
||||||
|
html [vn-two], vn-two, .vn-two,
|
||||||
|
html [vn-three], vn-three, .vn-three,
|
||||||
|
html [vn-four], vn-four, .vn-four,
|
||||||
|
html [vn-five], vn-five, .vn-five,
|
||||||
|
html [vn-six], vn-six, .vn-six,
|
||||||
|
html [vn-seven], vn-seven, .vn-seven,
|
||||||
|
html [vn-eight], vn-eight, .vn-eight,
|
||||||
|
html [vn-nine], vn-nine, .vn-nine,
|
||||||
|
html [vn-ten], vn-ten, .vn-ten,
|
||||||
|
html [vn-eleven], vn-eleven, .vn-eleven,
|
||||||
|
html [vn-twelve], vn-twelve, .vn-twelve,{
|
||||||
|
padding-right: .4em;
|
||||||
}
|
}
|
|
@ -38,8 +38,7 @@ export {NAME as COMBO_MDL, factory as comboMdl} from './combo/combo.mdl'
|
||||||
export {NAME as DATE_PICKER, directive as DatePickerDirective} from './date-picker/date-picker'
|
export {NAME as DATE_PICKER, directive as DatePickerDirective} from './date-picker/date-picker'
|
||||||
export {NAME as DATE_PICKER_MDL, factory as datePickerMdl} from './date-picker/date-picker.mdl'
|
export {NAME as DATE_PICKER_MDL, factory as datePickerMdl} from './date-picker/date-picker.mdl'
|
||||||
|
|
||||||
export {NAME as TITLE, directive as TitleDirective} from './title/title'
|
export {NAME as TITLE, COMPONENT as TITLE_COMPONENT} from './title/title'
|
||||||
export {NAME as TITLE_MDL, factory as titleMdl} from './title/title.mdl'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
<h3 style="margin-top: 0;" class="border-solid-bottom margin-medium-bottom" level="*[level]*" ng-transclude>
|
||||||
|
</h3>
|
|
@ -1,19 +1,9 @@
|
||||||
|
import template from './title.html';
|
||||||
import {module} from '../module';
|
import {module} from '../module';
|
||||||
import * as resolveFactory from '../resolveDefaultComponents';
|
|
||||||
import * as util from '../util';
|
|
||||||
|
|
||||||
const _NAME = 'title';
|
export const NAME = "vnTitle";
|
||||||
export const NAME = util.getName(_NAME);
|
export const COMPONENT = {
|
||||||
|
template: template,
|
||||||
directive.$inject = [resolveFactory.NAME];
|
transclude: true
|
||||||
export function directive (resolve){
|
};
|
||||||
return {
|
module.component(NAME, COMPONENT);
|
||||||
require:'E',
|
|
||||||
transclude: true,
|
|
||||||
template: function(_,attr){
|
|
||||||
return resolve.getTemplate(_NAME, attr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.directive(NAME,directive);
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
<h3 style="margin: 0; padding-bottom: .1em; margin-bottom: .4em; border-bottom: 1px solid gray;" level="*[level]*" ng-transclude>
|
|
||||||
</h3>
|
|
|
@ -1,13 +0,0 @@
|
||||||
import {module} from '../module';
|
|
||||||
import template from './title.mdl.html';
|
|
||||||
|
|
||||||
export const NAME = 'vnTitleMdlFactory';
|
|
||||||
|
|
||||||
export function factory() {
|
|
||||||
return {
|
|
||||||
template: template,
|
|
||||||
default: {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.factory(NAME, factory);
|
|
|
@ -7,7 +7,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<vn-vertical id="app" class="full-height">
|
<vn-vertical id="app" class="full-height">
|
||||||
<vn-mainmenu></vn-mainmenu>
|
<vn-main-menu></vn-main-menu>
|
||||||
<vn-vertical ui-view scrollable></vn-vertical>
|
<vn-vertical ui-view scrollable></vn-vertical>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
<script
|
<script
|
||||||
|
|
Loading…
Reference in New Issue