mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[ADF-721] Fix translation reference for dev task (#1923)
* move translation files in the bundles folder * fix after review ripristinate tslint and remove override tsconfig
This commit is contained in:
committed by
Denys Vuika
parent
8c032b2167
commit
139a9bf0d7
@@ -126,13 +126,6 @@ module.exports = {
|
|||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
},
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
{
|
{
|
||||||
from: 'favicon-96x96.png'
|
from: 'favicon-96x96.png'
|
||||||
},
|
},
|
||||||
|
@@ -58,6 +58,14 @@ module.exports = webpackMerge(commonConfig, {
|
|||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
|
//Deprecation old files translation strategy from 1.6.0 translation files are in the bundles folder
|
||||||
|
... alfrescoLibs.map(lib => {
|
||||||
|
return {
|
||||||
|
context: 'node_modules',
|
||||||
|
from: `${lib}/src/i18n/*`,
|
||||||
|
to: `assets/${lib}/i18n/*`
|
||||||
|
}
|
||||||
|
}),
|
||||||
... alfrescoLibs.map(lib => {
|
... alfrescoLibs.map(lib => {
|
||||||
return {
|
return {
|
||||||
context: `node_modules/${lib}/bundles/assets/` ,
|
context: `node_modules/${lib}/bundles/assets/` ,
|
||||||
|
@@ -2,6 +2,26 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
|
const alfrescoLibs = [
|
||||||
|
'ng2-activiti-analytics',
|
||||||
|
'ng2-activiti-diagrams',
|
||||||
|
'ng2-activiti-form',
|
||||||
|
'ng2-activiti-processlist',
|
||||||
|
'ng2-activiti-tasklist',
|
||||||
|
'ng2-alfresco-core',
|
||||||
|
'ng2-alfresco-datatable',
|
||||||
|
'ng2-alfresco-documentlist',
|
||||||
|
'ng2-alfresco-login',
|
||||||
|
'ng2-alfresco-search',
|
||||||
|
'ng2-alfresco-social',
|
||||||
|
'ng2-alfresco-tag',
|
||||||
|
'ng2-alfresco-upload',
|
||||||
|
'ng2-alfresco-userinfo',
|
||||||
|
'ng2-alfresco-viewer',
|
||||||
|
'ng2-alfresco-webscript'
|
||||||
|
];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -50,7 +70,7 @@ module.exports = {
|
|||||||
test: /\.ts$/,
|
test: /\.ts$/,
|
||||||
loader: 'tslint-loader',
|
loader: 'tslint-loader',
|
||||||
options: {
|
options: {
|
||||||
emitErrors: true,
|
emitErrors: false,
|
||||||
configFile: path.resolve(__dirname, './assets/tslint.json')
|
configFile: path.resolve(__dirname, './assets/tslint.json')
|
||||||
},
|
},
|
||||||
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
|
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
|
||||||
@@ -58,10 +78,9 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
test: /\.ts$/,
|
test: /\.ts$/,
|
||||||
use: ['ts-loader?' + JSON.stringify({
|
use: ['ts-loader?' + JSON.stringify({
|
||||||
"compilerOptions": {
|
"logInfoToStdOut": true,
|
||||||
"typeRoots": [
|
"logLevel": "error",
|
||||||
"../node_modules/@types"
|
"configFileName": path.resolve(__dirname, '../tsconfig.json')
|
||||||
]}
|
|
||||||
}), 'angular2-template-loader'],
|
}), 'angular2-template-loader'],
|
||||||
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
|
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
|
||||||
},
|
},
|
||||||
@@ -87,7 +106,7 @@ module.exports = {
|
|||||||
emitErrors: true,
|
emitErrors: true,
|
||||||
licenseFile: path.resolve(__dirname, './assets/license_header.txt')
|
licenseFile: path.resolve(__dirname, './assets/license_header.txt')
|
||||||
},
|
},
|
||||||
exclude: [/node_modules/, /bundles/, /dist/, /demo/, /rendering-queue.services.ts/],
|
exclude: [/node_modules/, /bundles/, /dist/, /demo/, /rendering-queue.services.ts/]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
||||||
@@ -112,8 +131,8 @@ module.exports = {
|
|||||||
"ng2-alfresco-core": path.resolve(__dirname, '../ng2-alfresco-core/index.ts'),
|
"ng2-alfresco-core": path.resolve(__dirname, '../ng2-alfresco-core/index.ts'),
|
||||||
"ng2-alfresco-datatable": path.resolve(__dirname, '../ng2-alfresco-datatable/index.ts'),
|
"ng2-alfresco-datatable": path.resolve(__dirname, '../ng2-alfresco-datatable/index.ts'),
|
||||||
"ng2-activiti-diagrams": path.resolve(__dirname, '../ng2-activiti-diagrams/index.ts'),
|
"ng2-activiti-diagrams": path.resolve(__dirname, '../ng2-activiti-diagrams/index.ts'),
|
||||||
"ng2-activiti-analytics":path.resolve(__dirname, '../ng2-activiti-analytics/index.ts'),
|
"ng2-activiti-analytics": path.resolve(__dirname, '../ng2-activiti-analytics/index.ts'),
|
||||||
"ng2-activiti-form":path.resolve(__dirname, '../ng2-activiti-form/index.ts'),
|
"ng2-activiti-form": path.resolve(__dirname, '../ng2-activiti-form/index.ts'),
|
||||||
"ng2-activiti-tasklist": path.resolve(__dirname, '../ng2-activiti-tasklist/index.ts'),
|
"ng2-activiti-tasklist": path.resolve(__dirname, '../ng2-activiti-tasklist/index.ts'),
|
||||||
"ng2-activiti-processlist": path.resolve(__dirname, '../ng2-activiti-processlist/index.ts'),
|
"ng2-activiti-processlist": path.resolve(__dirname, '../ng2-activiti-processlist/index.ts'),
|
||||||
"ng2-alfresco-documentlist": path.resolve(__dirname, '../ng2-alfresco-documentlist/index.ts'),
|
"ng2-alfresco-documentlist": path.resolve(__dirname, '../ng2-alfresco-documentlist/index.ts'),
|
||||||
@@ -131,6 +150,15 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([
|
||||||
|
... alfrescoLibs.map(lib => {
|
||||||
|
return {
|
||||||
|
from: `${lib}/src/i18n/`,
|
||||||
|
to: `${lib}/bundles/assets/${lib}/i18n/`
|
||||||
|
}
|
||||||
|
})
|
||||||
|
]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-activiti-analytics/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -104,14 +104,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -67,7 +67,7 @@ export class AnalyticsGeneratorComponent implements OnChanges {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
logService.info('AnalyticsGeneratorComponent');
|
logService.info('AnalyticsGeneratorComponent');
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-analytics', 'node_modules/ng2-activiti-analytics/src');
|
translateService.addTranslationFolder('ng2-activiti-analytics', 'assets/ng2-activiti-analytics');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@ export class AnalyticsReportHeatMapComponent implements OnInit {
|
|||||||
private analyticsService: AnalyticsService,
|
private analyticsService: AnalyticsService,
|
||||||
private formBuilder: FormBuilder) {
|
private formBuilder: FormBuilder) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-analytics', 'node_modules/ng2-activiti-analytics/src');
|
translateService.addTranslationFolder('ng2-activiti-analytics', 'assets/ng2-activiti-analytics');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -110,7 +110,7 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On
|
|||||||
private logService: LogService,
|
private logService: LogService,
|
||||||
private contentService: ContentService) {
|
private contentService: ContentService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-analytics', 'node_modules/ng2-activiti-analytics/src');
|
translateService.addTranslationFolder('ng2-activiti-analytics', 'assets/ng2-activiti-analytics');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ export class AnalyticsComponent implements OnChanges {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
logService.info('AnalyticsComponent');
|
logService.info('AnalyticsComponent');
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-analytics', 'node_modules/ng2-activiti-analytics/src');
|
translateService.addTranslationFolder('ng2-activiti-analytics', 'assets/ng2-activiti-analytics');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-activiti-diagrams/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -103,14 +103,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -67,7 +67,7 @@ export class DiagramComponent {
|
|||||||
private diagramsService: DiagramsService,
|
private diagramsService: DiagramsService,
|
||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-diagrams', 'node_modules/ng2-activiti-diagrams/src');
|
translateService.addTranslationFolder('ng2-activiti-diagrams', 'assets/ng2-activiti-diagrams');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-activiti-form/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -103,14 +103,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -53,7 +53,7 @@ export class ActivitiContent implements OnChanges {
|
|||||||
private logService: LogService,
|
private logService: LogService,
|
||||||
private contentService: ContentService) {
|
private contentService: ContentService) {
|
||||||
if (this.translate) {
|
if (this.translate) {
|
||||||
this.translate.addTranslationFolder('ng2-activiti-form', 'node_modules/ng2-activiti-form/src');
|
this.translate.addTranslationFolder('ng2-activiti-form', 'assets/ng2-activiti-form');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -88,7 +88,7 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
|
|||||||
super(formService, visibilityService, null, null, logService);
|
super(formService, visibilityService, null, null, logService);
|
||||||
|
|
||||||
if (this.translate) {
|
if (this.translate) {
|
||||||
this.translate.addTranslationFolder('ng2-activiti-form', 'node_modules/ng2-activiti-form/src');
|
this.translate.addTranslationFolder('ng2-activiti-form', 'assets/ng2-activiti-form');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showTitle = false;
|
this.showTitle = false;
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-activiti-processlist/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -106,14 +106,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -61,7 +61,7 @@ export class ActivitiProcessFilters implements OnInit, OnChanges {
|
|||||||
this.filter$ = new Observable<FilterProcessRepresentationModel>(observer => this.filterObserver = observer).share();
|
this.filter$ = new Observable<FilterProcessRepresentationModel>(observer => this.filterObserver = observer).share();
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('ng2-activiti-processlist', 'node_modules/ng2-activiti-processlist/src');
|
translate.addTranslationFolder('ng2-activiti-processlist', 'assets/ng2-activiti-processlist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ export class ActivitiProcessComments implements OnChanges {
|
|||||||
private activitiProcess: ActivitiProcessService) {
|
private activitiProcess: ActivitiProcessService) {
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('ng2-activiti-processlist', 'node_modules/ng2-activiti-processlist/src');
|
translate.addTranslationFolder('ng2-activiti-processlist', 'assets/ng2-activiti-processlist');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.comment$ = new Observable<Comment>(observer => this.commentObserver = observer).share();
|
this.comment$ = new Observable<Comment>(observer => this.commentObserver = observer).share();
|
||||||
|
@@ -71,7 +71,7 @@ export class ActivitiProcessInstanceDetails implements OnChanges {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('ng2-activiti-processlist', 'node_modules/ng2-activiti-processlist/src');
|
translate.addTranslationFolder('ng2-activiti-processlist', 'assets/ng2-activiti-processlist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ export class ActivitiProcessInstanceHeader {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('ng2-activiti-processlist', 'node_modules/ng2-activiti-processlist/src');
|
translate.addTranslationFolder('ng2-activiti-processlist', 'assets/ng2-activiti-processlist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -70,7 +70,7 @@ export class ActivitiProcessInstanceTasks implements OnInit, OnChanges {
|
|||||||
private activitiProcess: ActivitiProcessService,
|
private activitiProcess: ActivitiProcessService,
|
||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('ng2-activiti-processlist', 'node_modules/ng2-activiti-processlist/src');
|
translate.addTranslationFolder('ng2-activiti-processlist', 'assets/ng2-activiti-processlist');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.task$ = new Observable<TaskDetailsModel>(observer => this.taskObserver = observer).share();
|
this.task$ = new Observable<TaskDetailsModel>(observer => this.taskObserver = observer).share();
|
||||||
|
@@ -70,7 +70,7 @@ export class ActivitiProcessInstanceVariables implements OnInit, OnChanges {
|
|||||||
private activitiProcess: ActivitiProcessService) {
|
private activitiProcess: ActivitiProcessService) {
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('ng2-activiti-processlist', 'node_modules/ng2-activiti-processlist/src');
|
translate.addTranslationFolder('ng2-activiti-processlist', 'assets/ng2-activiti-processlist');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -71,7 +71,7 @@ export class ActivitiProcessInstanceListComponent implements OnChanges, AfterCon
|
|||||||
constructor(private processService: ActivitiProcessService,
|
constructor(private processService: ActivitiProcessService,
|
||||||
private translate: AlfrescoTranslationService) {
|
private translate: AlfrescoTranslationService) {
|
||||||
if (translate !== null) {
|
if (translate !== null) {
|
||||||
translate.addTranslationFolder('ng2-activiti-processlist', 'node_modules/ng2-activiti-processlist/src');
|
translate.addTranslationFolder('ng2-activiti-processlist', 'assets/ng2-activiti-processlist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,7 +60,7 @@ export class ActivitiStartProcessInstance implements OnChanges {
|
|||||||
private activitiProcess: ActivitiProcessService) {
|
private activitiProcess: ActivitiProcessService) {
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('ng2-activiti-processlist', 'node_modules/ng2-activiti-processlist/src');
|
translate.addTranslationFolder('ng2-activiti-processlist', 'assets/ng2-activiti-processlist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-activiti-tasklist/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -104,14 +104,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -71,7 +71,7 @@ export class ActivitiApps implements OnInit {
|
|||||||
private activitiTaskList: ActivitiTaskListService) {
|
private activitiTaskList: ActivitiTaskListService) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.apps$ = new Observable<AppDefinitionRepresentationModel>(observer => this.appsObserver = observer).share();
|
this.apps$ = new Observable<AppDefinitionRepresentationModel>(observer => this.appsObserver = observer).share();
|
||||||
|
@@ -69,7 +69,7 @@ export class ActivitiChecklist implements OnInit, OnChanges {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
this.task$ = new Observable<TaskDetailsModel>(observer => this.taskObserver = observer).share();
|
this.task$ = new Observable<TaskDetailsModel>(observer => this.taskObserver = observer).share();
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,7 @@ export class ActivitiComments implements OnChanges {
|
|||||||
private activitiTaskList: ActivitiTaskListService) {
|
private activitiTaskList: ActivitiTaskListService) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.comment$ = new Observable<Comment>(observer => this.commentObserver = observer).share();
|
this.comment$ = new Observable<Comment>(observer => this.commentObserver = observer).share();
|
||||||
|
@@ -62,7 +62,7 @@ export class ActivitiFilters implements OnInit, OnChanges {
|
|||||||
this.filter$ = new Observable<FilterRepresentationModel>(observer => this.filterObserver = observer).share();
|
this.filter$ = new Observable<FilterRepresentationModel>(observer => this.filterObserver = observer).share();
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -49,7 +49,7 @@ export class ActivitiPeopleSearch implements OnInit, AfterViewInit {
|
|||||||
|
|
||||||
constructor(private translateService: AlfrescoTranslationService) {
|
constructor(private translateService: AlfrescoTranslationService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.searchUser
|
this.searchUser
|
||||||
|
@@ -60,7 +60,7 @@ export class ActivitiPeople {
|
|||||||
private peopleService: ActivitiPeopleService,
|
private peopleService: ActivitiPeopleService,
|
||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
this.peopleSearch$ = new Observable<User[]>(observer => this.peopleSearchObserver = observer).share();
|
this.peopleSearch$ = new Observable<User[]>(observer => this.peopleSearchObserver = observer).share();
|
||||||
}
|
}
|
||||||
|
@@ -60,7 +60,7 @@ export class ActivitiStartTaskButton {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -125,7 +125,7 @@ export class ActivitiTaskDetails implements OnInit, OnChanges {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -40,7 +40,7 @@ export class ActivitiTaskHeader {
|
|||||||
private activitiTaskService: ActivitiTaskListService,
|
private activitiTaskService: ActivitiTaskListService,
|
||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -101,7 +101,7 @@ export class ActivitiTaskList implements OnChanges, AfterContentInit {
|
|||||||
private taskListService: ActivitiTaskListService,
|
private taskListService: ActivitiTaskListService,
|
||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ export class TaskAttachmentListComponent implements OnChanges {
|
|||||||
private contentService: ContentService) {
|
private contentService: ContentService) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-activiti-tasklist', 'node_modules/ng2-activiti-tasklist/src');
|
translateService.addTranslationFolder('ng2-activiti-tasklist', 'assets/ng2-activiti-tasklist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
3
ng2-components/ng2-alfresco-core/src/i18n/en.json
Normal file
3
ng2-components/ng2-alfresco-core/src/i18n/en.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-datatable/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -103,14 +103,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
3
ng2-components/ng2-alfresco-datatable/src/i18n/en.json
Normal file
3
ng2-components/ng2-alfresco-datatable/src/i18n/en.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-documentlist/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -104,14 +104,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -167,7 +167,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
|
|||||||
private el: ElementRef) {
|
private el: ElementRef) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-alfresco-documentlist', 'node_modules/ng2-alfresco-documentlist/src');
|
translateService.addTranslationFolder('ng2-alfresco-documentlist', 'assets/ng2-alfresco-documentlist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -65,7 +65,7 @@ export class DocumentMenuActionComponent implements OnChanges {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-alfresco-documentlist', 'node_modules/ng2-alfresco-documentlist/src');
|
translateService.addTranslationFolder('ng2-alfresco-documentlist', 'assets/ng2-alfresco-documentlist');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -30,7 +30,7 @@ describe('DocumentActionsService', () => {
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
documentListService = new DocumentListServiceMock();
|
documentListService = new DocumentListServiceMock();
|
||||||
contentService = new AlfrescoContentService(null, null);
|
contentService = new AlfrescoContentService(null, null, null);
|
||||||
service = new DocumentActionsService(documentListService, contentService);
|
service = new DocumentActionsService(documentListService, contentService);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-login/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -103,14 +103,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -93,7 +93,7 @@ export class AlfrescoLoginComponent implements OnInit {
|
|||||||
private logService: LogService) {
|
private logService: LogService) {
|
||||||
|
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-alfresco-login', 'node_modules/ng2-alfresco-login/src');
|
translateService.addTranslationFolder('ng2-alfresco-login', 'assets/ng2-alfresco-login');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.initFormError();
|
this.initFormError();
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-search/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -106,14 +106,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -67,7 +67,7 @@ describe('AlfrescoSearchAutocompleteComponent', () => {
|
|||||||
let translationService = fixture.debugElement.injector.get(AlfrescoTranslationService);
|
let translationService = fixture.debugElement.injector.get(AlfrescoTranslationService);
|
||||||
spyOn(translationService, 'addTranslationFolder');
|
spyOn(translationService, 'addTranslationFolder');
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(translationService.addTranslationFolder).toHaveBeenCalledWith('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/src');
|
expect(translationService.addTranslationFolder).toHaveBeenCalledWith('ng2-alfresco-search', 'assets/ng2-alfresco-search');
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('search results', () => {
|
describe('search results', () => {
|
||||||
|
@@ -74,7 +74,7 @@ export class AlfrescoSearchAutocompleteComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if (this.translateService) {
|
if (this.translateService) {
|
||||||
this.translateService.addTranslationFolder('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/src');
|
this.translateService.addTranslationFolder('ng2-alfresco-search', 'assets/ng2-alfresco-search');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -69,7 +69,7 @@ describe('AlfrescoSearchControlComponent', () => {
|
|||||||
spyOn(translationService, 'addTranslationFolder');
|
spyOn(translationService, 'addTranslationFolder');
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(translationService.addTranslationFolder)
|
expect(translationService.addTranslationFolder)
|
||||||
.toHaveBeenCalledWith('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/src');
|
.toHaveBeenCalledWith('ng2-alfresco-search', 'assets/ng2-alfresco-search');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should emit searchChange when search term input changed', (done) => {
|
it('should emit searchChange when search term input changed', (done) => {
|
||||||
|
@@ -102,7 +102,7 @@ export class AlfrescoSearchControlComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
this.setupFocusEventHandlers();
|
this.setupFocusEventHandlers();
|
||||||
|
|
||||||
this.translateService.addTranslationFolder('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/src');
|
this.translateService.addTranslationFolder('ng2-alfresco-search', 'assets/ng2-alfresco-search');
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
|
@@ -157,7 +157,7 @@ describe('AlfrescoSearchComponent', () => {
|
|||||||
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
|
|
||||||
expect(translationService.addTranslationFolder).toHaveBeenCalledWith('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/src');
|
expect(translationService.addTranslationFolder).toHaveBeenCalledWith('ng2-alfresco-search', 'assets/ng2-alfresco-search');
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Search results', () => {
|
describe('Search results', () => {
|
||||||
|
@@ -72,7 +72,7 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
if (this.translateService !== null) {
|
if (this.translateService !== null) {
|
||||||
this.translateService.addTranslationFolder('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/src');
|
this.translateService.addTranslationFolder('ng2-alfresco-search', 'assets/ng2-alfresco-search');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.route) {
|
if (this.route) {
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-social/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -103,14 +103,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
3
ng2-components/ng2-alfresco-social/src/i18n/en.json
Normal file
3
ng2-components/ng2-alfresco-social/src/i18n/en.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-tag/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -103,14 +103,7 @@ module.exports = {
|
|||||||
context: 'resources/i18n',
|
context: 'resources/i18n',
|
||||||
from: '**/*.json',
|
from: '**/*.json',
|
||||||
to: 'resources/i18n'
|
to: 'resources/i18n'
|
||||||
},
|
|
||||||
... alfrescoLibs.map(lib => {
|
|
||||||
return {
|
|
||||||
context: 'node_modules',
|
|
||||||
from: `${lib}/src/i18n/*.json`,
|
|
||||||
to: 'node_modules'
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
|
@@ -58,7 +58,7 @@ export class TagActionsComponent {
|
|||||||
|
|
||||||
constructor(private tagService: TagService, private translateService: AlfrescoTranslationService) {
|
constructor(private tagService: TagService, private translateService: AlfrescoTranslationService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-alfresco-tag', 'node_modules/ng2-alfresco-tag/src');
|
translateService.addTranslationFolder('ng2-alfresco-tag', 'assets/ng2-alfresco-tag');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.tagService.refresh.subscribe(() => {
|
this.tagService.refresh.subscribe(() => {
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-upload/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -53,7 +53,7 @@ export class FileUploadingDialogComponent implements OnInit, OnDestroy {
|
|||||||
translateService: AlfrescoTranslationService,
|
translateService: AlfrescoTranslationService,
|
||||||
private uploadService: UploadService) {
|
private uploadService: UploadService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-alfresco-upload', 'node_modules/ng2-alfresco-upload/src');
|
translateService.addTranslationFolder('ng2-alfresco-upload', 'assets/ng2-alfresco-upload');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ export class UploadButtonComponent implements OnInit, OnChanges {
|
|||||||
private notificationService: NotificationService,
|
private notificationService: NotificationService,
|
||||||
private settingsService: AlfrescoSettingsService) {
|
private settingsService: AlfrescoSettingsService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-alfresco-upload', 'node_modules/ng2-alfresco-upload/src');
|
translateService.addTranslationFolder('ng2-alfresco-upload', 'assets/ng2-alfresco-upload');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ export class UploadDragAreaComponent {
|
|||||||
private logService: LogService,
|
private logService: LogService,
|
||||||
private notificationService: NotificationService) {
|
private notificationService: NotificationService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-alfresco-upload', 'node_modules/ng2-alfresco-upload/src');
|
translateService.addTranslationFolder('ng2-alfresco-upload', 'assets/ng2-alfresco-upload');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-userinfo/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
@@ -54,7 +54,7 @@ export class UserInfoComponent implements OnInit {
|
|||||||
private authService: AlfrescoAuthenticationService,
|
private authService: AlfrescoAuthenticationService,
|
||||||
private translateService: AlfrescoTranslationService) {
|
private translateService: AlfrescoTranslationService) {
|
||||||
if (translateService) {
|
if (translateService) {
|
||||||
translateService.addTranslationFolder('ng2-alfresco-userinfo', 'node_modules/ng2-alfresco-userinfo/src');
|
translateService.addTranslationFolder('ng2-alfresco-userinfo', 'assets/ng2-alfresco-userinfo');
|
||||||
}
|
}
|
||||||
authService.onLogin.subscribe((response) => {
|
authService.onLogin.subscribe((response) => {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -81,7 +82,7 @@ module.exports = {
|
|||||||
emitErrors: true,
|
emitErrors: true,
|
||||||
licenseFile: path.resolve(__dirname, './assets/license_header.txt')
|
licenseFile: path.resolve(__dirname, './assets/license_header.txt')
|
||||||
},
|
},
|
||||||
exclude: [/node_modules/, /bundles/, /dist/, /demo/, /rendering-queue.services.ts/ ],
|
exclude: [/node_modules/, /bundles/, /dist/, /demo/, /rendering-queue.services.ts/],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-viewer/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
3
ng2-components/ng2-alfresco-viewer/src/i18n/en.json
Normal file
3
ng2-components/ng2-alfresco-viewer/src/i18n/en.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
|||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
@@ -110,6 +111,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new CopyWebpackPlugin([{
|
||||||
|
from: `src/i18n/`,
|
||||||
|
to: `bundles/assets/ng2-alfresco-webscript/i18n/`
|
||||||
|
}]),
|
||||||
|
|
||||||
new webpack.NoEmitOnErrorsPlugin(),
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
|
||||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||||
|
3
ng2-components/ng2-alfresco-webscript/src/i18n/en.json
Normal file
3
ng2-components/ng2-alfresco-webscript/src/i18n/en.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
38
ng2-components/tsconfig.json
Normal file
38
ng2-components/tsconfig.json
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"module": "commonjs",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"sourceMap": true,
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"noLib": false,
|
||||||
|
"allowUnreachableCode": false,
|
||||||
|
"allowUnusedLabels": false,
|
||||||
|
"noImplicitAny": false,
|
||||||
|
"noImplicitReturns": false,
|
||||||
|
"noImplicitUseStrict": false,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"removeComments": true,
|
||||||
|
"declaration": true,
|
||||||
|
"outDir": "./dist",
|
||||||
|
"lib": [
|
||||||
|
"es2015",
|
||||||
|
"dom"
|
||||||
|
],
|
||||||
|
"suppressImplicitAnyIndexErrors": true
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"*/node_modules",
|
||||||
|
"*/demo",
|
||||||
|
"config",
|
||||||
|
"coverage",
|
||||||
|
"node_modules",
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"angularCompilerOptions": {
|
||||||
|
"strictMetadataEmit": false,
|
||||||
|
"skipTemplateCodegen": true
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user