From a1eaed947402e1b6f756afae374fdac03df4e576 Mon Sep 17 00:00:00 2001 From: Ruslan Makarov Date: Wed, 31 Jan 2024 13:46:10 +0300 Subject: [PATCH] chore: refactor options --- src/App.vue | 4 +--- src/TimelineItemIssues.vue | 4 ++-- src/options.ts | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/App.vue b/src/App.vue index e2d1191..5974a33 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,7 @@ import { DefaultOptions as options } from "./options"; // import "./style.css"; // import "release-timeline/dist/animated-background.css"; + import "./animated-background.css"; const key = ref(0); @@ -15,10 +16,7 @@ options.github.repo = "release-timeline"; function changeRepo() { const url = prompt("Please enter Github Repo url", "https://github.com/vitejs/vite.git"); - console.log(url); const pathParts = url.split("/").filter(part => part); // Remove empty parts - - // console.log(pathParts); options.github.owner = pathParts[2]; options.github.repo = pathParts[3].substring(0, pathParts[3].length - 4); key.value++; diff --git a/src/TimelineItemIssues.vue b/src/TimelineItemIssues.vue index 86e4d7f..1beafd3 100644 --- a/src/TimelineItemIssues.vue +++ b/src/TimelineItemIssues.vue @@ -63,7 +63,7 @@ function toggle(_tab: string) { #{{ pull.number }}: {{ pull.title }} - - @{{ pull.author }} + - @{{ pull.author }}

@@ -80,7 +80,7 @@ function toggle(_tab: string) {

{{ commit.title }} - - @{{ commit.author }} + - @{{ commit.author }}

diff --git a/src/options.ts b/src/options.ts index 9b6f582..824df09 100644 --- a/src/options.ts +++ b/src/options.ts @@ -37,8 +37,8 @@ export const DefaultOptions = { desc: true, pulls: true, commits: true, - pullsUsername: true, - commitsUsername: false, + hidePullUsername: true, + hideCommitUsername: false, hideMergeCommits: true, // defaultOpenTab: "pulls", },