8000 Nuxt 3 with Pinia by matthias-noetzli · Pull Request #385 · open5e/open5e · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Nuxt 3 with Pinia #385

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

Merged
merged 4 commits into from
May 20, 2023
Merged

Nuxt 3 with Pinia #385

merged 4 commits into from
May 20, 2023

Conversation

matthias-noetzli
Copy link
Contributor

My attempt at getting the project to run on Nuxt 3 with Pinia, starting from a fresh Nuxt 3 project. It wasn't overly complicated but I had to touch a lot of files. A couple of things to note/that I wasn't sure about:

  1. The store could probably be even simpler if we removed the getters, since all they do is directly return state. I kept them in for now because it meant less changes.
  2. The LOAD_RACES and LOAD_SECTIONS actions in the vuex store had checks like if (!context.sections). What was the intent there? I took them out for now, because I wasn't sure how to migrate them without knowing their purpose.
  3. I took out vue-scrollto for now because I ran into this issue with Nuxt 3: Getting Error in Nuxt JS "Cannot read properties of undefined (reading 'scrollTo')" rigor789/vue-scrollto#736
  4. I have not yet added the google analytics module. I did however see that it is no longer maintained.

8000
@matthias-noetzli matthias-noetzli marked this pull request as ready for review May 19, 2023 13:42
@eepMoody
Copy link
Collaborator

This is looking great! Just ran a test locally, and everything seems to be working perfectly as expected. Going to merge it into staging and keep an eye on it, make sure nothing unexpected crops up with the deployment.

I'm going to add on one small change to the homepage, just so it's easier to tell with 100% certainty that it's been deployed.

@eepMoody eepMoody merged commit 4b7fe07 into open5e:staging May 20, 2023
eepMoody added a commit that referenced this pull request Jul 1, 2023
* fix: #377 blockquote styles (#381)

* Nuxt 3 with Pinia (#385)

* Migrate to Nuxt 3 with pinia

* Create package-lock.json

* Temporary side-not style fix

* Small homepage change to detect deployment

---------

Co-authored-by: Ean Moody <moody.designer@gmail.com>

* Update package-lock, see if this resolves errors

* adjust config to test deployment

* set nitro to digital-ocean preset

* set nitro to digital-ocean preset for real this time

* adjust vue alias based on client vs. server

* remove extra value in monster axios call

* Fix linting issues, enforce linting in pre-commit (#386)

* Fix linting issues, enforce linting in pre-commit

* add vue eslint

* eslint recommended, we can be strict.

* First --fix pass, 73 more problems

* Ignore vue/multi-word-component-names

---------

Co-authored-by: Ean Moody <moody.designer@gmail.com>

* fix all lint errors - apply prettier to affected pages (#388)

* GitHub Actions CI / PR validation

* Prettify all the things forever (#389)

* add prettier formatting to pre-commit hooks

* test

* add pretty-quick for quick file formatting

* test

* test

* prettify all the things

* tweak ci actions to remove duplicate warnings (probably)

* code review fix

* fix lint warnings

* stop eslint and prettier from fighting

* add google analytics tracking for new GA4 tags (#390)

* Update README.md (#394)

* Update README.md

* Update README.md

* Accessibility Improvements (#396)

* Add language attribute

* Fix lists

* Add alt texts

* Accessibility improvements for the monster list, spell list and magic item list pages (#398)

* A11y improvement for spells table

* A11y improvements for item and monster lists

* Change monster list currentSortProperty to match current behaviour

* Show one big list when there is a filter.

* Change tag color to meet contrast requirements

* Extract SortableTableHeader component and add arrow icons

* Add gray color variable

* Adjust placeholder color

* Always use h1 as page title

* Adjust tag color

* Correct url for search API request, avoiding 301 (#400)

* Feature/tailwind (#401)

* Correct url for search API request, avoiding 301

* Initial setup of Tailwind

* Re-added husky

* Feature/tailwind colors (#402)

* colors and search page

* link colors and search behavior

* quick fix on sidebar colors (#403)

* Fixed a bug with navbar displaying appendixes subroutes (#406)

* Bump vite from 4.3.8 to 4.3.9 (#399)

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.3.8 to 4.3.9.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.3.9/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add source selection (#404)

* search loading messages and icon

* create random color based on title of source

* add sources to magic items, monsters, races, and spells

* cleanup source tag display, add to search

* prettier

* Add source selection to store

* implement global source settings

* refactor API calls and simplify

* update tables to use new call functions and fields

* add persistent source selection & store locally

* eslint fixes

* styling cleanup

* PR cleanup

- unnecessary inits and loads
- visual bugs
- type size

* code review fixes

* get API calls running cleaner and more efficient

* handle attempts to load during init

* update modal with new slots

* fix initial setting of sources

* hotfix: filter on magic items list

* hotfix: fields should not default to null

* hotfix: prefetch on lists

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Peter <peter.binkowski@gmail.com>
Co-authored-by: Matthias Nötzli <91967281+matthias-noetzli@users.noreply.github.com>
Co-authored-by: David Prothero <david@prothero.com>
Co-authored-by: Davey Faherty <daveyfaherty@gmail.com>
Co-authored-by: calum <47755775+calumbell@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0