webxcerpt / opencpq Goto Github PK
View Code? Open in Web Editor NEWA library for in-browser product-configuration
Home Page: http://webxcerpt.github.io/openCPQ
License: MIT License
A library for in-browser product-configuration
Home Page: http://webxcerpt.github.io/openCPQ
License: MIT License
If a slot with an even number is already equipped, it should not be allowed to use a double-width board in the preceding slot. (It need not be impossible, but an error should be displayed.)
Hi! ๐
Firstly, thanks for your work on this project! ๐
Today I used patch-package to patch [email protected]
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/opencpq/dst/lib/root.js b/node_modules/opencpq/dst/lib/root.js
index bb0ab0b..b569992 100644
--- a/node_modules/opencpq/dst/lib/root.js
+++ b/node_modules/opencpq/dst/lib/root.js
@@ -3,7 +3,7 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var React = require("react");
-var saveAs = require("browser-filesaver");
+var FileSaver = require("file-saver");
var _require = require('react-bootstrap');
@@ -145,7 +145,7 @@ var RootWidget = React.createClass({
},
_export: function _export() {
var blob = new Blob([JSON.stringify(this.state.now, null, 2)], { type: "application/json;charset=utf-8" });
- saveAs(blob, "openCPQ.json");
+ FileSaver.saveAs(blob, "openCPQ.json");
},
render: function render() {
var _this3 = this;
This issue body was partially generated by patch-package.
Semantically equivalent states should be represented in the same way, no matter which way we reached the state. This is to avoid bugs due to subtle dependencies on the representation.
Examples:
undefined
.$detail
.Retractions need to be propagated upwards. For example, empty groups objects must be replaced with undefined
.
Implementation note: Retractions are implemented as updateTo(undefined)
. To fulfill this ticket, many implementations of updateTo
would have to treat an argument of undefined
specially. Perhaps it is is a simpler/cleaner approach to have a specialized retract
method in the context.
(Alternatively, we might use the representation with explicitly undefined
components as the canonical representation. This would however require to "expand" state subtrees eagerly.)
I don't know if you guys are still mantaining this project, but exporting in general and also, exporting to CSV doesn't work in lastest Chromium, Firefox and Edge. This is both in the demo and my local git clone.
Please let me know if you have a workaround for this issue, I'm from Argentina and I'm interested in using openCPQ.
When I used:
node_modules/.bin/webpack --progress --production
it showed me the error:
'node modules' is not recognised as an internal or external command, operable program or batch file.
I was following the steps mentioned in your tutorials. Can you please help me with this?
node version: v12.18.3
npm version: 6.14.6
OS: Windows 8.1 64bits
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.