Skip to content

Commit

Permalink
feat: brand new client UI ! (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zusoy authored May 7, 2024
1 parent 3d77f0f commit d3fe580
Show file tree
Hide file tree
Showing 110 changed files with 6,380 additions and 27,141 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install
run: yarn install
run: npm install

- name: Build
run: yarn build --if-present
run: npm run build --if-present

- name: Run tests
run: yarn test
run: npm run test --verbose
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ client-shell:

.PHONY: client-install
client-install:
@docker-compose run --rm --no-deps client yarn install
@docker-compose run --rm --no-deps client npm install

.PHONY: client-build
client-build:
@docker-compose run --rm --no-deps client yarn build --if-present
@docker-compose run --rm --no-deps client npm run build

.PHONY: client-test
client-test:
@docker-compose run --rm --no-deps client yarn test --verbose
@docker-compose run --rm --no-deps client npm run test --verbose

############
# DATABASE #
Expand Down
18 changes: 18 additions & 0 deletions apps/client/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
41 changes: 21 additions & 20 deletions apps/client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
4 changes: 2 additions & 2 deletions apps/client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ WORKDIR ${SRC_DIR}
COPY . ${SRC_DIR}

RUN npm install -g [email protected]
RUN yarn install
RUN npm install

CMD ["yarn", "start"]
CMD ["npm", "run", "dev"]

#########################################

Expand Down
3 changes: 3 additions & 0 deletions apps/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The client is built with :

* [![Redux][Redux]][Redux-url]
* [![Redux-Saga][Redux-Saga]][ReduxSaga-url]
* [![Vite][Vite]][Vite-url]

Redux is used to manage the application state and redux-saga to manage effects (API fetch, Synchronization...)

Expand All @@ -44,3 +45,5 @@ yarn test
[Redux-url]: https://swagger.io/
[Redux-Saga]: https://img.shields.io/badge/ReduxSaga-grey?style=for-the-badge&logo=redux-saga&logoColor=white
[ReduxSaga-url]: https://redux-saga.js.org/
[Vite]: https://img.shields.io/badge/Vite-purple?style=for-the-badge&logo=vite&logoColor=yellow
[Vite-url]: https://vitejs.dev/
12 changes: 12 additions & 0 deletions apps/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chatterer.io</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit d3fe580

Please sign in to comment.