* new settings work
* Polishing work on settings refactor
* Run intl:extract
* List view -> Rows view
* Remove current preferred system theme indicator to make the themes fit on one line
* Remove extra margin on top of navstack
* Convert default.vue to composition API
* Add translations to default page layout
* Generate index.json
* Fix sign up page
* Generate index.json
* Fix atUserLabel
* Fix composition API port
* Follow-up fixes for #1616 (#1618)
* Re-organize default layout messages
- Group some of the messages by their appearance (like banners)
Grouping makes avoids having to think too much about the property
names, keeps declarations clean, and also can be minified better,
since variable names, unlike property names, can be easily mangled.
- Remove needless type specification in property name[^1]
It's already clear from where the message is formatted what it does,
and if you need clarification, you can Ctrl+hover and see the type in
the key.
- Change some keys to conform to conventions
We generally follow the pattern location > kind?. Things like 'label'
are unnecessary, as everything is assumed to be label by default; the
same applies to things like 'button', which are also often unnecessary
as they're part of the location compound.
- Remove message for handle, which should not be translatable
It's very unlikely user handle format changes between any of the
locales.
[^1]: Common messages are pending restructuring that would fix this
* Fix navRoutes not being computed in default layout
* Fix untranslated Get Modrinth App buttons in default layout
* Make legal disclaimer in the default layout translatable
It wouldn't make much sense to leave it untranslated since it is meant
for the end users too. It is also so small that it's unlikely to be
mistranslated.
* Extract missed legal disclaimer message from default layout
* Make SEO strings in default layout translatable
---------
Co-authored-by: Sasha Sorokin <10401817+brawaru@users.noreply.github.com>
* Begin Work
* More work
* Fix lint error
* More work on label
* Fix mistake
* Finish adding delete pat modal keys
* More label and button
* More label keys
* Fix lint error
* Description key
* Finish page
* Forgot this
* Fix lint error
* Add to navstack
* Apply suggestions from brawaru
* Normalization
* Re-organize PATs page messages (#10)
- Group messages by their usage
- Fix spelling mistakes in some of the property names and keys
- Change some of the keys to conform to keying conventions
- Change variable name in token.expires-in message to inTime
* Regenrate index.json
---------
Co-authored-by: Sasha Sorokin <10401817+brawaru@users.noreply.github.com>
* Begin Work
* Add email sent notification keys
* Finish adding notification keys
* Fix lint error
* Finish work (I think)
* Remove password label (generic)
* Add password label key
* Re-organize Reset password page messages (#11)
- Group messages by their use
- Change some of the keys for clarity
- Change some keys to conform to conventions
---------
Co-authored-by: Sasha Sorokin <10401817+brawaru@users.noreply.github.com>
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
* Begin Work
* Add more common messages
* Work on modal
* Add more keys
* Add keys for icon buttons
* Add more keys
* Handle error keys
* Add more keys
* Add more keys
* Edit fields keys
* Finish (almost)
* Finish work for collection page
* Dashboard Nav stack & Format
* WIP
* Move some messages to common
* Finish work
* Format
* Reorganization
* Fix some mistake
* add common collections label
* Add collections label key to default layout
* Make title and description reactive (#8)
---------
Co-authored-by: Sasha Sorokin <10401817+brawaru@users.noreply.github.com>
* Rip out external color state
* Fix styling errors
* Allow charts to display personal/entity perspectives on routes
* Refactor analytics data processing and selection
* Include custom color icon
* Adjust colors to be controlled from outside chart component
* Access colors from source of truth
* Change access method to omit projects from params
* Just omit projects from query
* Fix donation link submission
* Refactor Charts to fit edgecase bugs in design
* edge and mobile bug fixes
* remove dead code
* fix width on mobile
* Update omorphia version to 0.7.3
* Refactor legend item styling in ChartDisplay.vue
* Update package dependencies
* [WIP] Transfer collections to own branch
* fixes
* rewrite js
* Add visibility dropdown to collection edit modal
* Add visibility badges to collection page
* Update visibility options and icons in collection
page
* Add delete functionality to collection modal
* Collection project deletion flow
* remove "visit project" button on overflow
* Remove via checklist not individually
* Update manage title in settings.vue
* remove collections from settings page
* hook up collections page
* collection header to look like project header
* Refactor layout.scss and collections.vue
* fix omorphia
* Update
* Conform collections to old design structure
* Update navigation links and remove unused code
* Add collection view and collections to user page
* Refactor user project display logic
* Add collection creation functionality and update profile labels
* Add function calls to initialize user collections
* Refactor collection page layout and functionality
* Add initialization of user collections in create function
* Fix styling issue in collection page
* Update collection status to private
* remove name
* Refactor card component and update grid layout
* Finish collections
---------
Co-authored-by: Carter <safe@fea.st>
* [WIP] Transfer analytics to own branch
* code style changes
* Refactor country name conversion
* Clean up api and ssr for settings page
* refactor analytics into reusables
* Refactor chart tooltip and reset functionality
* Update dayjs import and formatTimestamp function
* Fix bug in login functionality
* Abstract data fetching
* Refactor analytics data formatting
* Refactor useFetchAllAnalytics function signature
* Refactor analytics processing functions
* Fix chart data in ChartDisplay.vue
* Refactor analytics pages
* Refactor delete labrinth.ts test types
* Fix import statement for dayjs and update usage of
unix function
* Fix dropdown select in ChartDisplay.vue and add
Analytics link in creations.vue
* Update chart colors in ChartDisplay.vue and
analytics.js
* Update defaultRanges in ChartDisplay.vue
* Add colors to chart
* Update legend position in ChartDisplay.vue
* Refactor color conversion functions in
analytics.js
* Bug fixes
* Use softer colors
* Import dayjs unix module for analytics.js
* Refactor chart tooltip generation
* Fix calculation of total value in generateTooltip
function
* Fix button-base styling in ChartDisplay.vue
* Adopt intl standard rather than iso-3166-1
* Add support for potential flags
* Analytics rebased
* fix cf pages
* now?
* try now
* now?
* Fix this time
* address rev
* Finish analytics
* fix api url
---------
Co-authored-by: Carter <safe@fea.st>
This commit adds a fallback to getProjectTypeMessage function to return
a generic project type whenever it encounters an unknown project type,
ensuring there are no errors when the new project types are added.
* adjust existing sign-in flow
* test fetching of oauth client
* allow for apiversion override
* getAuthUrl refactor
* Adjust auth to accept complex url redirections
* introduce scopes
* accept oauth flow
* rename login/oauth to authorize
* conform to labrinth spec and oauth2 spec
* use cute icons for scope items
* applications pages
* Modal for copy client secret on creation
* rip out old state
* add authorizations
* add flow error state and implement feedback
* implement error notifications on error
* Client secret modal flow aligned with PAT copy
* Authorized scopes now aligned with Authorize screen
* Fix spelling and capitalization
* change redirect uris to include the input field
* refactor 2fa flow to be more stable
* visual adjustments for authorizations
* Fix empty field submission bug
* Add file upload for application icon
* Change shape of editing/create application
* replace icon with Avatar component
* Refactor authorization card styling
* UI feedback
* clean up spacing, styling
* Create a "Developer" section of user settings
* Fix spacing and scope access
* app description and url implementations
* clean up imports
* Update authorization endpoint
* Update placeholder URL in applications.vue
* Remove app information from authorization page
* Remove max scopes from application settings
* Fix import statement and update label styles
* Replace useless headers
* Update pages/auth/authorize.vue
Co-authored-by: Calum H. <contact@mineblock11.dev>
* Update pages/auth/authorize.vue
Co-authored-by: Calum H. <contact@mineblock11.dev>
* Finish PR
---------
Co-authored-by: Calum H. <contact@mineblock11.dev>
Co-authored-by: Jai A <jaiagr+gpg@pm.me>