Skip to content

Commit 3a9b674

Browse files
authored
Merge pull request #26 from tbrittain/22-top-movers
Top movers page and misc fixes
2 parents a2f6665 + ba36180 commit 3a9b674

17 files changed

Lines changed: 260 additions & 36 deletions

File tree

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
8+
- package-ecosystem: npm
9+
directory: /frontend
10+
schedule:
11+
interval: weekly
12+
13+
- package-ecosystem: github-actions
14+
directory: /
15+
schedule:
16+
interval: weekly

.github/workflows/pr.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ jobs:
2525
- name: Install Linux dependencies
2626
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
2727

28+
- name: Install frontend dependencies
29+
run: cd frontend && npm ci
30+
31+
- name: Lint frontend
32+
run: cd frontend && npm run lint
33+
2834
- name: Build frontend
29-
run: cd frontend && npm ci && npm run build
35+
run: cd frontend && npm run build
3036

3137
- name: Run Go tests
3238
run: go test ./...

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ jobs:
7474

7575
- name: Generate version
7676
id: version
77+
shell: bash
7778
run: echo "tag=v$(date -u +%Y.%m.%d).${{ github.run_number }}" >> "$GITHUB_OUTPUT"
7879

7980
- name: Build
81+
shell: bash
8082
run: wails build -platform ${{ matrix.platform }} ${{ matrix.build-flags }} -ldflags "-X main.Version=${{ steps.version.outputs.tag }}"
8183

8284
- name: Zip artifact (Windows)

build/appicon.png

735 KB
Loading

build/darwin/iconfile.icns

883 KB
Binary file not shown.

build/windows/icon.ico

89.6 KB
Binary file not shown.

frontend/src/App.vue

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<script lang="ts" setup>
22
import { onMounted, provide, ref } from 'vue'
33
import { CheckForUpdate, OpenRepository, SelectDirectory, Version } from '../wailsjs/go/main/App'
4-
import RepoSelector from './components/RepoSelector.vue'
4+
import logoUrl from './assets/images/logo.png'
55
import RecentReposList from './components/RecentReposList.vue'
6+
import RepoSelector from './components/RepoSelector.vue'
67
78
const repoPath = ref('')
89
provide('repoPath', repoPath)
@@ -65,7 +66,10 @@ async function onOpenRecent(path: string) {
6566
<template>
6667
<div id="layout">
6768
<header>
68-
<h1>Git Analytics</h1>
69+
<div class="brand">
70+
<img :src="logoUrl" alt="" class="header-icon" />
71+
<h1>Git Analytics</h1>
72+
</div>
6973
<RepoSelector
7074
:repo-path="repoPath"
7175
:loading="loading"
@@ -119,6 +123,17 @@ header {
119123
flex-shrink: 0;
120124
}
121125
126+
.brand {
127+
display: flex;
128+
align-items: center;
129+
gap: 8px;
130+
}
131+
132+
.header-icon {
133+
width: 24px;
134+
height: 24px;
135+
}
136+
122137
header h1 {
123138
margin: 0;
124139
font-size: 18px;
-136 KB
Binary file not shown.
864 KB
Loading

frontend/src/components/RecentReposList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const repos = ref<config.RecentRepo[]>([])
1111
1212
onMounted(async () => {
1313
try {
14-
repos.value = await RecentRepos() ?? []
14+
repos.value = (await RecentRepos()) ?? []
1515
} catch {
1616
repos.value = []
1717
}
@@ -20,7 +20,7 @@ onMounted(async () => {
2020
async function remove(path: string) {
2121
try {
2222
await RemoveRecentRepo(path)
23-
repos.value = repos.value.filter(r => r.path !== path)
23+
repos.value = repos.value.filter((r) => r.path !== path)
2424
} catch {
2525
// ignore
2626
}

0 commit comments

Comments
 (0)