Skip to content

Commit b356c37

Browse files
committed
feat: updated translations, updated web auth to be default, removed unused setting
1 parent 4407f67 commit b356c37

File tree

8 files changed

+9
-12
lines changed

8 files changed

+9
-12
lines changed

app/composables/useConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export const useConnector = createSharedComposable(function useConnector() {
307307
method: 'POST',
308308
body: {
309309
otp,
310-
interactive: settings.value.connector.webAuth,
310+
interactive: !otp,
311311
openUrls: settings.value.connector.autoOpenURL,
312312
},
313313
})

app/composables/useSettings.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export interface AppSettings {
3131
searchProvider: SearchProvider
3232
/** Connector preferences */
3333
connector: {
34-
/** Use web-based authentication instead of CLI token */
35-
webAuth: boolean
3634
/** Automatically open the web auth page in the browser */
3735
autoOpenURL: boolean
3836
}
@@ -50,7 +48,6 @@ const DEFAULT_SETTINGS: AppSettings = {
5048
preferredBackgroundTheme: null,
5149
searchProvider: import.meta.test ? 'npm' : 'algolia',
5250
connector: {
53-
webAuth: false,
5451
autoOpenURL: false,
5552
},
5653
sidebar: {

i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
"end_of_results": "End of results",
126126
"try_again": "Try again",
127127
"close": "Close",
128+
"or": "or",
128129
"retry": "Retry",
129130
"copy": "copy",
130131
"copied": "copied!",
@@ -472,7 +473,6 @@
472473
"warning_text": "This allows npmx to access your npm CLI. Only connect to sites you trust.",
473474
"connect": "Connect",
474475
"connecting": "Connecting...",
475-
"web_auth": "Use web authentication",
476476
"auto_open_url": "Automatically open auth page"
477477
}
478478
},

i18n/locales/pl-PL.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
"end_of_results": "Koniec wyników",
126126
"try_again": "Spróbuj ponownie",
127127
"close": "Zamknij",
128+
"or": "lub",
128129
"retry": "Ponów",
129130
"copy": "kopiuj",
130131
"copied": "skopiowano!",
@@ -462,7 +463,6 @@
462463
"warning_text": "To pozwala npmx uzyskać dostęp do twojego npm CLI. Łącz się tylko ze stronami, którym ufasz.",
463464
"connect": "Połącz",
464465
"connecting": "Łączenie...",
465-
"web_auth": "Używaj autoryzacji w przeglądarce",
466466
"auto_open_url": "Automatycznie otwórz stronę z autoryzacją"
467467
}
468468
},

i18n/schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@
379379
"close": {
380380
"type": "string"
381381
},
382+
"or": {
383+
"type": "string"
384+
},
382385
"retry": {
383386
"type": "string"
384387
},
@@ -1420,9 +1423,6 @@
14201423
"connecting": {
14211424
"type": "string"
14221425
},
1423-
"web_auth": {
1424-
"type": "string"
1425-
},
14261426
"auto_open_url": {
14271427
"type": "string"
14281428
}

lunaria/files/en-GB.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
"end_of_results": "End of results",
125125
"try_again": "Try again",
126126
"close": "Close",
127+
"or": "or",
127128
"retry": "Retry",
128129
"copy": "copy",
129130
"copied": "copied!",
@@ -471,7 +472,6 @@
471472
"warning_text": "This allows npmx to access your npm CLI. Only connect to sites you trust.",
472473
"connect": "Connect",
473474
"connecting": "Connecting...",
474-
"web_auth": "Use web authentication",
475475
"auto_open_url": "Automatically open auth page"
476476
}
477477
},

lunaria/files/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
"end_of_results": "End of results",
125125
"try_again": "Try again",
126126
"close": "Close",
127+
"or": "or",
127128
"retry": "Retry",
128129
"copy": "copy",
129130
"copied": "copied!",
@@ -471,7 +472,6 @@
471472
"warning_text": "This allows npmx to access your npm CLI. Only connect to sites you trust.",
472473
"connect": "Connect",
473474
"connecting": "Connecting...",
474-
"web_auth": "Use web authentication",
475475
"auto_open_url": "Automatically open auth page"
476476
}
477477
},

lunaria/files/pl-PL.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
"end_of_results": "Koniec wyników",
125125
"try_again": "Spróbuj ponownie",
126126
"close": "Zamknij",
127+
"or": "lub",
127128
"retry": "Ponów",
128129
"copy": "kopiuj",
129130
"copied": "skopiowano!",
@@ -461,7 +462,6 @@
461462
"warning_text": "To pozwala npmx uzyskać dostęp do twojego npm CLI. Łącz się tylko ze stronami, którym ufasz.",
462463
"connect": "Połącz",
463464
"connecting": "Łączenie...",
464-
"web_auth": "Używaj autoryzacji w przeglądarce",
465465
"auto_open_url": "Automatycznie otwórz stronę z autoryzacją"
466466
}
467467
},

0 commit comments

Comments
 (0)