Skip to content

Commit

Permalink
Leaderboard & Friends #13
Browse files Browse the repository at this point in the history
  • Loading branch information
zelytra authored May 28, 2024
1 parent 6c13c63 commit 34c187c
Show file tree
Hide file tree
Showing 49 changed files with 1,201 additions and 84 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
working-directory: 'backend'
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build with Maven
run: mvn quarkus:build package
Expand All @@ -36,10 +36,10 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build and Run Tests
run: mvn test --batch-mode --fail-at-end
Expand Down
1 change: 0 additions & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*
!target/*-runner
!target/*-runner.jar
!target/lib/*
Expand Down
19 changes: 19 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Build stage
FROM maven:3.8.3-openjdk-17 AS build
WORKDIR /app
COPY . .
RUN mvn quarkus:build package -Dmaven.test.skip=true -Dquarkus.profile=prod

# Package stage
FROM registry.access.redhat.com/ubi8/openjdk-17:latest
ENV LANGUAGE='en_US:en'
# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --from=build --chown=185 /app/target/quarkus-app/lib/ /deployments/lib/
COPY --from=build --chown=185 /app/target/quarkus-app/*.jar /deployments/
COPY --from=build --chown=185 /app/target/quarkus-app/app/ /deployments/app/
COPY --from=build --chown=185 /app/target/quarkus-app/quarkus/ /deployments/quarkus/

EXPOSE 8080
USER 185
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"
2 changes: 1 addition & 1 deletion webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/logo-back.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OnePool</title>
</head>
Expand Down
66 changes: 63 additions & 3 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions webapp/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"name": "onepool",
"private": false,
"version": "0.1.0",
"version": "0.1.0-alpha",
"type": "module",
"scripts": {
"dev": "vite --host",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"keycloak-js": "^24.0.3",
"pinia": "^2.1.7",
"sass": "^1.76.0",
"vue": "^3.4.21",
"vue-i18n": "^9.13.1",
"keycloak-js": "^24.0.3"
"vue-smooth-reflow": "^0.1.12"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
Expand Down
13 changes: 13 additions & 0 deletions webapp/public/logo-back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion webapp/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<template>
<AlertFactory/>
<router-view v-slot="{ Component }">
<transition mode="out-in">
<component :is="Component"/>
Expand All @@ -8,8 +9,19 @@

<script setup lang="ts">
import AlertFactory from "@/vue/alerts/AlertFactory.vue";
import {onMounted} from "vue";
import {AlertType, useAlertStore} from "@/vue/alerts/AlertStore.ts";
onMounted(() => {
setInterval(() => {
useAlertStore().send({
content: "", timeout: 1000, title: "Une alerte", type: AlertType.VALID
})
}, 3000)
})
</script>

<style scoped lang="scss">
</style>
49 changes: 2 additions & 47 deletions webapp/src/assets/font.scss
Original file line number Diff line number Diff line change
@@ -1,50 +1,5 @@
/* Jost font import */
@font-face {
font-family: "Jost-Light";
src: url("@assets/fonts/jost/Jost-Light.ttf");
}

@font-face {
font-family: "Jost-Medium";
src: url("@assets/fonts/jost/Jost-Medium.ttf");
}

@font-face {
font-family: "Jost-MediumItalic";
src: url("@assets/fonts/jost/Jost-MediumItalic.ttf");
}

@font-face {
font-family: "Jost-Regular";
src: url("@assets/fonts/jost/Jost-Regular.ttf");
}

@font-face {
font-family: "Jost-SemiBold";
src: url("@assets/fonts/jost/Jost-SemiBold.ttf");
}

@font-face {
font-family: "PlusJakarta";
src: url("@assets/fonts/PlusJakartaSans-VariableFont_wght.ttf");
}

@font-face {
font-family: "RobotoMono";
src: url("@assets/fonts/RobotoMono-VariableFont_wght.ttf");
}

@font-face {
font-family: "Manrop";
src: url("@assets/fonts/Manrope-VariableFont_wght.ttf");
}

@font-face {
font-family: "Rubik";
src: url("@assets/fonts/Rubik-VariableFont_wght.ttf");
}

@font-face {
font-family: "BrushTip";
src: url("@assets/fonts/brushTipTexe.ttf");
font-family: "Matter";
src: url("@assets/fonts/MatterGX.woff2");
}
Binary file not shown.
Binary file removed webapp/src/assets/fonts/ManuskriptAntiquaD.ttf
Binary file not shown.
Binary file added webapp/src/assets/fonts/MatterGX.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed webapp/src/assets/fonts/Rubik-VariableFont_wght.ttf
Binary file not shown.
Binary file removed webapp/src/assets/fonts/WindlassExtended.ttf
Binary file not shown.
Binary file removed webapp/src/assets/fonts/brushTipTexe.ttf
Binary file not shown.
Binary file removed webapp/src/assets/fonts/jost/Jost-Light.ttf
Binary file not shown.
Binary file removed webapp/src/assets/fonts/jost/Jost-Medium.ttf
Binary file not shown.
Binary file removed webapp/src/assets/fonts/jost/Jost-MediumItalic.ttf
Binary file not shown.
Binary file removed webapp/src/assets/fonts/jost/Jost-Regular.ttf
Binary file not shown.
Binary file removed webapp/src/assets/fonts/jost/Jost-SemiBold.ttf
Binary file not shown.
8 changes: 8 additions & 0 deletions webapp/src/assets/icons/add-friend.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions webapp/src/assets/icons/friends.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 34c187c

Please sign in to comment.