Skip to content

Commit bc7e5d0

Browse files
committed
[UPDATE] the website design and remove the forum
1 parent 60e95ce commit bc7e5d0

File tree

23 files changed

+241
-60
lines changed

23 files changed

+241
-60
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ dist/*
3131
# allow sample environments
3232
!sample.env
3333

34+
# But forbid environements
35+
**/env/**
36+
**/wenv/**
37+
**/lenv/**
38+
**/menv/**
39+
3440
# No editor config files
3541
.vscode
3642

111 Bytes
Binary file not shown.

bonus/bootstrap/compile.bat

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
color 0A
2+
echo off
3+
cls
4+
5+
REM Create a virtual environment called wenv if it doesn't exist
6+
if not exist wenv (
7+
echo Creating virtual environment...
8+
python -m venv wenv
9+
)
10+
11+
REM Activate the virtual environment
12+
call wenv\Scripts\activate
13+
14+
REM Check if PyInstaller is installed in the virtual environment
15+
pip show pyinstaller >nul 2>&1
16+
if %errorlevel% neq 0 (
17+
echo PyInstaller is not installed. Installing PyInstaller...
18+
pip install pyinstaller
19+
)
20+
21+
REM Compile the Python script to a binary
22+
pyinstaller --onefile post_export.py
23+
24+
REM Move the compiled binary to the same location as this script
25+
if exist dist\post_export.exe (
26+
echo "Moving the compiled binary to %~dp0"
27+
move dist\post_export.exe %~dp0
28+
echo Compilation successful. The binary is located in the same folder as this script.
29+
) else (
30+
echo Compilation failed.
31+
)
32+
33+
REM Remove the build, dist folders and the .spec file
34+
if exist build (
35+
rmdir /s /q build
36+
)
37+
if exist dist (
38+
rmdir /s /q dist
39+
)
40+
if exist post_export.spec (
41+
del post_export.spec
42+
)
43+
44+
REM Deactivate the virtual environment
45+
deactivate

bonus/bootstrap/post_export.exe

7.66 MB
Binary file not shown.

bonus/bootstrap/post_export.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
##
2+
# EPITECH PROJECT, 2024
3+
# undefined
4+
# File description:
5+
# post_export.py
6+
##
7+
8+
import os
9+
import shutil
10+
import sys
11+
12+
13+
def copy_file_up_one_level(file_path):
14+
file_name = os.path.basename(file_path)
15+
destination_path = os.path.join(
16+
os.path.dirname(file_path), '..', file_name)
17+
shutil.copy2(file_path, destination_path)
18+
19+
20+
def main(provided_export_path):
21+
manifest_path = os.path.join(provided_export_path, 'manifest.json')
22+
sitemap_path = os.path.join(provided_export_path, 'sitemap.xml')
23+
24+
copy_file_up_one_level(manifest_path)
25+
copy_file_up_one_level(sitemap_path)
26+
27+
28+
if __name__ == "__main__":
29+
if len(sys.argv) > 1:
30+
export_path = sys.argv[1]
31+
main(export_path)
32+
else:
33+
print('Please provide the export path as the first argument.')

html/api/v1/oauth/callback/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
77
<title>Asperboard</title>
88
<meta name="theme-color" content="#86c8ed">
9-
<link rel="canonical" href="https://asperboard.pingpal.news/api/v1/oauth/callback/">
10-
<meta property="og:url" content="https://asperboard.pingpal.news/api/v1/oauth/callback/">
9+
<link rel="canonical" href="https://asperboard.pingpal.news/html/api/v1/oauth/callback/">
10+
<meta property="og:url" content="https://asperboard.pingpal.news/html/api/v1/oauth/callback/">
1111
<meta name="twitter:description" content="This is the mockup of the project Asperboard. So far it contains the connection page, a mockup for the asperboard, discuss, follow up, logout. This mockup is front-end only, any data is only stored locally.">
1212
<meta name="twitter:card" content="summary_large_image">
1313
<meta property="og:type" content="website">
@@ -17,7 +17,7 @@
1717
<meta name="author" content="Henry LETELLIER, Flavien Maillard">
1818
<meta name="twitter:title" content="Asperboard">
1919
<meta name="description" content="This is the mockup of the project Asperboard. So far it contains the connection page, a mockup for the asperboard, discuss, follow up, logout. This mockup is front-end only, any data is only stored locally.">
20-
<meta property="og:image" content="https://asperboard.pingpal.news/assets/img/AB-logo.png">
20+
<meta property="og:image" content="https://asperboard.pingpal.news/html/assets/img/AB-logo.png">
2121
<link rel="icon" type="image/png" sizes="1270x1221" href="../../../../assets/img/AB-logo.png">
2222
<link rel="icon" type="image/png" sizes="1270x1221" href="../../../../assets/img/AB-logo.png" media="(prefers-color-scheme: dark)">
2323
<link rel="icon" type="image/png" sizes="1270x1221" href="../../../../assets/img/AB-logo.png">

html/assets/css/dashboard.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,11 @@
2727
display: flex;
2828
}
2929

30+
.search_container {
31+
display: flex;
32+
flex-direction: row;
33+
justify-content: stretch;
34+
flex-wrap: nowrap;
35+
gap: 5px;
36+
}
37+

html/callback/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
77
<title>Asperboard</title>
88
<meta name="theme-color" content="#86c8ed">
9-
<link rel="canonical" href="https://asperboard.pingpal.news/callback/">
10-
<meta property="og:url" content="https://asperboard.pingpal.news/callback/">
9+
<link rel="canonical" href="https://asperboard.pingpal.news/html/callback/">
10+
<meta property="og:url" content="https://asperboard.pingpal.news/html/callback/">
1111
<meta name="twitter:description" content="This is the mockup of the project Asperboard. So far it contains the connection page, a mockup for the asperboard, discuss, follow up, logout. This mockup is front-end only, any data is only stored locally.">
1212
<meta name="twitter:card" content="summary_large_image">
1313
<meta property="og:type" content="website">
@@ -17,7 +17,7 @@
1717
<meta name="author" content="Henry LETELLIER, Flavien Maillard">
1818
<meta name="twitter:title" content="Asperboard">
1919
<meta name="description" content="This is the mockup of the project Asperboard. So far it contains the connection page, a mockup for the asperboard, discuss, follow up, logout. This mockup is front-end only, any data is only stored locally.">
20-
<meta property="og:image" content="https://asperboard.pingpal.news/assets/img/AB-logo.png">
20+
<meta property="og:image" content="https://asperboard.pingpal.news/html/assets/img/AB-logo.png">
2121
<link rel="icon" type="image/png" sizes="1270x1221" href="../assets/img/AB-logo.png">
2222
<link rel="icon" type="image/png" sizes="1270x1221" href="../assets/img/AB-logo.png" media="(prefers-color-scheme: dark)">
2323
<link rel="icon" type="image/png" sizes="1270x1221" href="../assets/img/AB-logo.png">

html/error.log

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
----------
2+
3+
Mon Mar 03 2025 15:15:18 GMT+0100 (Central European Standard Time)
4+
5+
Couldn't execute script C:\Users\Henry_PC\Documents\001_GitHub\Asperboard\mockup\bonus\bootstrap\post_export.js
6+
7+
----------
8+
9+
Mon Mar 03 2025 15:25:11 GMT+0100 (Central European Standard Time)
10+
11+
Couldn't execute script C:\Users\Henry_PC\Documents\001_GitHub\Asperboard\mockup\bonus\bootstrap\post_export.py
12+
13+
----------
14+
15+
Mon Mar 03 2025 15:29:22 GMT+0100 (Central European Standard Time)
16+
17+
C:\Program Files\Python312\python.exe: can't open file 'C:\\Users\\Henry_PC\\AppData\\Local\\Programs\\bstudio\\post_export.py': [Errno 2] No such file or directory
18+
19+
20+
----------
21+
22+
Mon Mar 03 2025 15:32:51 GMT+0100 (Central European Standard Time)
23+
24+
Couldn't execute script C:\Users\Henry_PC\Documents\001_GitHub\Asperboard\mockup\bonus\bootstrap\post_export.vbs
25+
26+
----------
27+
28+
Mon Mar 03 2025 15:33:10 GMT+0100 (Central European Standard Time)
29+
30+
Couldn't execute script C:\Users\Henry_PC\Documents\001_GitHub\Asperboard\mockup\bonus\bootstrap\post_export.vbs
31+

html/feedback/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
77
<title>Asperboard</title>
88
<meta name="theme-color" content="#86c8ed">
9-
<link rel="canonical" href="https://asperboard.pingpal.news/feedback/">
10-
<meta property="og:url" content="https://asperboard.pingpal.news/feedback/">
9+
<link rel="canonical" href="https://asperboard.pingpal.news/html/feedback/">
10+
<meta property="og:url" content="https://asperboard.pingpal.news/html/feedback/">
1111
<meta name="twitter:description" content="This is the mockup of the project Asperboard. So far it contains the connection page, a mockup for the asperboard, discuss, follow up, logout. This mockup is front-end only, any data is only stored locally.">
1212
<meta name="twitter:card" content="summary_large_image">
1313
<meta property="og:type" content="website">
@@ -17,7 +17,7 @@
1717
<meta name="author" content="Henry LETELLIER, Flavien Maillard">
1818
<meta name="twitter:title" content="Asperboard">
1919
<meta name="description" content="This is the mockup of the project Asperboard. So far it contains the connection page, a mockup for the asperboard, discuss, follow up, logout. This mockup is front-end only, any data is only stored locally.">
20-
<meta property="og:image" content="https://asperboard.pingpal.news/assets/img/AB-logo.png">
20+
<meta property="og:image" content="https://asperboard.pingpal.news/html/assets/img/AB-logo.png">
2121
<link rel="icon" type="image/png" sizes="1270x1221" href="../assets/img/AB-logo.png">
2222
<link rel="icon" type="image/png" sizes="1270x1221" href="../assets/img/AB-logo.png" media="(prefers-color-scheme: dark)">
2323
<link rel="icon" type="image/png" sizes="1270x1221" href="../assets/img/AB-logo.png">

0 commit comments

Comments
 (0)