Commit 0a1dffb9 authored by Michael BAILLY's avatar Michael BAILLY

Logo customization for Combient

parent e5cc60b9
# linagora.esn.custom-g2k
# linagora.esn.custom-combient
Customization module for Gainde2000
......@@ -24,4 +24,4 @@ and restart your server.
The logo images are located in **frontend/images/logo.png** (desktop) and **frontend/images/logo-square.png** (mobile menu).
Just overwrite those image files, using images of approximatelly the same size, to update the logo that will be displayed in the OpenPaaS interface.
\ No newline at end of file
Just overwrite those image files, using images of approximatelly the same size, to update the logo that will be displayed in the OpenPaaS interface.
{
"custom-g2k module" : "custom-g2k module",
"custom-combient module" : "custom-combient module",
"My sidebar" : "My sidebar"
}
{
"custom-g2k module" : "Le module custom-g2k",
"custom-combient module" : "Le module custom-combient",
"My sidebar" : "Ma barre latérale"
}
{
"custom-g2k module" : "Mô-đun hạt mầm",
"custom-combient module" : "Mô-đun hạt mầm",
"My sidebar" : "Thanh bên của tôi"
}
{
"name": "linagora.esn.custom-g2k",
"name": "linagora.esn.custom-combient",
"main": "index.js",
"version": "0.0.1",
"authors": [
......@@ -23,16 +23,5 @@
"tests"
],
"devDependencies": {
"angular": "1.3.20",
"angular-component": "linagora/angular-component#0.1.4",
"angular-mocks": "1.3.20",
"angular-translate": "2.11.0",
"angular-translate-loader-static-files": "2.11.0",
"angular-ui-router": "0.2.18",
"chai": "3.0.0",
"dynamic-directive": "2.0.0",
"jquery": "2.1.1",
"restangular": "1.3.1",
"sinon-chai": "2.8.0"
}
}
@primaryColor: #BADA55;
@darkPrimaryColor: darken(@primaryColor, 10%);
@lightPrimaryColor: lighten(@primaryColor, 10%);
@textPrimaryColor: @m-white; // Text color for @primaryColor background
@accentColor: @m-amber;
@brand-primary: @primaryColor; // Override default bootstrap primary
@body-bg: darken(@m-white, 3%);
@fontName: "RobotoDraft","Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
@defaultFont: 14px @fontName;
@text-color: lighten(@m-black, 20%);
@secondaryTextColor: lighten(@text-color, 20%);
@lighterSecondaryTextColor: lighten(@secondaryTextColor, 20%);
@lightenBgColor: lighten(@body-bg, 5%);
@darkenBgColor: darken(@body-bg, 3%);
@black-alpha-10: rgba(0, 0, 0, 0.1);
@black-alpha-15: rgba(0, 0, 0, 0.15);
@white-alpha-10: rgba(255, 255, 255, 0.1);
(function() {
'use strict';
var MODULE_NAME = 'linagora.esn.custom-g2k';
var MODULE_NAME = 'linagora.esn.custom-combient';
angular.module(MODULE_NAME, [
])
......@@ -10,9 +10,9 @@
restrict: 'C',
link: function(scope, element) {
if (element.closest('#header').length) {
element.attr('src', '/linagora.esn.custom-g2k/images/logo.png');
element.attr('src', '/linagora.esn.custom-combient/images/logo.png');
} else {
element.attr('src', '/linagora.esn.custom-g2k/images/logo-square.png');
element.attr('src', '/linagora.esn.custom-combient/images/logo-square.png');
}
}
};
......
frontend/images/logo-square.png

8.48 KB | W: | H:

frontend/images/logo-square.png

1.94 KB | W: | H:

frontend/images/logo-square.png
frontend/images/logo-square.png
frontend/images/logo-square.png
frontend/images/logo-square.png
  • 2-up
  • Swipe
  • Onion skin
frontend/images/logo.png

65.8 KB | W: | H:

frontend/images/logo.png

14.5 KB | W: | H:

frontend/images/logo.png
frontend/images/logo.png
frontend/images/logo.png
frontend/images/logo.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -2,10 +2,9 @@
const AwesomeModule = require('awesome-module');
const Dependency = AwesomeModule.AwesomeModuleDependency;
const path = require('path');
const glob = require('glob-all');
const FRONTEND_JS_PATH = __dirname + '/frontend/app/';
const AWESOME_MODULE_NAME = 'linagora.esn.custom-g2k';
const AWESOME_MODULE_NAME = 'linagora.esn.custom-combient';
const awesomeModule = new AwesomeModule(AWESOME_MODULE_NAME, {
dependencies: [
......@@ -48,12 +47,10 @@ const awesomeModule = new AwesomeModule(AWESOME_MODULE_NAME, {
const frontendJsFilesUri = frontendJsFilesFullPath.map(function(filepath) {
return filepath.replace(FRONTEND_JS_PATH, '');
});
const lessFile = path.join(FRONTEND_JS_PATH, 'app.less');
webserverWrapper.injectAngularAppModules(AWESOME_MODULE_NAME, frontendJsFilesUri, AWESOME_MODULE_NAME, ['esn'], {
localJsFiles: frontendJsFilesFullPath
});
webserverWrapper.injectLess(AWESOME_MODULE_NAME, [lessFile], 'esn');
webserverWrapper.addApp(AWESOME_MODULE_NAME, app);
......
{
"name": "linagora.esn.custom-g2k",
"name": "linagora.esn.custom-combient",
"version": "0.0.1",
"description": "OpenPaaS Module with dedicated G2K look",
"description": "OpenPaaS Module with dedicated combient look",
"main": "index.js",
"devDependencies": {
"@linagora/grunt-i18n-checker": "2.0.5",
......@@ -50,7 +50,7 @@
},
"repository": {
"type": "git",
"url": "https://ci.linagora.com/linagora/lgs/openpaas/linagora.esn.custom-g2k.git"
"url": "https://ci.linagora.com/linagora/lgs/openpaas/linagora.esn.custom-combient.git"
},
"author": "Linagora R&D",
"license": "AGPL-3.0",
......
'use strict';
const MODULE_DIR_NAME = '/linagora.esn.custom-g2k';
const MODULE_DIR_NAME = '/linagora.esn.custom-combient';
module.exports = function(config) {
config.set({
......
......@@ -7,7 +7,7 @@ const path = require('path');
const testConfig = require('../config/servers-conf');
const basePath = path.resolve(__dirname + '/../../node_modules/linagora-rse');
const backendPath = path.normalize(__dirname + '/../../backend');
const MODULE_NAME = 'linagora.esn.custom-g2k';
const MODULE_NAME = 'linagora.esn.custom-combient';
let rse;
before(function(done) {
......
......@@ -2,7 +2,7 @@
const request = require('supertest');
const expect = require('chai').expect;
const MODULE_NAME = 'linagora.esn.custom-g2k';
const MODULE_NAME = 'linagora.esn.custom-combient';
describe('The example API', function() {
let user, app;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment