Skip to content

Commit

Permalink
feat: button to regenerate public/private keys & registerate the token
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Jun 8, 2023
1 parent af135b7 commit ed1b2fb
Show file tree
Hide file tree
Showing 12 changed files with 2,954 additions and 2,907 deletions.
8 changes: 7 additions & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,13 @@
},
"ghToken": {
"desc": "A GitHub token with repository permission. You can generate it ",
"title": "Github Token"
"encrypted" : "The token will be encrypted and stored as it in your settings.",
"title": "GitHub Token",
"button" : {
"title" : "Regenerate encrypted token",
"notice" : "Token regenerated!",
"tooltip" : "Will regenerate public and private key and save the new encrypted token in your settings."
}
},
"repoName": {
"desc": "The name of the repository where you store your blog.",
Expand Down
872 changes: 439 additions & 433 deletions src/i18n/locales/fr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class GithubPublisher extends Plugin {
async reloadOctokit() {
let octokit: Octokit;
const apiSettings = this.settings.github.api;
const token = await decrypt(this.settings.github.token, this.app, this.manifest, this.settings);
const token = await decrypt(this.settings.github.token, this);
if (apiSettings.tiersForApi === GithubTiersVersion.entreprise && apiSettings.hostname.length > 0) {
octokit = new Octokit(
{
Expand Down
Loading

0 comments on commit ed1b2fb

Please sign in to comment.