Skip to content

Commit

Permalink
Forced to include fxml resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoramy committed Aug 18, 2018
1 parent 931c730 commit 0959e22
Show file tree
Hide file tree
Showing 57 changed files with 42 additions and 31 deletions.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
11 changes: 11 additions & 0 deletions pom.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.fxml</include>
<include>**/*.css</include>
<include>**/*.properties</include>
<include>**/*.png</include>
</includes>
</resource>
</resources>
</build>

<dependencies>
Expand Down
Empty file modified src/main/java/META-INF/MANIFEST.MF
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/AppDownload.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/AppExam.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/AppHome.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/AppLogin.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/AppPreview.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/AppRepositories.java
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion src/main/java/me/gekoramy/github/quiz/app/download/DownloadPresenter.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
* @author Luca Mosetti
*/
public class DownloadPresenter implements Initializable {

@FXML
private StackPane root;
@FXML
Expand Down
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/download/download.css
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/exam/ExamView.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/exam/exam.css
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/exam/exam.fxml
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/exam/quiz/quiz.css
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/exam/quiz/quiz.fxml
100644 → 100755
Empty file.
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/home/HomeView.java
100644 → 100755
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/home/home.css
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/home/home.fxml
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/login/GitHub-Mark.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/login/LoginView.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/login/login.css
100644 → 100755
Empty file.
61 changes: 31 additions & 30 deletions src/main/java/me/gekoramy/github/quiz/app/login/login.fxml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,69 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<VBox xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="me.gekoramy.github.quiz.app.login.LoginPresenter" alignment="CENTER" prefHeight="400.0"
prefWidth="300.0" spacing="10" stylesheets="@login.css">

<VBox alignment="CENTER" prefHeight="400.0" prefWidth="300.0" spacing="10" stylesheets="@login.css" xmlns="http://javafx.com/javafx/8.0.121" xmlns:fx="http://javafx.com/fxml/1" fx:controller="me.gekoramy.github.quiz.app.login.LoginPresenter">

<ImageView fitHeight="60.0" fitWidth="60.0" preserveRatio="true">
<Image url="@GitHub-Mark.png"/>
<Image url="@GitHub-Mark.png" />
</ImageView>

<Label text="Sign in to GitHub">
<font>
<Font size="22.0"/>
<Font size="22.0" />
</font>
<VBox.margin>
<Insets top="15.0"/>
<Insets top="15.0" />
</VBox.margin>
</Label>

<StackPane fx:id="pnlIncorrect" visible="false"
style="-fx-background-color: #ffdce0; -fx-border-color: rgba(27,31,35,0.15); -fx-border-radius: 5; -fx-padding: 10;">
<Label text="Incorrect username or password."/>
<StackPane fx:id="pnlIncorrect" style="-fx-background-color: #ffdce0; -fx-border-color: rgba(27,31,35,0.15); -fx-border-radius: 5; -fx-padding: 10;" visible="false">
<Label text="Incorrect username or password." />
</StackPane>

<GridPane minHeight="200.0"
style="-fx-padding: 20; -fx-background-color: white; -fx-border-color: #D9DEE2; -fx-border-radius: 5">
<GridPane minHeight="200.0" style="-fx-padding: 20; -fx-background-color: white; -fx-border-color: #D9DEE2; -fx-border-radius: 5">
<columnConstraints>
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES"/>
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES"/>
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES"/>
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES"/>
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES"/>
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES"/>
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES"/>
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES" />
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES" />
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES" />
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES" />
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES" />
<RowConstraints valignment="BOTTOM" vgrow="SOMETIMES" />
</rowConstraints>

<Label text="Username or email address" GridPane.rowIndex="0">
<font>
<Font name="Arial" size="14.0"/>
<Font name="Arial" size="14.0" />
</font>
</Label>
<TextField fx:id="txtUser" GridPane.rowIndex="1"/>
<TextField fx:id="txtUser" GridPane.rowIndex="1" />
<Label text="Password" GridPane.rowIndex="2">
<font>
<Font name="Arial" size="14.0"/>
<Font name="Arial" size="14.0" />
</font>
</Label>
<PasswordField fx:id="txtPass" GridPane.rowIndex="3"/>
<Button fx:id="btnSubmit" defaultButton="true" prefHeight="27.0" prefWidth="238.0"
style="-fx-background-color: linear-gradient(#68C965 0%, #53A450 90%);" text="Sign in"
textAlignment="CENTER" textFill="WHITE" GridPane.rowIndex="5">
<PasswordField fx:id="txtPass" GridPane.rowIndex="3" />
<Button fx:id="btnSubmit" defaultButton="true" prefHeight="27.0" prefWidth="238.0" style="-fx-background-color: linear-gradient(#68C965 0%, #53A450 90%);" text="Sign in" textAlignment="CENTER" textFill="WHITE" GridPane.rowIndex="5">
<font>
<Font name="Arial Bold" size="14.0"/>
<Font name="Arial Bold" size="14.0" />
</font>
</Button>
<VBox.margin>
<Insets/>
<Insets />
</VBox.margin>
</GridPane>

Expand Down
Empty file.
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/preview/preview.css
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/app/preview/preview.fxml
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/pojo/Data.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/pojo/Question.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/service/Download.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/service/EditContent.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/service/ExamStarter.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/service/Login.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/service/OpenLink.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/service/Read.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/service/Repositories.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/service/Store.java
100644 → 100755
Empty file.
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/util/Constants.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/util/GitHubClients.java
100644 → 100755
Empty file.
Empty file modified src/main/java/me/gekoramy/github/quiz/util/Pool.java
100644 → 100755
Empty file.
Empty file modified src/main/resources/github-backpack.ico
100644 → 100755
Empty file.

0 comments on commit 0959e22

Please sign in to comment.