Skip to content

Commit a9def03

Browse files
Merge branch 'main' into 105-ics-subscribe
2 parents 544dd7d + 0ecc75c commit a9def03

5 files changed

Lines changed: 8650 additions & 7828 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# This workflow will build a .NET project
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3-
4-
name: Frontend Build and Push to DockerHub
1+
name: Deploy
52

63
on:
74
push:
@@ -35,19 +32,3 @@ jobs:
3532
tags: fribyte/root-website:latest
3633
build-args: |
3734
APP_BUILD_DATE=${{ github.event.repository.updated_at}}
38-
deploy_to_remote_server:
39-
name: SSH to server and pull new image
40-
needs: push_to_registry
41-
runs-on: ubuntu-latest
42-
43-
steps:
44-
- name: Deploy to Remote Server
45-
uses: appleboy/ssh-action@master
46-
with:
47-
host: ${{ secrets.HOST }}
48-
username: ${{ secrets.USERNAME }}
49-
key: ${{ secrets.KEY }}
50-
script: |
51-
cd root-web
52-
docker compose pull rootlinjeforening.no
53-
docker compose up -d
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"use client"
2+
3+
import { type ToolMenuProps } from "sanity"
4+
import { defaultIconSize } from "@/components/icons/icon"
5+
import { ArrowTopRightOnSquareIcon } from "@heroicons/react/24/outline"
6+
7+
/**
8+
* En custom toolmenu for sanity studio. Som legger til en lenke tilbake root-nettsiden.
9+
* @param props Props som sendes fra sanity studio.
10+
*/
11+
const SanityToolMenu: Component<ToolMenuProps> = props => (
12+
<div style={{ display: "flex", alignItems: "center" }}>
13+
<a
14+
href={process.env.NEXT_PUBLIC_BASE_URL}
15+
rel={"noopener"}
16+
target={"_blank"}
17+
style={{
18+
display: "flex",
19+
alignItems: "center",
20+
gap: "5px",
21+
color: "white",
22+
textDecoration: "none",
23+
fontSize: "small",
24+
}}
25+
title={"Tilbake til Root"}>
26+
<ArrowTopRightOnSquareIcon width={defaultIconSize} />
27+
<p>Root</p>
28+
</a>
29+
<div style={{ width: "100%" }}>{props.renderDefault(props)}</div>
30+
</div>
31+
)
32+
33+
export default SanityToolMenu

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"scripts": {
66
"preinstall": "npx only-allow pnpm",
7+
"postinstall": "next telemetry disable",
78
"dev": "next dev",
89
"build": "next build",
910
"start": "next start",

0 commit comments

Comments
 (0)