Skip to content

Instantly share code, notes, and snippets.

View adrienbaron's full-sized avatar

Adrien Baron adrienbaron

View GitHub Profile

registerStylesSSR

Type: Boolean Default: false

Register Vuetify styles in vue-style-loader.

This fixes styles not being loaded when doing SSR in Nuxt.js. As Vuetify imports styles with JS, without this option, they do not get picked up by Nuxt SSR.

Beta 9 Release Note

What's new

Some changes were needed to make Vue GWT compatible with the upcoming GWT3. While doing these changes we found solutions that also improved the APIs.

@Data and @Prop annotation

@Data

<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axellience</groupId>
<artifactId>vue-gwt-tests</artifactId>
<packaging>war</packaging>
@adrienbaron
adrienbaron / vue-gwt-1.0-beta-7.md
Last active April 10, 2018 12:44
Update Guide for Vue GWT beta-7

If you are using Vue GWT beta-6, please refer to the following guide to update to beta-7. You can also checkout the Vue GWT beta-7 Release note.

Annotation Processors are now used for template processing, this has several advantages:

  • Errors in HTML templates are caught by your IDE at build time.
  • Less boilerplate classes are generated.
  • No more dependency on GWT 2.x generators. Should make Vue GWT compatible with GWT 3.x out of the box.

Here is how to upgrade from beta-6:

@adrienbaron
adrienbaron / ElementWidgetUtil.java
Last active November 22, 2017 09:36
Append a GWT2 Widget to an existing Element without breaking events
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
import elemental2.dom.HTMLElement;
import jsinterop.base.Js;
public class ElementWidgetUtil {
public void appendWidgetToElement(final HTMLElement parent, final Widget child) {
if (child.isAttached()) {
child.removeFromParent();
}
@adrienbaron
adrienbaron / 1.0-beta-4.md
Last active November 18, 2017 14:48
Update guide for Vue GWT 1.0-beta-4

If you are using Vue GWT beta-2, please refer to the following guide to update to beta-4. You can also checkout the Vue GWT beta-4 Release note.

Update your pom.xml

GWT 2.8.1

First make sure your project is using at least GWT 2.8.1 as Elemental2 requires it.

Vue GWT dependency

The Annotation processors are not included by default in Vue GWT beta-4. This allows you to include them as an optional dependency.

Verifying that +adrienbaron is my blockchain ID. https://onename.com/adrienbaron