Skip to content

Commit

Permalink
add PWA manifest, update backend deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan committed Jan 15, 2024
1 parent 98c48bc commit 541d145
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public RouterFunctionMapping indexRoute(@Value("static/index.html") final ClassP
.method(HttpMethod.GET)
.and(path("/robots.txt").negate())
.and(path("/favicon.png").negate())
.and(path("/manifest.json").negate())
.and(path("/assets/**").negate())
.and(path("/api/**").negate()),
request -> ok().contentType(MediaType.TEXT_HTML).bodyValue(indexHtml));
Expand Down
1 change: 1 addition & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<meta name="robots" content="noindex, nofollow"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="color-scheme" content="dark light">
<link rel="manifest" href="manifest.json" />
<link rel="icon shortcut" type="image/png" href="/favicon.png"/>
</head>
<body id="root">
Expand Down
15 changes: 15 additions & 0 deletions frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "BinPastes",
"short_name": "BinPastes",
"start_url": ".",
"display": "standalone",
"background_color": "#fff2d999",
"description": "A simple pastebin",
"icons": [
{
"src": "favicon.png",
"sizes": "96x96",
"type": "image/png"
}
]
}
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.6</version>
<version>3.1.7</version>
<relativePath/><!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -43,11 +43,11 @@
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>

<!-- 3rd-party library versions -->
<spring-boot-bom.version>3.1.6</spring-boot-bom.version>
<spring-boot-bom.version>3.1.7</spring-boot-bom.version>
<junixsocket.version>2.8.3</junixsocket.version>
<flyway.version>9.22.3</flyway.version>
<artemis.version>2.31.2</artemis.version>
<r2dbc-mysql.version>1.0.5</r2dbc-mysql.version>
<r2dbc-mysql.version>1.0.6</r2dbc-mysql.version>
<r2dbc-mariadb.version>1.1.4</r2dbc-mariadb.version>
</properties>

Expand Down

0 comments on commit 541d145

Please sign in to comment.