+7
-15
appview/pages/templates/repo/commit.html
+7
-15
appview/pages/templates/repo/commit.html
···
65
65
<div id="diff-file-header" class="border-b cursor-pointer bg-white border-black flex justify-between">
66
66
<div id="left-side-items" class="p-2">
67
67
{{ if .IsNew }}
68
-
<span class="diff-type p-1 text-sm bg-green-100 rounded text-green-700 select-none">A</span>
68
+
<span class="diff-type p-1 mr-1 font-mono text-sm bg-green-100 rounded text-green-700 select-none">A</span>
69
69
{{ end }}
70
70
{{ if .IsDelete }}
71
-
<span class="diff-type p-1 text-sm bg-red-100 rounded text-red-700 select-none">D</span>
71
+
<span class="diff-type p-1 mr-1 font-mono text-sm bg-red-100 rounded text-red-700 select-none">D</span>
72
72
{{ end }}
73
73
{{ if not (or .IsNew .IsDelete) }}
74
-
<span class="diff-type p-1 bg-gray-100 text-sm rounded text-gray-700 select-none">M</span>
74
+
<span class="diff-type p-1 mr-1 font-mono bg-gray-100 text-sm rounded text-gray-700 select-none">M</span>
75
75
{{ end }}
76
76
77
-
{{ if .Name.Old }}
78
-
<a href="/{{ $repo }}/blob/{{ $parent }}/{{ .Name.Old }}" class="no-underline hover:underline">{{ .Name.Old }}</a>
79
-
{{ if .Name.New }}
80
-
→
81
-
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}" class="no-underline hover:underline">{{ .Name.New }}</a>
82
-
{{ end }}
83
-
{{ else }}
84
-
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}" class="no-underline hover:underline">{{ .Name.New }}</a>
85
-
{{- end -}}
77
+
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}" class="no-underline hover:underline">{{ .Name.New }}</a>
86
78
</div>
87
79
88
80
{{ $iconstyle := "p-1 mx-1 hover:bg-gray-100 rounded" }}
···
110
102
<div class="bg-gray-100 text-gray-500 select-none">{{ .Header }}</div>
111
103
{{- range .Lines -}}
112
104
{{- if eq .Op.String "+" -}}
113
-
<div class="bg-green-100 text-green-700"><span class="select-none">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
105
+
<div class="bg-green-100 text-green-700 p-1"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
114
106
{{- end -}}
115
107
116
108
{{- if eq .Op.String "-" -}}
117
-
<div class="bg-red-100 text-red-700"><span class="select-none">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
109
+
<div class="bg-red-100 text-red-700 p-1"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
118
110
{{- end -}}
119
111
120
112
{{- if eq .Op.String " " -}}
121
-
<div class="text-gray-500"><span class="select-none">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
113
+
<div class="text-gray-500 px"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
122
114
{{- end -}}
123
115
124
116
{{- end -}}
+26
scripts/appview.sh
+26
scripts/appview.sh
···
1
+
#!/bin/bash
2
+
3
+
# Variables
4
+
BINARY_NAME="appview"
5
+
BINARY_PATH=".bin/app"
6
+
SERVER="95.111.206.63"
7
+
USER="appview"
8
+
9
+
# SCP the binary to root's home directory
10
+
scp "$BINARY_PATH" root@$SERVER:/root/"$BINARY_NAME"
11
+
12
+
# SSH into the server and perform the necessary operations
13
+
ssh root@$SERVER <<EOF
14
+
set -e # Exit on error
15
+
16
+
# Move binary to /usr/local/bin and set executable permissions
17
+
mv /root/$BINARY_NAME /usr/local/bin/$BINARY_NAME
18
+
chmod +x /usr/local/bin/$BINARY_NAME
19
+
20
+
su appview
21
+
cd ~
22
+
./reset.sh
23
+
EOF
24
+
25
+
echo "Deployment complete."
26
+