Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teasing 2023 #258

Merged
merged 256 commits into from
Sep 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
256 commits
Select commit Hold shift + click to select a range
d73770f
added legal links
Jul 22, 2023
f8978d9
feat: code cleaning and some style
DevNono Jul 22, 2023
ac377a6
added partners
Jul 22, 2023
e82150a
converted Slider.tsx to Slider.jsx + fixed 4 spaces tabulations
Jul 22, 2023
db3a3e0
feat: add many components for main page and add style for existing ones
DevNono Jul 23, 2023
34ba7b2
fix: uncomment required code
DevNono Jul 23, 2023
a8587a3
added top of tournament list
Jul 24, 2023
6fc015e
started adding tournament list
Jul 24, 2023
adb0fcf
buttons are now a little better
Jul 24, 2023
838a002
added tournaments list
Jul 24, 2023
9f596ae
feat: start implementation of TypeScript
DevNono Jul 24, 2023
6c8b41d
fix: bugs
DevNono Jul 24, 2023
da533f5
feat: implement Storybook as doc
DevNono Jul 25, 2023
f82f50a
feat: add storybook preview
DevNono Jul 25, 2023
90e2756
feat: change from yarn to pnpm
DevNono Jul 25, 2023
8e2f0b7
fix: improve doc and types
DevNono Jul 25, 2023
cf8c4fd
fix: improve Typescript support and add documentation
DevNono Jul 25, 2023
46ab266
feat: add more components to TypeScript
DevNono Jul 25, 2023
6a0e570
fix: types
DevNono Jul 25, 2023
91af32a
lint: fixed (more or less i guess) linting + linted
Jul 25, 2023
f66be86
finished component conversion to ts
Jul 26, 2023
fa338ce
excluded pnpm-lock from git
Jul 26, 2023
4644666
feat: push some modifs
DevNono Jul 26, 2023
8c86a49
feat: add even more documentation
DevNono Jul 26, 2023
f93504a
fix: error
DevNono Jul 26, 2023
d3c185a
fix: add client ...
DevNono Jul 26, 2023
a139cd8
fix: add back defaultProps
DevNono Jul 26, 2023
e7342df
fix: some errors
DevNono Jul 26, 2023
634b913
fix: defaultProps and types
DevNono Jul 26, 2023
6641b62
feat: final Typescript import (still errors to correct)
DevNono Jul 26, 2023
dc8285a
feat: final Typescript import (still errors to correct)
DevNono Jul 26, 2023
07ac86c
fix: lint
DevNono Jul 26, 2023
687de2d
fix: remove some any
DevNono Jul 26, 2023
f5ae56c
added a first test
Jul 27, 2023
d5c45fe
added tests for button
Jul 28, 2023
79b99d2
feat: add some style, fix some bugs and add social icons
DevNono Jul 28, 2023
e86a0b7
feat: implement help page
DevNono Jul 29, 2023
1ea8743
feat: improve responsive and add burger menu
DevNono Jul 29, 2023
39bdae5
feat: add burger menu content
DevNono Jul 29, 2023
bcbffa1
fix: reducers and burger menu
DevNono Jul 29, 2023
479f857
feat: add content for the main menu
DevNono Jul 29, 2023
010be87
added parallax component
Jul 29, 2023
a3a246e
updated parallax a little
Jul 29, 2023
f010238
added tournament information page
Jul 30, 2023
86ecf66
lint
Jul 30, 2023
370a167
fix: issues
DevNono Jul 30, 2023
2d6fc1f
fix: add right favicon for 2023
DevNono Jul 30, 2023
24aa31e
fix: ci
DevNono Jul 30, 2023
b597a23
Added background clouds and constellations to tournament info page
Jul 30, 2023
68a649a
fix: favicon
DevNono Jul 30, 2023
dd58375
feat: start about page
DevNono Jul 30, 2023
eb94069
fix: lint
DevNono Jul 30, 2023
f4c327b
fix: lint
DevNono Jul 30, 2023
ed1e4c3
tried removing white part before the footer
Jul 30, 2023
37cc9b8
fix: improve design
DevNono Jul 30, 2023
f3eda21
Removed old parallax and added a wayyyyy better one
Jul 31, 2023
2e04c09
changed the parallax to allow to make it smoother
Jul 31, 2023
0680bf0
Added event page
Jul 31, 2023
f2c407b
Fixed bugs in the AppearFromSide effect
Jul 31, 2023
920bf0a
Finished event page
Jul 31, 2023
a644306
added some responsive to the event page
Aug 1, 2023
009d0eb
centered links in footer when on small screen
Aug 1, 2023
4ea5e41
fixed a bug + type-ed in AppearFromSide
Aug 1, 2023
3088fcc
finished page tournament
Aug 1, 2023
91dbba7
Added a little animation in the FAQ
Aug 2, 2023
239129c
feat: improve design
DevNono Aug 2, 2023
f92062b
fix: typescript
DevNono Aug 2, 2023
18ef6b8
fix: even more design
DevNono Aug 2, 2023
ab8e454
fix: scrolling behavior
DevNono Aug 2, 2023
cf7e499
Updated responsive for the home page
Aug 2, 2023
e2fcc17
finished responsive for page event
Aug 2, 2023
7c875cd
feat: add more responsive
DevNono Aug 2, 2023
95f300e
feat: add final responsive
DevNono Aug 2, 2023
f4438ab
feat: improve tournaments (1/2)
DevNono Aug 2, 2023
a692e56
smoother transition between tournaments
Aug 3, 2023
b8470ae
updated the go back button on the tournament page
Aug 3, 2023
1663c0c
Added component DoubleImage
Aug 3, 2023
6052ff2
fix: minor design change
DevNono Aug 3, 2023
fba248d
text now fades out when changing the selected tournament
Aug 3, 2023
ca298cd
linted basically everything
Aug 3, 2023
b19ea5a
fix: background of the game was not shown when page loaded
Aug 3, 2023
7a3990d
fixed a problem with the animation of the text when switching tournament
Aug 3, 2023
ab30b56
fix: typescript
DevNono Aug 3, 2023
5d3a8a9
transition between the tournaments page and the tournament info page
Aug 5, 2023
3a50bfa
fix: some issues
DevNono Aug 5, 2023
9e95029
fix: style
DevNono Aug 5, 2023
022bbfd
fix: many errors
DevNono Aug 5, 2023
7e2199a
fix: pages cannot take parameters
Aug 5, 2023
43e1839
fix: build
DevNono Aug 5, 2023
9322ce8
feat: new form
DevNono Aug 5, 2023
d195096
feat: new Table
DevNono Aug 5, 2023
e637968
added animation when going back to tournaments list
Aug 5, 2023
92b262c
the transition is now wayy better
Aug 5, 2023
18d77d6
better distribution of constellations
Aug 5, 2023
fa13cb4
fix: new button
DevNono Aug 5, 2023
648a651
added line under the place we are in the navbar
Aug 5, 2023
cb07265
removed a console.log
Aug 5, 2023
ca61410
apparently our code is too fast, so we had to slow it down a bit :)
Aug 5, 2023
cb1d353
fix: problems
DevNono Aug 5, 2023
30e5d9e
now a shading effect is applied when arriving on page /tournaments
Aug 5, 2023
528d8c1
feat: add double image animation
DevNono Aug 5, 2023
ea9c86e
fix: add Slider 3
DevNono Aug 5, 2023
11bbf73
fix: button style
DevNono Aug 5, 2023
da2796d
fix: responsive
DevNono Aug 5, 2023
b2c3242
fix: lint
DevNono Aug 5, 2023
705571f
feat: push new styles for responsive
DevNono Aug 5, 2023
d78ebb1
fixed legal with small screen
Aug 6, 2023
8b48f4f
fixed title 2 with border for small screen, and removed fix for legal…
Aug 6, 2023
5884a87
fix: lint
DevNono Aug 6, 2023
b68f61b
fix: responsive
DevNono Aug 6, 2023
8295637
fix: style
DevNono Aug 6, 2023
f1f1509
fix: title style
DevNono Aug 6, 2023
bba0b82
fix: small bug
DevNono Aug 6, 2023
7cd2d8d
feat: add some content and satart importation of old things (dashboard)
DevNono Aug 6, 2023
38407ea
feat: improve design and add page navigation for the tournaments
DevNono Aug 9, 2023
76ee6ab
fix: build
DevNono Aug 9, 2023
139cd52
feat: add most of old pages and convert them to Typescript and the ne…
DevNono Aug 9, 2023
32aa28d
feat: add all the files for dashboard and admin
DevNono Aug 10, 2023
9bf7ed9
fix: lint
DevNono Aug 10, 2023
ae0b913
feat: update structure and add final dashboard pages
DevNono Aug 14, 2023
a737058
feat: add csp + keyboard shortcuts
DevNono Aug 14, 2023
fedfb50
fix: docs and csp
DevNono Aug 14, 2023
2444adb
fix: lint
DevNono Aug 14, 2023
70f6eff
fix: add better redirect, remove some unused dependencies and improve…
DevNono Aug 14, 2023
94bde8d
fix: lint
DevNono Aug 14, 2023
79f8d27
fix: csp
DevNono Aug 14, 2023
eb24793
feat: add even more documentation
DevNono Aug 15, 2023
87f2965
fix: bug
DevNono Aug 15, 2023
508f5ba
feat: remove some hrdcode and replace by the new API routes
DevNono Aug 16, 2023
3ba8003
fix: lint
DevNono Aug 16, 2023
ae414e4
fix: add some tournaments types and fix robots.txt
DevNono Aug 16, 2023
8acff23
feat: fix Login and Register
DevNono Aug 17, 2023
5f0a352
Fixed tournament pages
Aug 19, 2023
7af5197
fix: redux and add new admin login page
DevNono Aug 19, 2023
781bb54
feat: add more api information and fix tournaments
DevNono Aug 19, 2023
9c8db28
fix: partners
DevNono Aug 19, 2023
4ee5e28
added scroll when clicking on the "Découvrir les tournois" button
Aug 20, 2023
12b2f2a
fix: table and layout
DevNono Aug 20, 2023
4b684cd
feat: add settings admin panel
DevNono Aug 20, 2023
e126866
Button "Découvrir les tournois" now fully works + fixed bug
Aug 20, 2023
f5cc3a2
button "se connecter" now works in pages tournaments/*
Aug 20, 2023
dbfdbf0
wrong images were displayed in the list of tournaments
Aug 20, 2023
2e080d0
Selected button in the header is now a bit better
Aug 20, 2023
7dae222
better transition between tournament selection
Aug 20, 2023
1d388e9
"A propos" and "Connexion" buttons were moving when login modal was o…
Aug 20, 2023
67d4948
feat: add tournament editor
DevNono Aug 20, 2023
f97dd63
fix: lint
DevNono Aug 20, 2023
2feacb0
fix: lint
DevNono Aug 20, 2023
e8a42cb
fix: no shortName
DevNono Aug 20, 2023
92f49bc
fix: Card & build
DevNono Aug 20, 2023
182ecff
fix: copyright and add delete partner
DevNono Aug 21, 2023
fa35038
feat: add User creation
DevNono Aug 21, 2023
0765b09
feat: add rules to tournaments page
DevNono Aug 21, 2023
35878fd
remove Countdown and lint
DevNono Aug 21, 2023
c9a6b6e
Title of the tournament was hidden in /tournaments/{id}
Aug 21, 2023
006dc29
removed countdown from styles.scss
Aug 21, 2023
82139c5
fixed background for 4k screens
Aug 21, 2023
270bced
move copyright
ploine77 Aug 21, 2023
68466bd
now copyright has the ability to turn :)
Aug 21, 2023
f2509cb
fix crop icon
ploine77 Aug 21, 2023
c2af337
circlelify stroke
ploine77 Aug 21, 2023
def054a
added firework when the copyright is turned
Aug 21, 2023
070596e
feat: add casters input
DevNono Aug 21, 2023
59de679
fix: lint and improve style
DevNono Aug 21, 2023
8e007df
feat: add some documentation
DevNono Aug 22, 2023
e462ea6
feat: add even more doc and fix the current doc
DevNono Aug 22, 2023
a5e1f44
fix: storybook build
DevNono Aug 22, 2023
f5d438f
removed padding of the copyright + added credits for the fireworks
Aug 21, 2023
8b663a4
added scrolling parallax effect
Aug 23, 2023
8ff840d
feat add little doc
DevNono Aug 23, 2023
341bfa8
update navbar in PanelHeader
ploine77 Aug 23, 2023
9cc47e5
ScrollingParallax is now more optimized
Aug 24, 2023
17da02a
oopsy
Aug 24, 2023
ceb8e12
optimized scrolling a little by adding a small transition
Aug 24, 2023
901b84d
renamed a class name which could be confused with another one
Aug 25, 2023
c9779b7
updated ScrollingParallax to make it less laggy
Aug 28, 2023
ebf5192
fixed AppearFromSide component
Aug 28, 2023
5055f90
nice parallaxes on home page <3
Aug 28, 2023
c70a220
AppearFromSide didn't work when the child was a function component
Aug 28, 2023
2df82ea
Removed unused parameter from AppearFromSide + readded smoothness
Aug 28, 2023
7aae790
fix: lint and build
DevNono Aug 28, 2023
16396f6
it's an admin page but it's better
ploine77 Aug 28, 2023
c780fb6
optilmized the AppearFromSide component
Aug 28, 2023
100f0f2
made header sticky
Aug 30, 2023
77992c6
bro that header transition is sick
Aug 31, 2023
7273ab9
made the header animation start faster
Aug 31, 2023
46067ba
fix: some styles and bugs
DevNono Aug 31, 2023
84925ef
slider on home page is now in front of the parallax elements
Aug 31, 2023
ffd67eb
Parallax component style is now a module
Sep 2, 2023
ddb10d2
modulified Header
Sep 3, 2023
4a8cb1f
continuing to modularize
Sep 3, 2023
a14a573
modulariiiiiiizee !
Sep 3, 2023
576a829
some more pages
Sep 3, 2023
4f14b54
fix: lint
DevNono Sep 5, 2023
ccbebd2
feat: add design to admin menu
DevNono Sep 10, 2023
4201712
fix: lint and build
DevNono Sep 10, 2023
0d5a338
fix: icons
DevNono Sep 10, 2023
fbc0868
fix: small fixes
DevNono Sep 10, 2023
99cf9fb
fix: blob
DevNono Sep 10, 2023
ee0ed35
fix: filename to fix a bug with the tiny file manager
DevNono Sep 10, 2023
45eb791
satisfying animation on opening/closing a modal
Sep 11, 2023
f2976f8
modularizing is moving on
Sep 11, 2023
f9766b7
fixed pagination display on the table of the admin/users page
Sep 11, 2023
620c2c3
fixed a small bug when closing the LoginModal on the reset password menu
Sep 11, 2023
e5afde4
fix: push some fix for the SEO
DevNono Sep 12, 2023
ce82f80
modularization + removed junk from global.scss
Sep 12, 2023
cabbf45
finished modularizing (didn't test everything tho :eyes:)
Sep 13, 2023
c445e76
fixed bugs
Sep 14, 2023
e0007e0
stroke mixins was too laggy. it's now a component (TextStroke)
Sep 14, 2023
d404421
Fixed other stroke mixin usages
Sep 14, 2023
31b427b
"fixed" bug on page /tournaments
Sep 14, 2023
4f21ead
fixed css for title of a tournament
Sep 14, 2023
bb143d9
fix: Title (and Teddy is annoying)
DevNono Sep 14, 2023
94de7fc
fixed some CSS imports and linted
Sep 14, 2023
f61b71d
fix: remove Salon jeux which does not exist anymore
DevNono Sep 14, 2023
270a134
Fixed boxes in /tournaments/{id}
Sep 14, 2023
c358d0a
fixed label colors in Modal
Sep 14, 2023
53936af
the box container on the home page is now centered again
Sep 14, 2023
302832e
fixed radio buttons
Sep 14, 2023
3b603d6
implemented basic badge creation
Sep 16, 2023
a61d86c
Added some docs + removed unused file
Sep 17, 2023
15d4d50
fix
Sep 18, 2023
2728b64
fixed building
Sep 18, 2023
b53e9c7
Changed most of imports to absolute imports
Sep 18, 2023
ce02f1f
feat: added tournaments list at the bottom of home page
Sep 18, 2023
81b708b
fix: restored autosliding to false on the slider of home page
Sep 18, 2023
2363659
feat: added animations for the tournament slider
Sep 19, 2023
7a743e8
tournmaents are now looooooopingggggg
Sep 20, 2023
934a651
removed debugs
Sep 20, 2023
5115f25
TournamentsList now mostly works
Sep 21, 2023
c346bc6
home page is now a server component
Sep 21, 2023
fac92f8
fix: some modularization errors
Sep 21, 2023
2797bb6
style: replaced a little the background elements of /tournaments page
Sep 21, 2023
a7e6ee2
fix: small bugs on the TournamentList components
Sep 21, 2023
4e0db0a
lint: builds
Sep 21, 2023
a21aaf6
fix: text 2023
DevNono Sep 21, 2023
e3e04ec
fix: back button
DevNono Sep 21, 2023
c414fce
Made TournamentList more flexible and bigger
Sep 22, 2023
908ee37
style : styled the tournament list part of the home page
Sep 22, 2023
efcd514
docs: added docs to the TournamentList component
Sep 22, 2023
1799c3a
update: dependencies
Sep 22, 2023
7e5b4ac
TournamentList is now better looking
Sep 22, 2023
520d8af
TournamentList is now even better
Sep 22, 2023
fa6210d
style: responsive
Sep 22, 2023
d01515f
fix: build is now possible
Sep 23, 2023
485db0e
lint: removed a console.log
Sep 23, 2023
499cccb
fix: text + tournaments
Sep 23, 2023
997e76d
small fix in the responsiveness of the data flexing part (home page)
Sep 23, 2023
644d83a
styles: fixed a lot of style in the responsivity departement
Sep 23, 2023
1e21d07
Merge branch 'dev' into teasing-2023
DevNono Sep 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 17 additions & 17 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
.git/
Dockerfile

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# next.js
/.next/

# production
/build

# misc
.DS_Store
.env
.git/
Dockerfile
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
# next.js
/.next/
# production
/build
# misc
.DS_Store
.env
24 changes: 12 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
# Unix-style newlines
end_of_line = lf
insert_final_newline = false
charset = utf-8
indent_style = space
indent_size = 2
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
# Unix-style newlines
end_of_line = lf
insert_final_newline = false
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
33 changes: 25 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@
"plugin:import/warnings",
"plugin:import/react",
"eslint:recommended",
"next",
"prettier"
"next/core-web-vitals",
"prettier",
"plugin:storybook/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["react-hooks", "react", "prettier"],
"parser": "@typescript-eslint/parser",
"plugins": [
"react",
"prettier",
"@typescript-eslint"
],
"root": true,
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
Expand All @@ -25,20 +33,29 @@
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
"extensions": [
".js",
".jsx"
]
}
}
},
"rules": {
"prettier/prettier": ["error"],
"no-console": "error",
"prettier/prettier": [
"error"
],
"no-console": "off",
"no-alert": "error",
"linebreak-style": ["warn", "unix"],
"react/require-default-props": "error",
"linebreak-style": [
"warn",
"unix"
],
"react/require-default-props": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off",
"react/no-unescaped-entities": "off",
"import/default": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@next/next/no-img-element": "off"
}
}
40 changes: 27 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn --frozen-lockfile
- run: yarn lint
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- uses: lazy-actions/slatify@master
if: ${{ failure() }}
with:
Expand All @@ -27,14 +34,21 @@ jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn --frozen-lockfile
- run: yarn build
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- uses: lazy-actions/slatify@master
if: ${{ failure() }}
with:
Expand All @@ -53,7 +67,7 @@ jobs:
env:
RESOURCE_NAME: ${{ github.ref == 'refs/heads/master' && 'prod-front' || github.ref == 'refs/heads/teaser' && 'prod-teaser' || 'dev-front' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install oc
uses: redhat-actions/oc-installer@v1
with:
Expand Down
31 changes: 29 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,42 @@

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
/.nyc_output

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
pnpm-debug.log*
pnpm-error.log*

# local env files
.env*.local
.env
.vscode/
yarn-error.log

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# docs
/docs

# Webstorm
.idea/
Empty file modified .prettierrc
100755 → 100644
Empty file.
34 changes: 34 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import type { StorybookConfig } from '@storybook/nextjs';
import path from 'path';

const config: StorybookConfig = {
stories: ['./../src/**/*.mdx', './../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@storybook/addon-coverage'
],
framework: {
name: '@storybook/nextjs',
options: {
},
},
docs: {
autodocs: 'tag',
},
webpackFinal: (config) => {
/**
* Add support for alias-imports
* @see https://github.com/storybookjs/storybook/issues/11989#issuecomment-715524391
*/
config!.resolve!.alias = {
...config.resolve?.alias,
'@': [path.resolve(__dirname, '../src/'), path.resolve(__dirname, '../')],
};

return config;
}
};
export default config;
1 change: 1 addition & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<meta name="robots" content="noindex" />
10 changes: 10 additions & 0 deletions .storybook/preview-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<style>
:root {
--font-montserrat: 'Montserrat', sans-serif;
--font-lexend: 'Lexend', sans-serif;
}

.icon {
color: black;
}
</style>
2 changes: 2 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend&family=Montserrat:wght@400;600;700&display=swap" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/modern-normalize/2.0.0/modern-normalize.min.css" />
20 changes: 20 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { Preview } from '@storybook/react';
import { expect } from '@storybook/jest';
import * as matchers from '@testing-library/jest-dom/matchers';
expect.extend(matchers);

import '@/styles.scss';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
FROM node:16
FROM node:18

ENV NODE_ENV=production
WORKDIR /srv/app

RUN npm install -g pnpm

RUN chown node:node .

USER node

COPY --chown=node:node package.json yarn.lock ./
COPY --chown=node:node package.json pnpm-lock.yaml ./

RUN yarn --frozen-lockfile
RUN pnpm install --frozen-lockfile

COPY --chown=node:node ./ ./

RUN yarn build
RUN pnpm build

CMD yarn start
CMD pnpm start
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Nouvelle version du site de l'UTT Arena ([https://arena.utt.fr](https://arena.ut

## Pré-requis

- [Yarn](https://yarnpkg.com/fr/)
- [Pnpm](https://pnpm.io/)

## Installation

Expand All @@ -18,7 +18,7 @@ Nouvelle version du site de l'UTT Arena ([https://arena.utt.fr](https://arena.ut
```
git clone https://github.com/ungdev/UA-front.git
cd UA-front
yarn
pnpm install
```

### Modification de la configuration
Expand All @@ -31,9 +31,13 @@ cp .env.example .env

## Scripts disponibles

- `yarn dev` : permet de lancer une version locale de développement
- `yarn build` : permet de build l'application
- `yarn start` : permet de servir le build
- `yarn build-docs` : permet de générer la documentation des composants situés dans le dossier /src/components/UI. La documentation se situera dans le dossier /docs.
- `yarn lint` : permet d'afficher les recommendations de formatage du code
- `yarn lint-fix` : permet de corriger le formatage du code
- `pnpm dev` : permet de lancer une version locale de développement
- `pnpm build` : permet de build l'application
- `pnpm start` : permet de servir le build
- `pnpm lint` : permet d'afficher les recommendations de formatage du code
- `pnpm lint:fix` : permet de corriger le formatage du code
- `pnpm storybook` : permet de lancer une version locale de Storybook pour visualiser la documentation des composants
- `pnpm storybook:build` : permet de générer la documentation des composants via Storybook. La documentation est générée dans le dossier `docs`
- `pnpm test` : permet de lancer les tests unitaires
- `pnpm test:watch` : permet de lancer les tests unitaires en mode watch
- `pnpm test:coverage` : permet de lancer les tests unitaires et d'afficher la couverture de code
16 changes: 0 additions & 16 deletions docs/Button.md

This file was deleted.

Loading