5334-editDepartment #1521
|
@ -22,7 +22,8 @@ export async function getBrowser() {
|
|||
env.E2E_SHOW = true;
|
||||
}
|
||||
|
||||
const headless = !env.E2E_SHOW;
|
||||
const headless = env.E2E_SHOW ? false : 'new';
|
||||
|
||||
const browser = await Puppeteer.launch({
|
||||
args,
|
||||
defaultViewport: null,
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
ng-model="filter.agencyModeFk">
|
||||
</vn-autocomplete>
|
||||
<vn-autocomplete vn-one
|
||||
url="Agencies"
|
||||
data="agencies"
|
||||
label="Agency Agreement"
|
||||
show-field="name"
|
||||
value-field="id"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<vn-autocomplete vn-one
|
||||
label="Warehouse"
|
||||
ng-model="$ctrl.dms.warehouseId"
|
||||
url="Warehouses"
|
||||
data="warehouses"
|
||||
show-field="name"
|
||||
value-field="id">
|
||||
</vn-autocomplete>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
|
@ -9,7 +9,7 @@
|
|||
"url": "https://gitea.verdnatura.es/verdnatura/salix"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=20"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.2.2",
|
||||
|
@ -33,19 +33,20 @@
|
|||
"loopback-boot": "3.3.1",
|
||||
"loopback-component-explorer": "^6.5.0",
|
||||
"loopback-component-storage": "3.6.1",
|
||||
"loopback-connector-mysql": "^5.4.3",
|
||||
"loopback-connector-mysql": "^6.2.0",
|
||||
"loopback-connector-remote": "^3.4.1",
|
||||
"loopback-context": "^3.4.0",
|
||||
"loopback-context": "^3.5.2",
|
||||
"mailparser": "^2.8.0",
|
||||
"md5": "^2.2.1",
|
||||
"node-ssh": "^11.0.0",
|
||||
"object-diff": "0.0.4",
|
||||
"object.pick": "^1.3.0",
|
||||
"puppeteer": "^18.0.5",
|
||||
"puppeteer": "^20.3.0",
|
||||
"read-chunk": "^3.2.0",
|
||||
"require-yaml": "0.0.1",
|
||||
"smbhash": "0.0.1",
|
||||
"strong-error-handler": "^2.3.2",
|
||||
"url-loader": "^4.1.1",
|
||||
"uuid": "^3.3.3",
|
||||
"vn-loopback": "file:./loopback",
|
||||
"vn-print": "file:./print",
|
||||
|
@ -58,15 +59,15 @@
|
|||
"@babel/register": "^7.7.7",
|
||||
"angular-mocks": "^1.7.9",
|
||||
"babel-jest": "^26.0.1",
|
||||
"babel-loader": "^8.0.6",
|
||||
"core-js": "^3.9.1",
|
||||
"css-loader": "^2.1.0",
|
||||
"babel-loader": "^8.2.4",
|
||||
"core-js": "^3.30.1",
|
||||
"css-loader": "^6.7.4",
|
||||
"del": "^2.2.2",
|
||||
"eslint": "^7.11.0",
|
||||
"eslint-config-google": "^0.11.0",
|
||||
"eslint-plugin-jasmine": "^2.10.1",
|
||||
"fancy-log": "^1.3.2",
|
||||
"file-loader": "^1.1.11",
|
||||
"file-loader": "^6.2.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-env": "^0.4.0",
|
||||
|
@ -79,9 +80,9 @@
|
|||
"gulp-yaml": "^1.0.1",
|
||||
"html-loader": "^0.4.5",
|
||||
"html-loader-jest": "^0.2.1",
|
||||
"html-webpack-plugin": "^4.0.0-beta.11",
|
||||
"html-webpack-plugin": "^5.5.1",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jasmine": "^4.5.0",
|
||||
"jasmine": "^5.0.0",
|
||||
"jasmine-reporters": "^2.4.0",
|
||||
"jasmine-spec-reporter": "^7.0.0",
|
||||
"jest": "^26.0.1",
|
||||
|
@ -90,15 +91,16 @@
|
|||
"merge-stream": "^1.0.1",
|
||||
"minimist": "^1.2.5",
|
||||
"mysql2": "^1.7.0",
|
||||
"node-sass": "^4.14.1",
|
||||
"node-sass": "^9.0.0",
|
||||
"nodemon": "^2.0.16",
|
||||
"plugin-error": "^1.0.1",
|
||||
"raw-loader": "^1.0.0",
|
||||
"raw-loader": "^4.0.2",
|
||||
"regenerator-runtime": "^0.13.7",
|
||||
"sass-loader": "^7.3.1",
|
||||
"style-loader": "^0.23.1",
|
||||
"webpack": "^4.41.5",
|
||||
"webpack-cli": "^3.3.10",
|
||||
"sass": "^1.62.1",
|
||||
"sass-loader": "^13.3.0",
|
||||
"style-loader": "^3.3.3",
|
||||
"webpack": "^5.83.1",
|
||||
"webpack-cli": "^5.1.1",
|
||||
"webpack-dev-server": "^3.11.0",
|
||||
"webpack-merge": "^4.2.2",
|
||||
"yaml-loader": "^0.5.0"
|
||||
|
|
|
@ -9,7 +9,7 @@ module.exports = {
|
|||
concurrency: Cluster.CONCURRENCY_CONTEXT,
|
||||
maxConcurrency: cpus().length,
|
||||
puppeteerOptions: {
|
||||
headless: true,
|
||||
headless: 'new',
|
||||
args: [
|
||||
'--no-sandbox',
|
||||
'--disable-setuid-sandbox',
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"name": "vn-print",
|
||||
"version": "2.0.0",
|
||||
"description": "Print service",
|
||||
"main": "server/server.js",
|
||||
"scripts": {
|
||||
"start": "node server/server.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
|
|
|
@ -20,13 +20,13 @@ let baseConfig = {
|
|||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /node_modules/,
|
||||
query: {
|
||||
options: {
|
||||
presets: ['@babel/preset-env'],
|
||||
plugins: ['@babel/plugin-syntax-dynamic-import']
|
||||
}
|
||||
}, {
|
||||
test: /\.yml$/,
|
||||
loader: 'json-loader!yaml-loader'
|
||||
use: ['json-loader!yaml-loader']
|
||||
}, {
|
||||
test: /\.html$/,
|
||||
loader: 'html-loader',
|
||||
|
@ -38,39 +38,34 @@ let baseConfig = {
|
|||
}
|
||||
}, {
|
||||
test: /\.css$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'style-loader'
|
||||
}, {
|
||||
loader: 'css-loader'
|
||||
}
|
||||
]
|
||||
use: ['style-loader', 'css-loader']
|
||||
}, {
|
||||
test: /\.scss$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'style-loader'
|
||||
}, {
|
||||
loader: 'css-loader'
|
||||
}, {
|
||||
'style-loader', 'css-loader', {
|
||||
loader: 'sass-loader',
|
||||
options: {
|
||||
// XXX: Don't work in Firefox
|
||||
// https://github.com/webpack-contrib/style-loader/issues/303
|
||||
// sourceMap: true,
|
||||
includePaths: [
|
||||
path.resolve(__dirname, 'front/core/styles')
|
||||
]
|
||||
sassOptions: {
|
||||
includePaths: [
|
||||
path.resolve(__dirname, 'front/core/styles/')
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}, {
|
||||
test: /\.(svg|png|ttf|woff|woff2)$/,
|
||||
loader: 'file-loader'
|
||||
test: /\.(woff(2)?|ttf|eot|svg|png)(\?v=\d+\.\d+\.\d+)?$/,
|
||||
type: 'asset/resource',
|
||||
}, {
|
||||
test: /manifest\.json$/,
|
||||
type: 'javascript/auto',
|
||||
loader: 'file-loader'
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
esModule: false,
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -105,7 +100,7 @@ let baseConfig = {
|
|||
chunks: ['salix']
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
|
||||
'process.env.NODE_ENV': JSON.stringify(env)
|
||||
})
|
||||
],
|
||||
devtool: 'source-map',
|
||||
|
@ -124,7 +119,7 @@ let prodConfig = {
|
|||
chunkFilename: '[id].[chunkhash].js'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.HashedModuleIdsPlugin()
|
||||
new webpack.ids.HashedModuleIdsPlugin()
|
||||
],
|
||||
performance: {
|
||||
maxEntrypointSize: 2000000,
|
||||
|
|
Loading…
Reference in New Issue