| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | refactor(hooks,providers): rewrite useAckee hook and AckeeProvider | Armand Philippot | 2023-11-11 | 11 | -77/+208 |
| | | |||||
| * | refactor(hooks): rewrite useLocalStorage hook | Armand Philippot | 2023-11-11 | 5 | -59/+133 |
| | | | | | | | | * return a tuple instead of an object * add a validator function as parameter (if the stored value is manually changed, it is not safe to cast its type) * add tests | ||||
| * | refactor(components): rewrite Breadcrumbs component | Armand Philippot | 2023-11-11 | 1 | -34/+53 |
| | | |||||
| * | refactor(components): rewrite Code component and usePrism hook | Armand Philippot | 2023-11-11 | 5 | -183/+309 |
| | | | | | | | | | | | | | * move Prism styles to Sass placeholders to avoid repeats * let usePrism consumer define its plugins (remove default ones) * remove `plugins` prop from Code component * add new props to Code component to let consumer configure plugins (and handle plugin list from the given options) However there are some problems with Prism plugins: line-highlight and treeview does not seems to be loaded. I don't want to use Babel instead of SWC so I have no solution for now. | ||||
| * | feat(components): add a Time component | Armand Philippot | 2023-11-11 | 2 | -41/+0 |
| | | | | | | | Instead of using helpers functions to format the date each time we need to use a time element, it makes more sense to create a new component dedicated to this task. | ||||
| * | refactor(components): rewrite Branding component | Armand Philippot | 2023-11-11 | 2 | -28/+0 |
| | | | | | | | The component should only be responsible of the layout for the logo, the name and the optional baseline. Also, the homepage url could be different from `/` so the consumer should give the right url. | ||||
| * | refactor(routes): replace hardcoded routes with constants | Armand Philippot | 2023-10-24 | 5 | -45/+82 |
| | | | | | | | | | It makes it easier to change a route if needed and it avoid typo mistakes. I also refactored a bit the concerned files to be complient with the new ESlint config. However, I should rewrite the pages to reduce the number of statements. | ||||
| * | refactor: use named export for everything except pages | Armand Philippot | 2023-09-20 | 35 | -132/+114 |
| | | | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements. | ||||
| * | refactor(build): replace paths aliases with relative paths | Armand Philippot | 2023-09-19 | 20 | -44/+44 |
| | | | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases. | ||||
| * | fix(projects): load content dynamically and refresh table of contents | Armand Philippot | 2022-09-21 | 2 | -1/+40 |
| | | | | | | | | The previous way of handling content import was causing issue. So I use dynamic import instead. However, the table of contents was not displayed because the wrapper is first empty. I added a mutation observer to refresh the table of contents when the body is updated. | ||||
| * | fix(comments): load all comments on a post | Armand Philippot | 2022-08-21 | 1 | -20/+7 |
| | | | | | | | | | | Previously, only the first 10 comments was loaded. So I update the fetching method to retrieve all the comments on a post. Also, I choose to order comments on client side because of a bug with WPGraphQL. Finally, I renamed the Comment type to SingleComment to avoid conflict with existing types. | ||||
| * | refactor(types): move and rename GraphQL types | Armand Philippot | 2022-08-20 | 4 | -12/+25 |
| | | | | | | | | The api file in services was not really readable. So I move the types and I also rewrite a little the fetch function. I also rename most of the type to avoid conflict with preexisting types (like Node) and to keep consistency. | ||||
| * | fix(article): prevent TypeError on build | Armand Philippot | 2022-07-23 | 2 | -8/+25 |
| | | | | | | | By switching to custom hooks for revalidating articles and comments, everything was working on development mode but articles failed to build for production. | ||||
| * | refactor(article): wrap useSWR with a custom hook to revalidate article | Armand Philippot | 2022-07-22 | 2 | -4/+28 |
| | | |||||
| * | fix(comments): refresh comments on changes or new comment | Armand Philippot | 2022-07-22 | 1 | -0/+33 |
| | | |||||
| * | fix(settings): close tooltip when modal is closing | Armand Philippot | 2022-06-08 | 2 | -46/+52 |
| | | | | | | The event was not captured so the tooltip remained open when the settings was closed. It prevented to click on the toolbar buttons. | ||||
| * | chore: use image title as figure label if no caption is provided | Armand Philippot | 2022-06-07 | 1 | -0/+1 |
| | | |||||
| * | chore: replace the toggle component | Armand Philippot | 2022-06-01 | 1 | -0/+19 |
| | | |||||
| * | build(deps): bump all dependencies | Armand Philippot | 2022-05-25 | 1 | -21/+0 |
| | | | | | | | | I moved the website picture from useSettings to the layout component since it is only used here. This reduce the number of Jest errors. However, there's still some issues with some images import... | ||||
| * | chore: close search form when launching search | Armand Philippot | 2022-05-24 | 1 | -0/+12 |
| | | |||||
| * | chore: give autofocus to the toolbar search form | Armand Philippot | 2022-05-24 | 1 | -0/+39 |
| | | |||||
| * | fix: ensure all topics/thematics have the base url | Armand Philippot | 2022-05-23 | 1 | -10/+6 |
| | | |||||
| * | refactor(schema): use helpers function to avoid repeat between pages | Armand Philippot | 2022-05-23 | 1 | -0/+224 |
| | | |||||
| * | refactor: reduce the number of data transformation | Armand Philippot | 2022-05-23 | 1 | -17/+32 |
| | | |||||
| * | fix: close Ackee tooltip on button click | Armand Philippot | 2022-05-21 | 1 | -2/+5 |
| | | | | | | | | The tooltip was closing and reopening on click because of a conflict between the button event and the hook useClickOutside. By checking that the event target is not the button, the tooltip is now closing as expected. | ||||
| * | chore: handle blog pagination when JS is disabled | Armand Philippot | 2022-05-20 | 2 | -1/+35 |
| | | |||||
| * | refactor: rewrite Prism hooks and providers | Armand Philippot | 2022-05-19 | 9 | -254/+294 |
| | | | | | | It avoid some hydratation errors on project pages (not in article however) and the hooks are now reusable. | ||||
| * | chore: handle settings change | Armand Philippot | 2022-05-18 | 6 | -1/+126 |
| | | |||||
| * | chore: close toolbar modals on click/focus outside | Armand Philippot | 2022-05-18 | 1 | -0/+43 |
| | | |||||
| * | chore: add branding animation | Armand Philippot | 2022-05-18 | 1 | -0/+29 |
| | | |||||
| * | chore: listen scroll to hide/show back to top button | Armand Philippot | 2022-05-17 | 1 | -0/+15 |
| | | |||||
| * | chore: adjust and complete missing styles | Armand Philippot | 2022-05-16 | 2 | -1/+64 |
| | | | | | | | * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements | ||||
| * | refactor: use custom hook for breadcrumb items and schema | Armand Philippot | 2022-05-16 | 1 | -0/+106 |
| | | |||||
| * | chore: add Search page | Armand Philippot | 2022-05-15 | 2 | -1/+25 |
| | | |||||
| * | chore: add Thematic page | Armand Philippot | 2022-05-13 | 1 | -1/+46 |
| | | |||||
| * | chore: handle blog pagination | Armand Philippot | 2022-05-13 | 2 | -2/+127 |
| | | |||||
| * | chore: add the Blog index page | Armand Philippot | 2022-05-13 | 1 | -0/+58 |
| | | |||||
| * | chore: add Project single pages | Armand Philippot | 2022-05-13 | 5 | -51/+108 |
| | | |||||
| * | refactor: rewrite DescriptionList and Meta components | Armand Philippot | 2022-05-09 | 1 | -15/+0 |
| | | | | | | | The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels. | ||||
| * | chore: add a Contact page | Armand Philippot | 2022-05-07 | 2 | -1/+8 |
| | | |||||
| * | chore: add a Projects page | Armand Philippot | 2022-05-05 | 1 | -0/+85 |
| | | |||||
| * | chore: add a LegalNotice page | Armand Philippot | 2022-05-03 | 1 | -5/+5 |
| | | |||||
| * | chore: add homepage | Armand Philippot | 2022-05-03 | 1 | -0/+112 |
| | | |||||
| * | chore: fetch posts for rss feed | Armand Philippot | 2022-05-02 | 5 | -19/+156 |
| | | |||||
| * | chore: remove old pages, components, helpers and types | Armand Philippot | 2022-04-29 | 9 | -602/+5 |
| | | | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch. | ||||
| * | chore: add a PageLayout component | Armand Philippot | 2022-04-25 | 2 | -3/+44 |
| | | |||||
| * | chore: add a Layout component | Armand Philippot | 2022-04-22 | 1 | -1/+1 |
| | | | | | It defines the different components used by all other layouts. | ||||
| * | chore: add a TableOfContents component | Armand Philippot | 2022-04-22 | 1 | -0/+153 |
| | | |||||
| * | chore: add a Code component | Armand Philippot | 2022-04-19 | 1 | -0/+115 |
| | | |||||
| * | refactor: load prism plugins without babel | Armand Philippot | 2022-03-24 | 2 | -13/+16 |
| | | |||||
