TT#17103 Ngcp-csc Production build fixes

Change-Id: Ib770c456f61bedbaecfd5a50e6f1a157bccee13b
changes/71/13771/5
Carlo 9 years ago
parent 68cf98a0bb
commit f5f1cf5f29

@ -275,28 +275,7 @@
/**
* Settings specific to production builds.
*/
"production": {
"tags": [
// You can add this tag to enable Fashion when using app watch or
// you can add "?platformTags=fashion:1" to the URL to enable Fashion
// without changing this file.
//
"fashion"
],
"output": {
"appCache": {
"enable": false,
"path": "../cache.appcache"
}
},
"loader": {
"cache": "${build.timestamp}"
},
"cache": {
"enable": false
}
},
"production": {},
/**
* Settings specific to testing builds.
@ -322,7 +301,7 @@
// you can add "?platformTags=fashion:1" to the URL to enable Fashion
// without changing this file.
//
"fashion"
// "fashion"
]
},

@ -37,7 +37,7 @@ Ext.define('NgcpCsc.model.GridFilters', {
proxy: {
type: 'ajax',
url: '/resources/data/gridfilters.json',
url: Ext.manifest.resources.path + '/data/gridfilters.json',
autoLoad: true,
reader: {
type: 'json',

@ -18,14 +18,18 @@ Ext.define('NgcpCsc.model.Reminder', {
}, {
name: "recur",
mapping: function(data) {
return data._embedded['ngcp:reminders'][0].recur;
if(data && data._embedded && data._embedded['ngcp:reminders'] && data._embedded['ngcp:reminders'].length > 0){
return data._embedded['ngcp:reminders'][0].recur;
}
}
}, {
name: "time",
type: 'date',
dateFormat: 'H:i:s',
mapping: function(data) {
return data._embedded['ngcp:reminders'][0].time;
if(data && data._embedded && data._embedded['ngcp:reminders'] && data._embedded['ngcp:reminders'].length > 0){
return data._embedded['ngcp:reminders'][0].time;
}
}
}, {
name: "reminder_status",
@ -35,19 +39,24 @@ Ext.define('NgcpCsc.model.Reminder', {
}, {
name: "subscriber_id",
mapping: function(data) {
return data._embedded['ngcp:reminders'][0].subscriber_id;
if(data && data._embedded && data._embedded['ngcp:reminders'] && data._embedded['ngcp:reminders'].length > 0){
return data._embedded['ngcp:reminders'][0].subscriber_id;
}
}
}],
// this replace the temprary Model ID in VM links
onLoad: function() {
this.set("id", this.data._embedded['ngcp:reminders'][0].id);
this.commit();
if(this.data && this.data._embedded && this.data._embedded['ngcp:reminders'] && this.data._embedded['ngcp:reminders'].length > 0){
this.set("id", this.data._embedded['ngcp:reminders'][0].id);
this.commit();
}
},
proxy: {
type: 'ngcp-api',
route: 'reminders',
params: 'subscriber_id=195'
params: 'subscriber_id=179' // this must exist in /api/subscribers/ response
}
});

@ -0,0 +1,15 @@
Ext.define('NgcpCsc.model.ThemeRoller', {
extend: 'Ext.data.Model',
fields: ['basecolor', 'fontcolor', 'bodybgcolor', 'fontfamily', 'fontweight', 'fontsize'],
proxy: {
type: 'ajax',
url: Ext.manifest.resources.path + '/data/themeroller.json',
autoLoad: true,
reader: {
type: 'json',
rootProperty: 'data'
}
}
});

@ -14,7 +14,7 @@ Ext.define('NgcpCsc.model.VoiceMailSettings', {
proxy: {
type: 'ajax',
url: '/resources/data/voicemailsSettings.json',
url: Ext.manifest.resources.path + '/data/voicemailsSettings.json',
autoLoad: true,
reader: {
type: 'json',

@ -13,7 +13,7 @@ Ext.define('NgcpCsc.proxy.NgcpApi', {
withCredentials: true,
username: 'administrator',
password: 'administrator',
baseApiUrl: 'https://localhost:1443/api/',
baseApiUrl: '/api/',
autoLoad: true,
appendId: false,
pageParam : false, //to remove param "page"

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.AliasNumbers', {
proxy: {
type: 'ajax',
url: '/resources/data/aliasNumbers.json',
url: Ext.manifest.resources.path + '/data/aliasNumbers.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -10,7 +10,7 @@ Ext.define('NgcpCsc.store.CallBlocking', {
proxy: {
type: 'ngcp-api',
route: 'subscriberpreferences', // subscriber id should be read from localStorage
subscriberId: '195',
subscriberId: '179', // this must exist in /api/subscribers/ response
actionMethods: {
read: 'GET',
update: 'PATCH'

@ -7,7 +7,7 @@ Ext.define('NgcpCsc.store.Contacts', {
proxy: {
type: 'ajax',
url: 'resources/data/contacts.json'
url: Ext.manifest.resources.path + '/data/contacts.json'
},
sorters: [{

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.Conversations', {
proxy: {
type: 'ajax',
url: '/resources/data/conversations.json',
url: Ext.manifest.resources.path + '/data/conversations.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.Destinations', {
proxy: {
type: 'ajax',
url: '/resources/data/destinations.json',
url: Ext.manifest.resources.path + '/data/destinations.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.DeviceModels', {
proxy: {
type: 'ajax',
url: '/resources/data/devicemodels.json',
url: Ext.manifest.resources.path + '/data/devicemodels.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.Devices', {
proxy: {
type: 'ajax',
url: '/resources/data/devices.json',
url: Ext.manifest.resources.path + '/data/devices.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.DevicesList', {
proxy: {
type: 'ajax',
url: '/resources/data/deviceslist.json',
url: Ext.manifest.resources.path + '/data/deviceslist.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.Extensions', {
proxy: {
type: 'ajax',
url: '/resources/data/extensions.json',
url: Ext.manifest.resources.path + '/data/extensions.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.FaxTypes', {
proxy: {
type: 'ajax',
url: '/resources/data/faxtypes.json',
url: Ext.manifest.resources.path + '/data/faxtypes.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.FirstRingActions', {
proxy: {
type: 'ajax',
url: '/resources/data/firstringactions.json',
url: Ext.manifest.resources.path + '/data/firstringactions.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.Forwards', {
proxy: {
type: 'ajax',
url: '/resources/data/forwards.json',
url: Ext.manifest.resources.path + '/data/forwards.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.Groups', {
proxy: {
type: 'ajax',
url: '/resources/data/groups.json',
url: Ext.manifest.resources.path + '/data/groups.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -7,7 +7,7 @@ Ext.define('NgcpCsc.store.HuntPolicies', {
proxy: {
type: 'ajax',
url: '/resources/data/huntPolicies.json',
url: Ext.manifest.resources.path + '/data/huntPolicies.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,8 +9,8 @@ Ext.define('NgcpCsc.store.Notifications', {
proxy: {
type: 'ajax',
baseUrl : '/resources/data/notifications/',
url: '/resources/data/notifications/0.json',
baseUrl : Ext.manifest.resources.path + '/data/notifications/',
url: Ext.manifest.resources.path + '/data/notifications/0.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -7,7 +7,7 @@ Ext.define('NgcpCsc.store.PrimaryNumbers', {
proxy: {
type: 'ajax',
url: '/resources/data/primaryNumbers.json',
url: Ext.manifest.resources.path + '/data/primaryNumbers.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.SeatTypes', {
proxy: {
type: 'ajax',
url: '/resources/data/seattype.json',
url: Ext.manifest.resources.path + '/data/seattype.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.Seats', {
proxy: {
type: 'ajax',
url: '/resources/data/seats.json',
url: Ext.manifest.resources.path + '/data/seats.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.Sounds', {
proxy: {
type: 'ajax',
url: '/resources/data/sounds.json',
url: Ext.manifest.resources.path + '/data/sounds.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -9,7 +9,7 @@ Ext.define('NgcpCsc.store.VoiceMails', {
proxy: {
type: 'ajax',
url: '/resources/data/voicemails.json',
url: Ext.manifest.resources.path + '/data/voicemails.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -34,7 +34,7 @@ Ext.define('NgcpCsc.view.common.rtc.RtcController', {
'status': 'answered',
'start_time': Date.now(),
"author": "Administrator",
"thumbnail": "resources/images/user-profile/2.png"
"thumbnail": Ext.manifest.resources.path + "/images/user-profile/2.png"
});
vm.set('uid', record.get('uid') || number);
vm.set('title', Ext.String.format(Ngcp.csc.locales.rtc.calling[localStorage.getItem('languageSelected')], number));
@ -294,7 +294,7 @@ Ext.define('NgcpCsc.view.common.rtc.RtcController', {
'status': 'answered',
'start_time': Date.now(),
"name": "Administrator",
"thumbnail": "resources/images/user-profile/2.png"
"thumbnail": Ext.manifest.resources.path + "/images/user-profile/2.png"
});
if(faxForm.isValid()){
mainView.getViewModel().set('sectionTitle', 'Conversation with ' + vm.get('numberToCall'));
@ -325,7 +325,7 @@ Ext.define('NgcpCsc.view.common.rtc.RtcController', {
'text': vm.get('smsText'),
'start_time': Date.now(),
"author": "Administrator",
"thumbnail": "resources/images/user-profile/2.png"
"thumbnail": Ext.manifest.resources.path + "/images/user-profile/2.png"
});
mainView.getViewModel().set('sectionTitle', 'Conversation with ' + vm.get('numberToCall'));
me.redirectTo('conversation-with');

@ -7,8 +7,8 @@ Ext.define('NgcpCsc.view.rtc.RtcModel', {
data: {
uid: '',
title: 123456789,
defaultThumbnail: 'resources/images/icons/phoneicon.png',
thumbnail: 'resources/images/icons/phoneicon.png',
defaultThumbnail: Ext.manifest.resources.path + '/images/icons/phoneicon.png',
thumbnail: Ext.manifest.resources.path + '/images/icons/phoneicon.png',
status: 'calling...',
callPanelHidden: true,
phoneComposerHidden: true,

@ -52,6 +52,6 @@ Ext.define('NgcpCsc.view.common.composer.Phone', {
}]
}, {
hidden: true,
html: '<audio id="ring" src="resources/audio/skype_ring.mp3" preload="auto"></audio>'
html: '<audio id="ring" src="'+Ext.manifest.resources.path+'/audio/skype_ring.mp3" preload="auto"></audio>'
}]
})

@ -94,7 +94,7 @@ Ext.define('NgcpCsc.view.main.Main', {
height: 35,
width: 35,
alt: 'current user image',
src: 'resources/images/user-profile/2.png'
src: Ext.manifest.resources.path + '/images/user-profile/2.png'
}
]
}, {

@ -309,9 +309,11 @@ Ext.define('NgcpCsc.view.main.MainController', {
});
// override pseudo element (can also be done using http://docs.sencha.com/extjs/6.2.0/classic/Ext.util.CSS.html#method-createStyleSheet)
document.styleSheets[0].addRule('.x-treelist-item-icon::before', 'line-height:' + currentItemsHeight + 'px !important');
document.styleSheets[0].addRule('.x-treelist-item-tool:after', 'height:' + currentItemsHeight + 'px !important');
document.styleSheets[0].addRule('.x-treelist-item-tool::before', 'line-height:' + currentItemsHeight + 'px !important');
if (document.styleSheets[0]) {
document.styleSheets[0].addRule('.x-treelist-item-icon::before', 'line-height:' + currentItemsHeight + 'px !important');
document.styleSheets[0].addRule('.x-treelist-item-tool:after', 'height:' + currentItemsHeight + 'px !important');
document.styleSheets[0].addRule('.x-treelist-item-tool::before', 'line-height:' + currentItemsHeight + 'px !important');
}
}
this.setCentralContentHeight();
@ -364,7 +366,7 @@ Ext.define('NgcpCsc.view.main.MainController', {
}
},
getStoreFromRoute: function (currentRoute) {
getStoreFromRoute: function(currentRoute) {
switch (true) {
case (currentRoute == '#inbox'):
return 'Conversations';

@ -27,7 +27,7 @@ Ext.define('NgcpCsc.view.pages.account.Account', {
type: 'Chart',
proxy: {
type: 'ajax',
url: '/resources/data/charts/seats.json',
url: Ext.manifest.resources.path + '/data/charts/seats.json',
reader: {
type: 'json',
rootProperty: 'data'
@ -42,7 +42,7 @@ Ext.define('NgcpCsc.view.pages.account.Account', {
type: 'Chart',
proxy: {
type: 'ajax',
url: '/resources/data/charts/groups.json',
url: Ext.manifest.resources.path + '/data/charts/groups.json',
reader: {
type: 'json',
rootProperty: 'data'
@ -57,12 +57,13 @@ Ext.define('NgcpCsc.view.pages.account.Account', {
type: 'Chart',
proxy: {
type: 'ajax',
url: '/resources/data/charts/devices.json',
url: Ext.manifest.resources.path + '/data/charts/devices.json',
reader: {
type: 'json',
rootProperty: 'data'
}
}
}
}]
}
]
});

@ -2,13 +2,6 @@ Ext.define('NgcpCsc.view.pages.account.AccountModel', {
extend: 'Ext.app.ViewModel',
alias: 'viewmodel.account',
links:{
account :{
type: 'NgcpCsc.model.Account',
id: Ext.id()
}
},
formulas: {
checkInitialBalance: function(get) {
return get('account.initial_balance') == 0;

@ -4,7 +4,7 @@ Ext.define('NgcpCsc.view.pages.account.charts.Pie', {
height: 500,
insetPadding: 60,
innerPadding: 40,
interactions: ['itemhighlight', 'rotatePie3d'],
requires:['Ext.chart.series.Pie3D','Ext.chart.interactions.ItemHighlight','Ext.chart.interactions.RotatePie3D'],
colors:['#66A648', '#0F589B'],
series: [{
type: 'pie3d',

@ -176,7 +176,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardController', {
vm.set('list_b', false);
};
Ext.Ajax.request({
url: '/resources/data/callForwardCombinations.json',
url: Ext.manifest.resources.path + '/data/callForwardCombinations.json',
success: function(response, opts) {
var obj = Ext.decode(response.responseText);
var combinationStore = obj.data[0];

@ -21,7 +21,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainForm', {
store: Ext.create('NgcpCsc.store.CallForwardSourceset', {
proxy: {
type: 'ajax',
url: '/resources/data/callForwardSourcesetListA.json',
url: Ext.manifest.resources.path + '/data/callForwardSourcesetListA.json',
reader: {
type: 'json',
rootProperty: 'data'
@ -34,7 +34,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainForm', {
store: Ext.create('NgcpCsc.store.CallForwardSourceset', {
proxy: {
type: 'ajax',
url: '/resources/data/callForwardSourcesetListB.json',
url: Ext.manifest.resources.path + '/data/callForwardSourcesetListB.json',
reader: {
type: 'json',
rootProperty: 'data'
@ -47,7 +47,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainForm', {
storeId: this._firstprefix + this._secondprefix + 'CallForwardBusy',
proxy: {
type: 'ajax',
url: '/resources/data/callForwardBusy.json',
url: Ext.manifest.resources.path + '/data/callForwardBusy.json',
reader: {
type: 'json',
rootProperty: 'data'
@ -60,7 +60,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainForm', {
storeId: this._firstprefix + this._secondprefix + 'CallForwardOnline',
proxy: {
type: 'ajax',
url: '/resources/data/callForwardOnline.json',
url: Ext.manifest.resources.path + '/data/callForwardOnline.json',
reader: {
type: 'json',
rootProperty: 'data'
@ -73,7 +73,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainForm', {
storeId: this._firstprefix + this._secondprefix + 'CallForwardOffline',
proxy: {
type: 'ajax',
url: '/resources/data/callForwardOffline.json',
url: Ext.manifest.resources.path + '/data/callForwardOffline.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -11,7 +11,7 @@ Ext.define('NgcpCsc.view.pages.callforward.afterhours.Afterhours', {
store: Ext.create('NgcpCsc.store.CallForwardTimeset', {
proxy: {
type: 'ajax',
url: '/resources/data/callForwardTimesetAfter.json',
url: Ext.manifest.resources.path + '/data/callForwardTimesetAfter.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -11,7 +11,7 @@ Ext.define('NgcpCsc.view.pages.callforward.companyhours.Companyhours', {
store: Ext.create('NgcpCsc.store.CallForwardTimeset', {
proxy: {
type: 'ajax',
url: '/resources/data/callForwardTimesetCompany.json',
url: Ext.manifest.resources.path + '/data/callForwardTimesetCompany.json',
reader: {
type: 'json',
rootProperty: 'data'

@ -89,7 +89,7 @@ Ext.define('NgcpCsc.view.pages.conversations.CallsGrid', {
'<div id="addressBook-' + record.get('id') + '" class="card-icon" data-callback="addToAddressbook" data-tooltip="' + Ngcp.csc.locales.conversations.tooltips.addressbook[localStorage.getItem('languageSelected')] + '"><i class="'+Ngcp.csc.icons.book2x+' green-icon pointer" aria-hidden="true"></i></div>' +
'<div id="startCall-' + record.get('id') + '" class="card-icon" data-callback="startCall" data-tooltip="' + Ngcp.csc.locales.conversations.tooltips.recall[localStorage.getItem('languageSelected')] + '"><i class="'+Ngcp.csc.icons.phone2x+' green-icon pointer" aria-hidden="true"></i></div>' +
'<div id="reproduceVoicemail-' + record.get('id') + '" class="card-icon" data-callback="reproduceVoicemail" data-tooltip="' + Ngcp.csc.locales.conversations.tooltips.listen[localStorage.getItem('languageSelected')] + '"><i class="'+Ngcp.csc.icons.play2x+' green-icon pointer" aria-hidden="true"></i></div>' +
'<audio id="sample" src="resources/audio/voicemail.mp3" preload="auto"></audio>' +
'<audio id="sample" src="'+Ext.manifest.resources.path+'/audio/voicemail.mp3" preload="auto"></audio>' +
'</div></div>';
break;
case 'sms':
@ -123,9 +123,9 @@ Ext.define('NgcpCsc.view.pages.conversations.CallsGrid', {
'<div class="card-data-row"><span></span><b>' + Ngcp.csc.locales.common.duration[localStorage.getItem('languageSelected')] + '</b>: ' + record.get('duration') + '</div>' +
'<div class="card-data-row"><span></span><b>' + Ngcp.csc.locales.conversations.pages[localStorage.getItem('languageSelected')] + '</b>: ' + record.get('pages') + '</div>' +
'<div class="card-icon-row">' +
'<div id="addressBook-' + record.get('id') + '" class="card-icon" data-callback="addToAddressbook" data-tooltip="' + Ngcp.csc.locales.conversations.tooltips.addressbook[localStorage.getItem('languageSelected')] + '"><i class="'+Ngcp.csc.icons.book2x+' green-icon pointer" aria-hidden="true"></i></div>' +
'<div id="sendFax-' + record.get('id') + '" class="card-icon" data-callback="sendFax" data-tooltip="' + Ngcp.csc.locales.conversations.tooltips.send_fax[localStorage.getItem('languageSelected')] + '"><i class="'+Ngcp.csc.icons.faxpaper2x+' green-icon pointer" aria-hidden="true"></i></div>' +
'<div id="downloadFax-' + record.get('id') + '" class="card-icon" data-tooltip="' + Ngcp.csc.locales.conversations.tooltips.download_fax[localStorage.getItem('languageSelected')] + '"><a href="resources/docs/fax.pdf" target="_blank"><i class= "'+Ngcp.csc.icons.download2x+' green-icon pointer" aria-hidden="true"></i></a></div>' +
'<div id="addressBook-' + record.get('id') + '" class="card-icon" data-callback="addToAddressbook" data-tooltip="' + Ngcp.csc.locales.conversations.tooltips.addressbook[localStorage.getItem('languageSelected')] + '"><i class="'+Ngcp.csc.icons.book2x+' green-icon pointer" aria-hidden="true"></i></div>' +
'</div></div>';
break;s
}

@ -2,11 +2,11 @@ Ext.define('NgcpCsc.view.pages.conversationwith.ConversationWith', {
extend: 'Ext.tab.Panel',
xtype: 'conversationwith',
cls: 'conversation-with-container',
plugins: 'tabreorderer',
viewModel: 'conversationwith',
controller: 'conversationwith',
title: null,
scrollable: false,
requires:['NgcpCsc.view.pages.conversationwith.Notifications'],
listeners: {
render: 'hideTabBar'
},

@ -69,7 +69,7 @@ Ext.define('NgcpCsc.view.pages.conversationwith.ConversationWithController', {
"direction": "outgoing",
"status": "answered",
"author": "Administrator",
"thumbnail": "resources/images/user-profile/2.png",
"thumbnail": Ext.manifest.resources.path + "/images/user-profile/2.png",
"text": (type && ['sms', 'chat'].indexOf(type) > -1) ? msg || this.lookupReference('newmessage').getValue() : '',
"start_time": Date(Date.now())
});

@ -18,7 +18,7 @@ Ext.define('NgcpCsc.view.pages.conversationwith.Notifications', {
"<tpl if='thumbnail'>",
"<img class='profile-icon' src={thumbnail}>",
"<tpl else>",
"<img class='profile-icon' src=/resources/images/avatar.png>",
"<img class='profile-icon' src="+Ext.manifest.resources.path+"/images/avatar.png>",
"</tpl>",
"</div>",
"<div class='{conversation_type}-icon'></div>",

@ -0,0 +1,178 @@
Ext.define('NgcpCsc.view.pages.themeroller.ThemeRoller', {
extend: 'Ext.form.Panel',
xtype: 'themeroller',
viewModel: 'themeroller',
controller: 'themeroller',
requires:['Ext.ux.colorpick.Field'],
items: [{
defaults: {
ui: 'core-container',
collapsible: true,
collapsed: false,
layout: 'responsivecolumn',
margin:10,
defaults:{
padding: 20
}
},
items: [{
title: Ngcp.csc.locales.themeroller.first_section_title[localStorage.getItem('languageSelected')],
items: [{
userCls: 'big-66 small-100',
items: [{
xtype: 'container',
defaults: {
width: '100%'
},
items: [{
xtype: 'colorfield',
fieldLabel: 'Base color',
bind: '{themeroller.basecolor}',
listeners: {
change: 'applyTheme'
}
}, {
xtype: 'colorselector',
hidden: true
}]
}, {
xtype: 'container',
defaults: {
width: '100%'
},
items: [{
xtype: 'colorfield',
fieldLabel: 'Font color',
bind: '{themeroller.fontcolor}',
listeners: {
change: 'applyTheme'
}
}, {
xtype: 'colorselector',
hidden: true
}]
}, {
xtype: 'container',
defaults: {
width: '100%'
},
items: [{
xtype: 'colorfield',
fieldLabel: 'Body bgcolor',
bind: '{themeroller.bodybgcolor}',
listeners: {
change: 'applyTheme'
}
}, {
xtype: 'colorselector',
hidden: true
}]
}, {
layout: 'hbox',
margin: '10 0 0 0',
defaults: {
xtype: 'button',
flex: 1
},
items: [{
text: 'reset',
handler: 'resetTheme',
margin: '0 5 0 0'
}, {
text: 'save',
handler: 'saveTheme'
}]
}]
}]
}, {
title: Ngcp.csc.locales.themeroller.second_section_title[localStorage.getItem('languageSelected')],
items: [{
userCls: 'big-66 small-100',
defaults: {
width: '100%',
listeners: {
change: 'applyTheme'
}
},
items: [{
xtype: 'textfield',
fieldLabel: Ngcp.csc.locales.themeroller.font_family[localStorage.getItem('languageSelected')],
bind: '{themeroller.fontfamily}'
}, {
xtype: 'combo',
fieldLabel: Ngcp.csc.locales.themeroller.font_weight[localStorage.getItem('languageSelected')],
bind: '{themeroller.fontweight}',
editable: false,
// left inline until new specs regardng themeroller
store: Ext.create('Ext.data.Store', {
fields: ['id'],
data: [{
"id": "normal"
}, {
"id": "bold"
}]
}),
valueField: 'id',
displayField: 'id'
}, {
xtype: 'numberfield',
minValue: 6,
editable: false,
bind: '{themeroller.fontsize}',
fieldLabel: Ngcp.csc.locales.themeroller.font_size[localStorage.getItem('languageSelected')]
}, {
layout: 'hbox',
margin: '10 0 0 0',
defaults: {
xtype: 'button',
flex: 1
},
items: [{
text: 'reset',
handler: 'resetTheme',
margin: '0 5 0 0'
}, {
text: 'save',
handler: 'saveTheme'
}]
}]
}]
}, {
title: Ngcp.csc.locales.themeroller.third_section_title[localStorage.getItem('languageSelected')],
items: [{
userCls: 'big-66 small-100',
defaults: {
width: '100%'
},
items: [{
xtype: 'filefield',
fieldLabel: Ngcp.csc.locales.themeroller.logo[localStorage.getItem('languageSelected')],
reference: 'logoField',
listeners: {
change: 'toggleLogo'
}
}, {
layout: 'hbox',
margin: '10 0 0 0',
defaults: {
xtype: 'button',
flex: 1
},
items: [{
text: 'reset',
handler: 'resetTheme',
margin: '0 5 0 0'
}, {
text: 'save',
handler: 'saveTheme'
}]
}]
}]
}]
}]
});

@ -12,7 +12,7 @@
}
.login-container {
background: url("/resources/images/background.jpg") no-repeat center center fixed;
background: url("/csc/resources/images/background.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;

@ -6,5 +6,5 @@ if [ -L "/usr/share/ngcp-csc/csc" ]; then
echo "/usr/share/ngcp-csc/csc is already a link, ignoring..."
else
mv "/usr/share/ngcp-csc/csc" "/usr/share/ngcp-csc/csc.orig"
ln -s "$VAGRANT_MNT/ngcp-csc/build/production" "/usr/share/ngcp-csc/csc"
ln -s "$VAGRANT_MNT/ngcp-csc/" "/usr/share/ngcp-csc/csc"
fi

Loading…
Cancel
Save