Comments (9)
Hi @jhawlwut!
Sorry for being late with the reply, I completely forgot!
As for VaadinGridImport.nocache.js
, it’s actually generated JavaScript, compiled from the GWT source code for the grid. v-grid
is actually a Web Component wrapper for the Vaadin Framework Grid component (see https://vaadin.com/grid), and the original implementation is written in Java.
So you should never modify the compiled JS code. You can generate a human readable version of the file if you want to, though. There are instructions in the readme how to set up the project and how to compile it.
I’m not sure if it would be helpful to include the unobfuscated version of the compiled JS in the release package. Perhaps for debugging, but since you can’t do the fix in the JS code, I don’t really see the point.
from vaadin-grid.
Closing, since I don’t think we will ever publish the unobfuscated JS, it really doesn’t serve the users. It might just give the wrong idea that it can be directly modified.
If you wish to debug the generated JS, you can use the "pretty" output option described in the readme: https://github.com/vaadin/vaadin-grid#development-protips
from vaadin-grid.
I have to disagree with this logic...
-
unobfuscated code does not promote 'editing the file directly' - it does however promote troubleshooting and opening more detailed bug reports, or pull requests to fix the bug because they were able to quickly and easily delve into the code and with minimal effort, find and fix it.
-
It also allows for developers to work the compressing into their workflow which may include extern and or SourceMap generation to aide in their development process.
Please don't limit your users ability to help themselves AND your team in making vaadin-grid even better.
from vaadin-grid.
Here's the <vaadin-grid>
0.9.0-beta5 compiled with pretty (ugly) formatting:
https://gist.github.com/Saulis/2037bcebfe217251df62
If someone finds this helpful in any way, we might reconsider including the prettified JS in our packaging.
from vaadin-grid.
Yeah, Marcus showed me this yesterday, the fact that this is generated from
GWT didnt really register initially. The 'pretty' code is almost as bad as
the minified code :(
-Karl Tiedt
On Thu, Nov 12, 2015 at 12:24 AM, Sauli Tähkäpää [email protected]
wrote:
Here's the 0.9.0-beta5 compiled with pretty (ugly)
formatting:
https://gist.github.com/Saulis/2037bcebfe217251df62If someone finds this helpful in any way, we might reconsider including it
in our packaging.—
Reply to this email directly or view it on GitHub
#101 (comment).
from vaadin-grid.
While trying to make vaadin grid work under Ionic 2 application I encountered very strange issue only in FF. So, I would find helpful if human-readable version was available at cdn near https://cdn.vaadin.com/vaadin-core-elements/latest/vaadin-grid/vaadin-grid.min.js .
Using the gist above I was able to match a bit outdated unminified code with latest minified and find a workaround. But to understand the initial cause and fix it I will definitely need a latest human-readable version.
from vaadin-grid.
Tried to build my own according to instructions, but Maven 3.3.3 failed to resolve dependencies (at both master
branch and v1.2.1
tag).
[ERROR] Failed to execute goal on project vaadin-grid: Could not resolve dependencies for project com.vaadin.elements:vaadin-grid:war:1.2.0: Failed to collect dependencies at com.vaadin:vaadin-widgets:jar:7.7.0.elements3: Failed to read artifact descriptor for com.vaadin:vaadin-widgets:jar:7.7.0.elements3: Failure to find com.vaadin:vaadin-root:pom:7.7.0-SNAPSHOT in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
from vaadin-grid.
For some reason there is a dependency missing in maven repos.
In the meanwhile we fix the issue, you can change <vaadin.version>7.7.0.elements3</vaadin.version>
by <vaadin.version>7.7.0.elements2</vaadin.version>
in java/pom.xml
from vaadin-grid.
@vbolshutkin I would recommend you to try upgrading to grid 2.0 already. It was completely rewritten in JavaScript, should be a bit easier to debug.
The latest release is v2.0.0-alpha4
. No need to upgrade Polymer, we are still using Polymer v1.x in <vaadin-grid>
v2.0. See this wiki page for the API changes: https://github.com/vaadin/vaadin-grid/wiki/Migration-from-1.*-to-2.0
from vaadin-grid.
Related Issues (20)
- TypeScript generics to allow declaring GridItem type HOT 1
- vaadin grid current row highlight issue HOT 1
- TreeGrid regression since 14.4.3 HOT 9
- Ellipses in selection column HOT 4
- 18.0.3 breaks grid in grid details HOT 1
- setItemDetailsRenderer in Vaadin 14.4.5 produce (TypeError) : $0.$connector HOT 1
- Clearing grid filtering is not working HOT 2
- Scrolling in a grid on iOS (Safari, Chrome) impossible HOT 6
- Grid.getDataProvider().refreshAll() length must not be negative HOT 1
- Grid with item details opened- after item deleting and grid refreshing attribute 'details-opened' stays in a row
- Client-side exception thrown when hiding column, add item, and refresh data provider HOT 4
- Grid: AppendFooterRow produces an Error when appending more than 8 FooterRows HOT 1
- TreeGrid regression regarding garbled scrolling output HOT 3
- Vaadin-grid horizontal scroll issue in iOS 14 HOT 15
- Getter for grid's selection mode HOT 2
- Sorting indicators are not preserved when column order is changed using Grid#setColumnOrder
- Grid throws UnsupportedOperationException if buffered editor is open during PreserveOnRefresh HOT 4
- Grid column width is calculated wrong on Safari 14.0.3 (Big Sur) HOT 6
- GridPro "out of memory" on Firefox facing 1k Strings HOT 3
- TypeError: Cannot read properties of undefined (reading '_content') in Chrome Browser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vaadin-grid.