- Migration des pages Mon espace dans app
- utiliser useUser pour l'accès à l'authentification
- dsfr (faisable car les pages sont simples et surtout accessibles aux membres du staff)
- Passage de la Consultation de l'index en DSFR (devrait être assez rapide) + homogénéité des headers et footer avec la Repeq
- Migration des pages Simulateur dans app
- v1. Ajouter le simulateur dans app.
- migrer les routes de React Router en routes Next
- v1. Ajouter le simulateur dans app.
- créer un layout pour les pages de simulateur (avec header et footer unifié avec la Repeq)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity 0.8.18; | |
import "./1_Storage.sol"; | |
interface IStorage { | |
function store(uint256 num) external ; | |
function retrieve() external view returns (uint256); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity 0.8.18; | |
/** | |
* Guess a word with a clue. | |
*/ | |
contract Guess { | |
address owner; | |
string mysteryText; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.2 <0.9.0; | |
/** | |
* Compte épargne | |
* | |
* Cf. aussi Ownable de OpenZeppelin | |
*/ | |
contract Epargne { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.2 <0.9.0; | |
/** | |
* @title Storage | |
* @dev Store & retrieve value in a variable | |
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts | |
*/ | |
contract Storage { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/** | |
* @title Whitelist | |
* @dev | |
*/ | |
contract Whitelist { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Takes a string and returns it as an element of a tuple. | |
* | |
* In case of invalid value, returns default value if there is one, otherwise throw an error. | |
*/ | |
export const castAsTupleOption = <Tuple extends readonly string[]>( | |
options: Tuple, | |
value: string | undefined, | |
defaultValue?: Tuple[number], | |
): Tuple[number] => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key": "capslock", | |
"command": "extension.vim_escape", | |
"when": "editorTextFocus && vim.active && !inDebugRepl" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SWRConfig } from "swr"; | |
import { fetcher } from "@services/apiClient"; | |
// Your fetcher need to throw error with an statusCode. | |
const MyApp = () => { | |
return ( | |
<SWRConfig | |
value={{ |