File tree Expand file tree Collapse file tree
app/(sanity)/studio/[[...index]] Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
63on :
74 push :
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments