forked from MapComplete/MapComplete
Chore: Remove more GH references (#2374)
This commit is contained in:
parent
0f177025e0
commit
03526a8e16
63 changed files with 131 additions and 122 deletions
|
|
@ -230,7 +230,7 @@ export default class Constants {
|
|||
if (Utils.runningFromConsole) {
|
||||
return false
|
||||
}
|
||||
// The cause for this line of code: https://github.com/pietervdvn/MapComplete/issues/115
|
||||
// The cause for this line of code: https://source.mapcomplete.org/MapComplete/MapComplete/issues/115
|
||||
// See https://stackoverflow.com/questions/19689715/what-is-the-best-way-to-detect-retina-support-on-a-device-using-javascript
|
||||
return (
|
||||
(window.matchMedia &&
|
||||
|
|
|
|||
|
|
@ -1,6 +1,18 @@
|
|||
import { Concat, DesugaringContext, DesugaringStep, Each, FirstOf, Fuse, On, SetDefault } from "./Conversion"
|
||||
import {
|
||||
Concat,
|
||||
DesugaringContext,
|
||||
DesugaringStep,
|
||||
Each,
|
||||
FirstOf,
|
||||
Fuse,
|
||||
On,
|
||||
SetDefault,
|
||||
} from "./Conversion"
|
||||
import { LayerConfigJson } from "../Json/LayerConfigJson"
|
||||
import { MinimalTagRenderingConfigJson, TagRenderingConfigJson } from "../Json/TagRenderingConfigJson"
|
||||
import {
|
||||
MinimalTagRenderingConfigJson,
|
||||
TagRenderingConfigJson,
|
||||
} from "../Json/TagRenderingConfigJson"
|
||||
import { Utils } from "../../../Utils"
|
||||
import RewritableConfigJson from "../Json/RewritableConfigJson"
|
||||
import SpecialVisualizations from "../../../UI/SpecialVisualizations"
|
||||
|
|
@ -496,7 +508,7 @@ export class RewriteSpecial extends DesugaringStep<TagRenderingConfigJson> {
|
|||
(sp) => sp.funcName
|
||||
)
|
||||
context.err(
|
||||
`Special visualisation '${type}' not found. Did you perhaps mean ${options[0].funcName}, ${options[1].funcName} or ${options[2].funcName}?\n\tFor all known special visualisations, please see https://github.com/pietervdvn/MapComplete/blob/develop/Docs/SpecialRenderings.md`
|
||||
`Special visualisation '${type}' not found. Did you perhaps mean ${options[0].funcName}, ${options[1].funcName} or ${options[2].funcName}?\n\tFor all known special visualisations, please see https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/Docs/SpecialRenderings.md`
|
||||
)
|
||||
return undefined
|
||||
}
|
||||
|
|
@ -868,7 +880,7 @@ export class AddRatingBadge extends DesugaringStep<LayerConfigJson> {
|
|||
const funcs = new Set<string>(specialVis.map((rs) => rs.func.funcName))
|
||||
|
||||
if (funcs.has("list_reviews")) {
|
||||
(<(string | TagRenderingConfigJson)[]>json.titleIcons).push("icons.rating")
|
||||
;(<(string | TagRenderingConfigJson)[]>json.titleIcons).push("icons.rating")
|
||||
}
|
||||
return json
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class SubstituteLayer extends Conversion<string | LayerConfigJson, LayerConfigJs
|
|||
const ids = withDistance.map((n) => n[0])
|
||||
// Known builtin layers are "+.join(",")+"\n For more information, see "
|
||||
context.err(`The layer with name ${name} was not found as a builtin layer. Perhaps you meant ${ids[0]}, ${ids[1]} or ${ids[2]}?
|
||||
For an overview of all available layers, refer to https://github.com/pietervdvn/MapComplete/blob/develop/Docs/BuiltinLayers.md`)
|
||||
For an overview of all available layers, refer to https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/Docs/BuiltinLayers.md`)
|
||||
}
|
||||
|
||||
if (typeof json === "string") {
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ export interface LayerConfigJson {
|
|||
* "_some_key:=some_javascript_expression"
|
||||
* ]
|
||||
*
|
||||
* See the full documentation on [https://github.com/pietervdvn/MapComplete/blob/master/Docs/CalculatedTags.md]
|
||||
* See the full documentation on [https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/Docs/CalculatedTags.md]
|
||||
*
|
||||
* group: expert
|
||||
* question: What extra attributes should be calculated with javascript?
|
||||
|
|
@ -254,7 +254,7 @@ export interface LayerConfigJson {
|
|||
* Creates points to render on the map.
|
||||
* This can render points for point-objects, lineobjects or areaobjects; use 'location' to indicate where it should be rendered.
|
||||
*
|
||||
* Note that all attributes - including [the calculated tags](https://github.com/pietervdvn/MapComplete/blob/develop/Docs/CalculatedTags.md) can be used to create the markers and lines
|
||||
* Note that all attributes - including [the calculated tags](https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/Docs/CalculatedTags.md) can be used to create the markers and lines
|
||||
*
|
||||
* group: pointrendering
|
||||
*/
|
||||
|
|
@ -319,7 +319,7 @@ export interface LayerConfigJson {
|
|||
*
|
||||
* If no presets are defined, the button which invites to add a new preset will not be shown.
|
||||
*</div>
|
||||
* <video controls autoplay muted src='https://github.com/pietervdvn/MapComplete/raw/refs/heads/master/Docs/Screenshots/AddNewItemScreencast.webm' class='w-64'/>
|
||||
* <video controls autoplay muted src='https://source.mapcomplete.org/MapComplete/MapComplete/raw/branch/develop/Docs/Screenshots/AddNewItemScreencast.webm' class='w-64'/>
|
||||
*</div>
|
||||
*
|
||||
* group: presets
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* The main representation of Tags.
|
||||
* See https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation
|
||||
* See https://source.mapcomplete.org/MapComplete/MapComplete/src/branch/develop/Docs/Tags_format.md for more documentation
|
||||
*
|
||||
* type: tag
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue