-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marcus Fihlon <[email protected]>
- Loading branch information
Showing
10 changed files
with
209 additions
and
184 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Apus - A social wall for conferences with additional features. | ||
* Copyright (C) Marcus Fihlon and the individual contributors to Apus. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
:root { | ||
font-family: Arial, Helvetica, sans-serif; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
This directory is automatically generated by Vaadin and contains the pre-compiled | ||
frontend files/resources for your project (frontend development bundle). | ||
|
||
It should be added to Version Control System and committed, so that other developers | ||
do not have to compile it again. | ||
|
||
Frontend development bundle is automatically updated when needed: | ||
- an npm/pnpm package is added with @NpmPackage or directly into package.json | ||
- CSS, JavaScript or TypeScript files are added with @CssImport, @JsModule or @JavaScript | ||
- Vaadin add-on with front-end customizations is added | ||
- Custom theme imports/assets added into 'theme.json' file | ||
- Exported web component is added. | ||
|
||
If your project development needs a hot deployment of the frontend changes, | ||
you can switch Flow to use Vite development server (default in Vaadin 23.3 and earlier versions): | ||
- set `vaadin.frontend.hotdeploy=true` in `application.properties` | ||
- configure `vaadin-maven-plugin`: | ||
``` | ||
<configuration> | ||
<frontendHotdeploy>true</frontendHotdeploy> | ||
</configuration> | ||
``` | ||
- configure `jetty-maven-plugin`: | ||
``` | ||
<configuration> | ||
<systemProperties> | ||
<vaadin.frontend.hotdeploy>true</vaadin.frontend.hotdeploy> | ||
</systemProperties> | ||
</configuration> | ||
``` | ||
|
||
Read more [about Vaadin development mode](https://vaadin.com/docs/next/configuration/development-mode/#pre-compiled-front-end-bundle-for-faster-start-up). |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Apus - A social wall for conferences with additional features. | ||
* Copyright (C) Marcus Fihlon and the individual contributors to Apus. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package swiss.fihlon.apus.ui.view; | ||
|
||
import com.vaadin.flow.component.dependency.CssImport; | ||
import com.vaadin.flow.component.html.Div; | ||
import com.vaadin.flow.component.orderedlayout.HorizontalLayout; | ||
import com.vaadin.flow.component.orderedlayout.VerticalLayout; | ||
import com.vaadin.flow.router.Route; | ||
|
||
import java.io.Serial; | ||
|
||
@Route("") | ||
@CssImport(value = "./themes/apus/views/social-wall.css") | ||
public class SocialWall extends VerticalLayout { | ||
|
||
@Serial | ||
private static final long serialVersionUID = 7909437130138135008L; | ||
|
||
public SocialWall() { | ||
setId("social-wall"); | ||
add(new HorizontalLayout( | ||
new Div("Agenda"), | ||
new Div("Posts"))); | ||
add(new Div("Footer")); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* Apus - A social wall for conferences with additional features. | ||
* Copyright (C) Marcus Fihlon and the individual contributors to Apus. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package swiss.fihlon.apus.ui; | ||
|
||
import com.github.mvysny.kaributesting.v10.MockVaadin; | ||
import com.github.mvysny.kaributesting.v10.Routes; | ||
import com.github.mvysny.kaributesting.v10.spring.MockSpringServlet; | ||
import com.vaadin.flow.component.UI; | ||
import kotlin.jvm.functions.Function0; | ||
import org.junit.jupiter.api.AfterEach; | ||
import org.junit.jupiter.api.BeforeAll; | ||
import org.junit.jupiter.api.BeforeEach; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.test.annotation.DirtiesContext; | ||
|
||
/** | ||
* An abstract class which sets up Spring, Karibu-Testing and your app. | ||
* The easiest way to use this class in your tests is having your test class to extend | ||
* this class. | ||
*/ | ||
@SpringBootTest | ||
@DirtiesContext | ||
public abstract class KaribuTest { | ||
|
||
private static Routes routes; | ||
|
||
@BeforeAll | ||
public static void discoverRoutes() { | ||
routes = new Routes().autoDiscoverViews("swiss.fihlon.apus"); | ||
} | ||
|
||
@Autowired | ||
private ApplicationContext applicationContext; | ||
|
||
/** | ||
* @see org.junit.jupiter.api.BeforeEach | ||
*/ | ||
@BeforeEach | ||
public void setup() { | ||
final Function0<UI> uiFactory = UI::new; | ||
final var servlet = new MockSpringServlet(routes, applicationContext, uiFactory); | ||
MockVaadin.setup(uiFactory, servlet); | ||
} | ||
|
||
/** | ||
* @see org.junit.jupiter.api.AfterEach | ||
*/ | ||
@AfterEach | ||
public void tearDown() { | ||
MockVaadin.tearDown(); | ||
} | ||
|
||
} |
Oops, something went wrong.