Skip to content

Commit 8676084

Browse files
authored
modernize PATs, apps, and session settings pages (#8058)
1 parent ad185b2 commit 8676084

38 files changed

Lines changed: 750 additions & 653 deletions

File tree

‎apps/frontend/src/components/ui/AuthorizationCard.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="flex flex-col gap-2 border-0 border-b border-solid border-surface-4 p-4">
44
<div class="flex flex-wrap justify-between gap-3">
55
<div class="flex items-center gap-3">
6-
<Avatar :src="authorization.app.icon_url" size="48px" />
6+
<Avatar :src="authorization.app.icon_url" size="48px" no-shadow />
77
<div class="flex flex-col gap-0.5">
88
<h2 class="m-0 flex items-center gap-1 text-base font-semibold">
99
{{ authorization.app.name }}

‎apps/frontend/src/locales/cs-CZ/index.json‎

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/frontend/src/locales/da-DK/index.json‎

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/frontend/src/locales/de-CH/index.json‎

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/frontend/src/locales/de-DE/index.json‎

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/frontend/src/locales/en-US/index.json‎

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6677,6 +6677,12 @@
66776677
"settings.applications.description.intro": {
66786678
"message": "Applications can be used to authenticate Modrinth's users with your products. For more information, see <docs-link>Modrinth's API documentation</docs-link>."
66796679
},
6680+
"settings.applications.empty-state.description": {
6681+
"message": "Applications you create will appear here."
6682+
},
6683+
"settings.applications.empty-state.heading": {
6684+
"message": "No applications"
6685+
},
66806686
"settings.applications.field.description": {
66816687
"message": "Description"
66826688
},
@@ -6713,6 +6719,9 @@
67136719
"settings.applications.modal.header": {
67146720
"message": "Application information"
67156721
},
6722+
"settings.applications.no-scopes": {
6723+
"message": "No scopes"
6724+
},
67166725
"settings.applications.notification.icon-updated.description": {
67176726
"message": "Your application icon has been updated."
67186727
},
@@ -6974,6 +6983,12 @@
69746983
"settings.pats.description": {
69756984
"message": "PATs can be used to access Modrinth's API. They can be created and revoked at any time. For more information, see <doc-link>Modrinth's API documentation</doc-link>."
69766985
},
6986+
"settings.pats.empty-state.description": {
6987+
"message": "Tokens you create will appear here."
6988+
},
6989+
"settings.pats.empty-state.heading": {
6990+
"message": "No personal access tokens"
6991+
},
69776992
"settings.pats.modal.create.action": {
69786993
"message": "Create PAT"
69796994
},
@@ -6989,24 +7004,30 @@
69897004
"settings.pats.modal.create.title": {
69907005
"message": "Create personal access token"
69917006
},
6992-
"settings.pats.modal.delete.action": {
6993-
"message": "Delete this token"
7007+
"settings.pats.modal.edit.title": {
7008+
"message": "Edit personal access token"
69947009
},
6995-
"settings.pats.modal.delete.description": {
6996-
"message": "This will remove this token forever (like really forever)."
7010+
"settings.pats.modal.revoke.action": {
7011+
"message": "Revoke this token"
69977012
},
6998-
"settings.pats.modal.delete.title": {
6999-
"message": "Are you sure you want to delete this token?"
7013+
"settings.pats.modal.revoke.description": {
7014+
"message": "This token will immediately be invalidated and anything you have set up using it will stop working. This action cannot be undone."
70007015
},
7001-
"settings.pats.modal.edit.title": {
7002-
"message": "Edit personal access token"
7016+
"settings.pats.modal.revoke.title": {
7017+
"message": "Are you sure you want to revoke this token?"
7018+
},
7019+
"settings.pats.token.access-token": {
7020+
"message": "Access token"
70037021
},
70047022
"settings.pats.token.action.edit": {
70057023
"message": "Edit token"
70067024
},
70077025
"settings.pats.token.action.revoke": {
70087026
"message": "Revoke token"
70097027
},
7028+
"settings.pats.token.disclaimer": {
7029+
"message": "Save this token now. You will only be able to view it once. When you leave this page, you won't be able to see it again."
7030+
},
70107031
"settings.pats.token.expired-ago": {
70117032
"message": "Expired {ago}"
70127033
},
@@ -7019,21 +7040,39 @@
70197040
"settings.pats.token.never-used": {
70207041
"message": "Never used"
70217042
},
7043+
"settings.pats.token.no-permissions": {
7044+
"message": "No permissions"
7045+
},
70227046
"settings.sessions.action.revoke-session": {
70237047
"message": "Revoke session"
70247048
},
70257049
"settings.sessions.created-ago": {
7026-
"message": "Created {ago}"
7050+
"message": "Signed in {ago}"
70277051
},
70287052
"settings.sessions.current-session": {
70297053
"message": "Current session"
70307054
},
7031-
"settings.sessions.description": {
7032-
"message": "Here are all the devices that are currently logged in with your Modrinth account. You can log out of each one individually.\n\nIf you see an entry you don't recognize, log out of that device and change your Modrinth account password immediately."
7055+
"settings.sessions.description.1": {
7056+
"message": "These are all the devices currently signed in with your Modrinth account. You can sign out of each one individually by revoking their session. If you don't recognize a device, sign out of that device and change your Modrinth account password immediately."
7057+
},
7058+
"settings.sessions.description.2": {
7059+
"message": "Locations listed may be approximate since they are based on the IP address. VPNs and some internet service providers may obscure the actual location."
7060+
},
7061+
"settings.sessions.empty-state.description": {
7062+
"message": "Devices signed in to your account will appear here."
7063+
},
7064+
"settings.sessions.empty-state.heading": {
7065+
"message": "No active sessions"
7066+
},
7067+
"settings.sessions.ip": {
7068+
"message": "IP address: {ip}"
70337069
},
70347070
"settings.sessions.last-accessed-ago": {
70357071
"message": "Last accessed {ago}"
70367072
},
7073+
"settings.sessions.modrinth-app": {
7074+
"message": "Modrinth App"
7075+
},
70377076
"settings.sessions.unknown-os": {
70387077
"message": "Unknown OS"
70397078
},

‎apps/frontend/src/locales/es-419/index.json‎

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/frontend/src/locales/es-ES/index.json‎

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/frontend/src/locales/fil-PH/index.json‎

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/frontend/src/locales/fr-FR/index.json‎

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)