Skip to content

Commit a71beaf

Browse files
authored
Merge pull request #845 from epfml/627-homepage-remake-olena
2 parents d6177ee + f8cb8ea commit a71beaf

File tree

101 files changed

+1986
-3564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1986
-3564
lines changed

webapp/.eslintrc.cjs

+1-34
Original file line numberDiff line numberDiff line change
@@ -35,40 +35,7 @@ module.exports = {
3535
varsIgnorePattern: '^_',
3636
ignoreRestSiblings: true
3737
}
38-
],
39-
// TODO fix instead of ignoring
40-
'vue/multi-word-component-names': ['error', {
41-
ignores: [
42-
'Bezier2',
43-
'Bin',
44-
'Clock',
45-
'Contact',
46-
'Data',
47-
'Description',
48-
'Disco',
49-
'Download',
50-
'Features',
51-
'File',
52-
'Finished',
53-
'Forward',
54-
'Further',
55-
'Home',
56-
'Information',
57-
'Landing',
58-
'Model',
59-
'People',
60-
'Performances',
61-
'Settings',
62-
'Tasks',
63-
'Tester',
64-
'Testing',
65-
'Timer',
66-
'Trainer',
67-
'Training',
68-
'Tutorial',
69-
'Upload'
70-
]
71-
}]
38+
]
7239
},
7340
ignorePatterns: ['dist/**']
7441
}

webapp/cypress/e2e/tasks.cy.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ describe("tasks page", () => {
1212
);
1313

1414
cy.visit("/#/list").contains("button", "participate");
15-
16-
// Length 5 = 4 tasks and 1 div for text description
17-
cy.get('div[id="tasks"]').children().should("have.length", 5);
15+
cy.get('div[id="tasks"]').children().should("have.length", 4);
1816
});
1917

2018
it("redirects to training", () => {

webapp/cypress/e2e/testing.cy.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ it("can test titanic", () => {
1414
);
1515
cy.contains("button", "next").click();
1616

17-
cy.contains("Test & validate")
17+
cy.contains("Validate your model")
1818
.parent()
1919
.parent()
2020
.contains("button", "test")
@@ -35,7 +35,7 @@ it("can test lus_covid", () => {
3535
);
3636
cy.contains("button", "next").click();
3737

38-
cy.contains("Test & validate")
38+
cy.contains("Validate your model")
3939
.parent()
4040
.parent()
4141
.contains("button", "test")
@@ -56,7 +56,7 @@ it("can start and stop testing of wikitext", () => {
5656
);
5757
cy.contains("button", "next").click();
5858

59-
cy.contains("Test & validate")
59+
cy.contains("Validate your model")
6060
.parent()
6161
.parent()
6262
.contains("button", "test")

webapp/cypress/e2e/training.cy.ts

+5-8
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ describe("training page", () => {
88

99
cy.visit("/");
1010

11-
cy.contains("button", "get started").click();
12-
cy.contains("button", "participate").click();
11+
cy.contains("a", "Start training").click();
1312
cy.contains("button", "participate").click();
1413

1514
const navigationButtons = 3;
@@ -26,8 +25,7 @@ describe("training page", () => {
2625

2726
cy.visit("/");
2827

29-
cy.contains("button", "get started").click();
30-
cy.contains("button", "participate").click();
28+
cy.contains("a", "Start training").click();
3129
cy.contains("button", "participate").click();
3230
cy.contains("button", "next").click();
3331

@@ -37,7 +35,7 @@ describe("training page", () => {
3735
cy.contains("button", "next").click();
3836

3937
cy.contains("button", "locally").click();
40-
cy.contains("button", "start training").click();
38+
cy.contains("button", "Start training").click();
4139
cy.contains("h6", "epochs")
4240
.next({ timeout: 40_000 })
4341
.should("have.text", "10 / 10");
@@ -56,8 +54,7 @@ describe("training page", () => {
5654

5755
cy.visit("/");
5856

59-
cy.contains("button", "get started").click();
60-
cy.contains("button", "participate").click();
57+
cy.contains("a", "Start training").click();
6158
cy.contains("button", "participate").click();
6259
cy.contains("button", "next").click();
6360

@@ -80,7 +77,7 @@ describe("training page", () => {
8077
cy.contains("button", "next").click();
8178

8279
cy.contains("button", "locally").click();
83-
cy.contains("button", "start training").click();
80+
cy.contains("button", "Start training").click();
8481
cy.contains("h6", "current batch")
8582
.next({ timeout: 40_000 })
8683
.should("have.text", "2");

webapp/src/assets/gif/DiscoGIF.vue

-7
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,3 @@
44
src="https://storage.googleapis.com/deai-313515.appspot.com/gifs/disco_middle.gif"
55
/>
66
</template>
7-
<script lang="ts">
8-
import { defineComponent } from 'vue'
9-
10-
export default defineComponent({
11-
name: 'DiscoGIF'
12-
})
13-
</script>

webapp/src/assets/images/LiGHT.gif

-37.6 KB
Binary file not shown.

webapp/src/assets/images/mlologo.png

-21.7 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<svg preserveAspectRatio="xMidYMid meet" data-bbox="35.22 28.28 319.76 143.36" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" data-type="ugc" role="presentation" aria-hidden="true" aria-label="">
3+
<g>
4+
<path d="M237.97 171.64h-9.63v-74.4h-24.32V65.51h33.95v22.1h9.26l-.24-31.44h-50.44v41.07h-26.72l-.35-68.96h106.4v69.35h-9.63V37.9h-87.09l.25 49.7h7.5V46.54h69.63l.37 50.7h-18.96v74.4zm-24.32-84.03h14.69V75.13h-14.69z" fill="#fba73a"></path>
5+
<path class="st0" d="M247.24 107.34h7.51v47.91h12.61v6.31h-20.12z" fill-rule="nonzero"></path>
6+
<path class="st0" d="M280.06 141.43h9.53l-4.66-26.13h-.15zm.82-34.09h8.71l11.04 54.21h-7.51l-2.48-13.82h-11.71l-2.48 13.82h-7.5z" fill-rule="nonzero"></path>
7+
<path class="st0" d="M311.75 155.7h4.66c4.28 0 5.03-1.28 5.03-9.84 0-8.19-.67-9.39-4.8-9.39h-4.88v19.23zm0-25.08h4.35c4.51 0 4.96-.9 4.96-9.76 0-6.16-.98-7.66-5.78-7.66h-3.53zm-7.52-23.28h13.07c9.24 0 10.81 3.22 10.81 13.14 0 10.66-1.73 12.39-6.84 13.06v.16c6.01 1.12 7.21 3.15 7.21 12.39 0 11.71-1.5 15.47-12.46 15.47h-11.79z" fill-rule="nonzero"></path>
8+
<path class="st0" d="M331.1 145.86h7.53v4.43c0 3.6 1.34 5.85 4.35 5.85 3.98 0 4.96-2.7 4.96-6.24 0-4.58-.22-6.08-8.04-13.81-4.81-4.8-8.79-9.16-8.79-16.52 0-8.86 4.13-12.68 12.32-12.68 4.05 0 6.98 1.35 8.79 3 1.28 1.2 2.17 3.08 2.17 6.91v5.11h-7.07v-4.28c0-3.08-1.27-4.88-4.2-4.88-3.08 0-4.5 1.72-4.5 5.93 0 3.68.74 5.93 7.65 13.14 7.37 7.66 8.71 10.29 8.71 16.83 0 8.48-3.31 13.36-12.24 13.36-6.91 0-11.64-2.93-11.64-9.69z" fill-rule="nonzero"></path>
9+
<path class="st0" d="M46.34 141.43h9.53l-4.66-26.13h-.15zm.82-34.09h8.71l11.04 54.21h-7.5l-2.48-13.82H45.21l-2.48 13.82h-7.51z" fill-rule="nonzero"></path>
10+
<path class="st0" d="M76.51 131.67h1.96c5.93 0 6.76-1.12 6.76-9.23 0-8.04-.45-8.79-5.11-8.79h-3.61zm-7.5-24.33h11.64c10.96 0 12.09 2.93 12.09 14.79 0 7.28-.97 10.44-7.13 12.31v.15c5.1.53 6.83 3.15 6.83 8.26v11.79c0 1.95 0 4.65.45 6.91h-7.06c-.75-1.35-.9-2.7-.9-4.88v-12.24c0-5.11-.9-6.46-5.85-6.46h-2.56v23.58h-7.51z" fill-rule="nonzero"></path>
11+
<path class="st0" d="M104 107.35v54.21h-7.51v-54.21z"></path>
12+
<path class="st0" d="M116.99 141.43h9.54l-4.66-26.13h-.15zm.83-34.09h8.71l11.04 54.21h-7.51l-2.48-13.82h-11.71l-2.48 13.82h-7.51z" fill-rule="nonzero"></path>
13+
<path class="st0" d="M147.18 155.25h3.61c5.55 0 6.61-2.93 6.61-12.24v-18.62c0-8.03-.82-10.74-7.21-10.74h-3v41.6zm-7.51-47.91h12.09c12.16 0 13.14 4.05 13.14 19.82v16.14c0 13.89-2.48 18.25-14.34 18.25h-10.89z" fill-rule="nonzero"></path>
14+
<path class="st0" d="M168.73 107.34h10.36l8.86 45.06h.15v-45.06h7.06v54.22h-10.81l-8.86-46.26h-.15v46.26h-6.61z" fill-rule="nonzero"></path>
15+
<path class="st0" d="M199.21 107.34h20.43v6.31h-12.91v16.97h12.16v6.31h-12.16v18.32h12.91v6.31h-20.43z" fill-rule="nonzero"></path>
16+
</g>
17+
</svg>
18+
</template>
19+
20+
<script lang="ts" setup>
21+
import { useThemeStore } from "@/store";
22+
const themeStore = useThemeStore();
23+
const color = themeStore.selectByTheme("#505053", "#eee");
24+
</script>
25+
26+
<style scoped>
27+
.st0{
28+
fill:v-bind('color');
29+
}
30+
</style>

0 commit comments

Comments
 (0)