This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Multipass on macOS | |
# Download and install: open https://multipass.run/download/macos | |
## Create Discourse VM and open shell | |
multipass launch --disk 8G --memory 4G --name discourse-server && multipass shell discourse-server | |
## Install NVM and Node 18 LTS | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash && source ~/.bashrc && nvm install v18.18.2 | |
## Install yarn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<paper-drawer> | |
<paper-drawer-title photo="face.png" name="Jonathan Lee" email="heyfromjonathan@gmail.com"></paper-drawer-title> | |
<paper-drawer-subheader>Items with icon</paper-drawer-subheader> | |
<paper-drawer-icon-item icon="icons:mail">All mail</paper-drawer-icon-item> | |
<paper-drawer-icon-item icon="icons:delete">Trash</paper-drawer-icon-item> | |
<paper-drawer-icon-item icon="icons:error">Spam</paper-drawer-icon-item> | |
<paper-drawer-divider></paper-drawer-divider> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpringBootApplication | |
public class DemoApplication { | |
public static void main(String[] args) { | |
SpringApplication.run(DemoApplication.class, args); | |
} | |
@Bean | |
public WidgetSet getAddonCDNWidgetSet() { | |
return new WidgetSet(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo; | |
import com.vaadin.annotations.Theme; | |
import com.vaadin.server.VaadinRequest; | |
import com.vaadin.spring.annotation.SpringUI; | |
import com.vaadin.ui.Label; | |
import com.vaadin.ui.UI; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vaadin.lightvaadin; | |
import com.vaadin.server.VaadinServlet; | |
import java.util.EventListener; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.servlet.ServletContextHandler; | |
import org.eclipse.jetty.servlet.ServletHolder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebServlet(value = "/*", asyncSupported = true) | |
@VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class) | |
public static class MyCORSServlet extends VaadinServlet { | |
/** | |
* Override to handle the CORS requests. | |
*/ | |
@Override | |
protected void service(HttpServletRequest request, | |
HttpServletResponse response) throws ServletException, |