Skip to content

Commit e92482c

Browse files
committed
Release v1.10.0
1 parent afb15ce commit e92482c

11 files changed

Lines changed: 453 additions & 467 deletions

File tree

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ libraryDependencies ++= Seq(
135135
"ch.qos.logback" % "logback-classic" % "1.2.10",
136136

137137
// grpc
138-
"me.binwang.scala2grpc" %% "generator" % "1.2.0",
138+
"me.binwang.scala2grpc" %% "generator" % "1.3.0-SNAPSHOT",
139139

140140
// http server
141141
"org.http4s" %% "http4s-ember-client" % http4sVersion,

js/css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ body {
3434
min-height: 100vh;
3535
background: var(--pico-background-color);
3636
color: var(--pico-color);
37+
overflow-x: hidden; /* disable scroll to out of view content when sidebar is open */
3738
}
3839

3940
a {

js/package-lock.json

Lines changed: 289 additions & 462 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"htmx.org": "^1.9.12",
1717
"imgs-html": "^0.0.4",
1818
"lite-youtube-embed": "^0.3.3",
19-
"somment": "^0.0.3",
19+
"somment": "^0.0.6",
2020
"toastify-js": "^1.12.0",
2121
"viewerjs": "^1.11.6"
2222
},

project/plugin.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0")
33
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
44

55
addSbtPlugin("org.typelevel" % "sbt-fs2-grpc" % "2.7.21")
6-
addSbtPlugin("me.binwang.scala2grpc" % "plugin" % "1.2.0")
6+
addSbtPlugin("me.binwang.scala2grpc" % "plugin" % "1.3.0-SNAPSHOT")
77

88
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0")
99

src/main/protobuf/grpc-api.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
syntax = "proto3";
33

4+
option go_package = "binwang.me/rss/grpc";
45
option java_multiple_files = true;
56
option java_package = "me.binwang.rss.grpc";
67

src/main/resources/application.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ redis {
2424
}
2525

2626
api {
27-
version = "1.9.0"
27+
version = "1.10.0"
2828
}
2929

3030
grpc {

src/main/scala/me/binwang/rss/grpc/generator/GenerateGRPC.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import scala.reflect.runtime.universe.{Type, typeOf}
2424
object GenerateGRPC extends GRPCGenerator {
2525
override val protoJavaPackage: String = "me.binwang.rss.grpc"
2626
override val protoPackage: String = "rss"
27+
override val header: Option[String] = Some("""option go_package = "binwang.me/rss/grpc";""")
2728

2829
override val customTypeMap: Map[String, Type] = Map(
2930
typeOf[ZonedDateTime].toString -> typeOf[Long],

src/main/scala/me/binwang/rss/parser/RSSParser.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ object RSSParser {
2424
}
2525

2626
val htmlUrl = (channel \ "link").text
27-
val iconUrl = ArticleParserHelper.getIcon(htmlUrl)
27+
val iconUrl = (channel \\ "icon")
28+
.find(_.prefix == "webfeeds")
29+
.map(_.text)
30+
.find(x => x != null && x.nonEmpty)
31+
.orElse(Some((channel \ "image" \ "url").text))
32+
.find(x => x != null && x.nonEmpty)
33+
.orElse(ArticleParserHelper.getIcon(htmlUrl))
2834

2935
val source = Source(
3036
id = id,

src/test/resources/test-feed-mastodon-jepsen.xml

Lines changed: 138 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)