forked from MapComplete/MapComplete
		
	Merge branch 'develop' into layer_scouting_groups
This commit is contained in:
		
						commit
						cab1d2a7b8
					
				
					 3 changed files with 30 additions and 4 deletions
				
			
		| 
						 | 
					@ -62,5 +62,17 @@ jobs:
 | 
				
			||||||
      - name: unzipping remote file
 | 
					      - name: unzipping remote file
 | 
				
			||||||
        run: ssh hetzner "cd /root/staging && rm -rf ${{ github.ref_name }} && unzip ${{ github.ref_name }}.zip && rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/ && rm ${{ github.ref_name }}.zip"
 | 
					        run: ssh hetzner "cd /root/staging && rm -rf ${{ github.ref_name }} && unzip ${{ github.ref_name }}.zip && rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/ && rm ${{ github.ref_name }}.zip"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Extract PR number
 | 
				
			||||||
 | 
					        run: echo "PR_NUMBER=$(echo $FORGEJO_REF_NAME | cut -d'/' -f3)" >> $FORGEJO_ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: add comment to PR
 | 
				
			||||||
 | 
					        if: env.PR_NUMBER != ''
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          curl -X POST "https://source.mapcomplete.org/api/v1/repos/${FORGEJO_REPOSITORY}/issues/${PR_NUMBER}/comments" \
 | 
				
			||||||
 | 
					          -H "Content-Type: application/json" \
 | 
				
			||||||
 | 
					          -H "Authorization: token $FORGEJO_TOKEN" \
 | 
				
			||||||
 | 
					          -d '{"body": "This PR has been deployed and is (temporarily) available on https://builds.mapcomplete.org/${PR_NUMBER}"}'
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
 | 
				
			||||||
          
 | 
					          
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,7 +18,13 @@
 | 
				
			||||||
        "defaults",
 | 
					        "defaults",
 | 
				
			||||||
        "in_favourite"
 | 
					        "in_favourite"
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
      "render": "<a href='https://wikipedia.org/wiki/{wikipedia}' target='_blank' rel='noopener'><img src='./assets/svg/wikipedia.svg' textmode='📖' alt='Wikipedia'/></a>",
 | 
					      "render": {
 | 
				
			||||||
 | 
					        "special": {
 | 
				
			||||||
 | 
					          "type": "link",
 | 
				
			||||||
 | 
					          "href": "https://wikipedia.org/wiki/{wikipedia}",
 | 
				
			||||||
 | 
					          "text": "<img src='./assets/svg/wikipedia.svg' textmode='📖' alt='Wikipedia'/>"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      "condition": {
 | 
					      "condition": {
 | 
				
			||||||
        "or": [
 | 
					        "or": [
 | 
				
			||||||
          "wikipedia~*",
 | 
					          "wikipedia~*",
 | 
				
			||||||
| 
						 | 
					@ -29,7 +35,14 @@
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "#": "ignore-image-in-then",
 | 
					          "#": "ignore-image-in-then",
 | 
				
			||||||
          "if": "wikipedia=",
 | 
					          "if": "wikipedia=",
 | 
				
			||||||
          "then": "<a class='h-8' href='https://www.wikidata.org/wiki/{wikidata}' target='_blank' rel='noopener'><img src='./assets/svg/wikidata.svg' alt='Wikidata'/></a>"
 | 
					          "then": {
 | 
				
			||||||
 | 
					            "special": {
 | 
				
			||||||
 | 
					              "type": "link",
 | 
				
			||||||
 | 
					              "class": "h-8",
 | 
				
			||||||
 | 
					              "href": "https://www.wikidata.org/wiki/{wikidata}",
 | 
				
			||||||
 | 
					              "text": "<img src='./assets/svg/wikidata.svg' alt='Wikidata'/></a>"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -78,7 +78,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const isLoading = state.dataIsLoading
 | 
					  const isLoading = state.dataIsLoading
 | 
				
			||||||
  let preciseCoordinate: UIEventSource<{ lon: number; lat: number }> = new UIEventSource(undefined)
 | 
					  let preciseCoordinate: UIEventSource<{ lon: number; lat: number }> = new UIEventSource(undefined)
 | 
				
			||||||
  let snappedToObject: UIEventSource<WayId> = new UIEventSource<string>(undefined)
 | 
					  let snappedToObject: UIEventSource<WayId> = new UIEventSource<WayId>(undefined)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Small helper variable: if the map is tapped, we should let the 'Next'-button grab some attention as users have to click _that_ to continue, not the map
 | 
					  // Small helper variable: if the map is tapped, we should let the 'Next'-button grab some attention as users have to click _that_ to continue, not the map
 | 
				
			||||||
  let preciseInputIsTapped = false
 | 
					  let preciseInputIsTapped = false
 | 
				
			||||||
| 
						 | 
					@ -172,11 +172,13 @@
 | 
				
			||||||
        <Tr t={Translations.t.general.add.zoomInFurther} />
 | 
					        <Tr t={Translations.t.general.add.zoomInFurther} />
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    {:else if $isLoading}
 | 
					    {:else if $isLoading}
 | 
				
			||||||
 | 
					      <div class="w-full h-full p-2 flex items-center justify-center">
 | 
				
			||||||
      <div class="alert">
 | 
					      <div class="alert">
 | 
				
			||||||
        <Loading>
 | 
					        <Loading>
 | 
				
			||||||
          <Tr t={Translations.t.general.add.stillLoading} />
 | 
					          <Tr t={Translations.t.general.add.stillLoading} />
 | 
				
			||||||
        </Loading>
 | 
					        </Loading>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
    {:else if selectedPreset === undefined}
 | 
					    {:else if selectedPreset === undefined}
 | 
				
			||||||
      <!-- First, select the correct preset -->
 | 
					      <!-- First, select the correct preset -->
 | 
				
			||||||
      <PresetList
 | 
					      <PresetList
 | 
				
			||||||
| 
						 | 
					@ -285,7 +287,6 @@
 | 
				
			||||||
        {/if}
 | 
					        {/if}
 | 
				
			||||||
        <TagHint
 | 
					        <TagHint
 | 
				
			||||||
          embedIn={(tags) => t.presetInfo.Subs({ tags })}
 | 
					          embedIn={(tags) => t.presetInfo.Subs({ tags })}
 | 
				
			||||||
          {state}
 | 
					 | 
				
			||||||
          tags={new And(selectedPreset.preset.tags)}
 | 
					          tags={new And(selectedPreset.preset.tags)}
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue