Skip to content

Commit a678040

Browse files
rainmotetiensonqin
authored andcommitted
fix: can't found code-editor.js on desktop
fix: load setting page error when no repo
1 parent 67a1aba commit a678040

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ strings.csv
2929

3030
.calva
3131
resources/electron.js
32+
.clj-kondo/
33+
.lsp/

resources/electron-dev.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,6 @@
103103
</script>
104104
<script src="./js/main.js"></script>
105105
<script src="./js/highlight.min.js"></script>
106+
<script src="./js/code-editor.js"></script>
106107
</body>
107108
</html>

resources/electron.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,6 @@
102102
</script>
103103
<script src="./js/main.js"></script>
104104
<script src="./js/highlight.min.js"></script>
105+
<script src="./js/code-editor.js"></script>
105106
</body>
106107
</html>

src/main/frontend/components/header.cljs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@
116116
:target "_blank"}
117117
:icon svg/external-link}))
118118

119-
{:title (t :settings)
120-
:options {:href (rfe/href :settings)}
121-
:icon svg/settings-sm}
119+
(when current-repo
120+
{:title (t :settings)
121+
:options {:href (rfe/href :settings)}
122+
:icon svg/settings-sm})
122123

123124
(when current-repo
124125
{:title (t :export)

src/main/frontend/components/svg.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
(rum/defc arrow-left
3333
[]
3434
[:svg.w-6.h-6
35-
{:viewbox "0 0 24 24", :stroke "currentColor", :fill "none"}
35+
{:viewBox "0 0 24 24", :stroke "currentColor", :fill "none"}
3636
[:path
3737
{:d "M15 19l-7-7 7-7",
3838
:stroke-width "2",
@@ -42,7 +42,7 @@
4242
(rum/defc arrow-right
4343
[]
4444
[:svg.w-6.h-6
45-
{:viewbox "0 0 24 24", :stroke "currentColor", :fill "none"}
45+
{:viewBox "0 0 24 24", :stroke "currentColor", :fill "none"}
4646
[:path
4747
{:d "M9 5l7 7-7 7",
4848
:stroke-width "2",
@@ -105,7 +105,7 @@
105105

106106
(defonce minus
107107
[:svg.w-6.h-6
108-
{:viewbox "0 0 24 24", :stroke "currentColor", :fill "none"}
108+
{:viewBox "0 0 24 24", :stroke "currentColor", :fill "none"}
109109
[:path
110110
{:d "M20 12H4"
111111
:stroke-width "2"
@@ -114,7 +114,7 @@
114114

115115
(defonce rectangle
116116
[:svg.w-6.h-6
117-
{:viewbox "0 0 24 24", :stroke "currentColor", :fill "none"}
117+
{:viewBox "0 0 24 24", :stroke "currentColor", :fill "none"}
118118
[:path
119119
{:d "M3.16580358,18.5038125 L20.5529464,18.5038125 C22.6525178,18.5038125 23.7072321,17.4593839 23.7072321,15.3902411 L23.7072321,3.12495537 C23.7072321,1.0558125 22.6525178,0.0113839219 20.5529464,0.0113839219 L3.16580358,0.0113839219 C1.07651787,0.0118125 0.0115178672,1.04638392 0.0115178672,3.12495537 L0.0115178672,15.3906696 C0.0115178672,17.4696696 1.07651787,18.5042411 3.16580358,18.5042411 L3.16580358,18.5038125 Z M3.19580358,16.8868125 C2.19123216,16.8868125 1.62894642,16.3545268 1.62894642,15.3096696 L1.62894642,3.20638392 C1.62894642,2.16152679 2.19123213,1.62924108 3.19580358,1.62924108 L20.5229464,1.62924108 C21.5172321,1.62924108 22.0898036,2.16152679 22.0898036,3.20638392 L22.0898036,15.3092411 C22.0898036,16.3540982 21.5172322,16.8863839 20.5229464,16.8863839 L3.19580358,16.8868125 Z"
120120
:stroke-width "2"}]])

0 commit comments

Comments
 (0)