File tree Expand file tree Collapse file tree
demo/webapp-vaadin/src/main/java/software/xdev/sse/demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import org .springframework .scheduling .annotation .EnableAsync ;
1111import org .springframework .scheduling .annotation .EnableScheduling ;
1212
13- import com .vaadin .flow .component .dependency .StyleSheet ;
1413import com .vaadin .flow .spring .annotation .EnableVaadin ;
15- import com .vaadin .flow .theme .lumo .Lumo ;
1614
1715
1816@ SuppressWarnings ({"checkstyle:HideUtilityClassConstructor" , "PMD.UseUtilityClass" })
1917@ SpringBootApplication (exclude = {ErrorMvcAutoConfiguration .class })
2018@ EnableScheduling
2119@ EnableAsync
2220@ EnableVaadin ("software.xdev.sse.demo.ui" )
23- @ StyleSheet (Lumo .STYLESHEET )
2421public class Application
2522{
2623 @ SuppressWarnings ("PMD.AvoidSystemSetterCall" )
Original file line number Diff line number Diff line change 22
33import java .util .Map ;
44
5+ import com .vaadin .flow .component .dependency .StyleSheet ;
56import com .vaadin .flow .component .page .AppShellConfigurator ;
67import com .vaadin .flow .component .page .Push ;
78import com .vaadin .flow .server .AppShellSettings ;
9+ import com .vaadin .flow .theme .lumo .Lumo ;
810
911
12+ @ StyleSheet ("context://" + Lumo .STYLESHEET )
1013@ Push
1114public class AppShell implements AppShellConfigurator
1215{
1316 @ Override
1417 public void configurePage (final AppShellSettings settings )
1518 {
1619 // Don't use Vaadin's PWA implementation because it can only handle PNGs
17- // Also it renders them for each IPhone resolution in existence, which bloats up the delivered content
20+ // Also it renders them for each iPhone resolution in existence, which bloats up the delivered content
1821 settings .addLink (
1922 "manifest.webmanifest" ,
2023 Map .of (
You can’t perform that action at this time.
0 commit comments