forked from MapComplete/MapComplete
Chore: housekeeping, linting
This commit is contained in:
parent
f942529755
commit
30d00eb06d
74 changed files with 998 additions and 623 deletions
|
@ -151,26 +151,36 @@ export class SettingsVisualisations {
|
|||
},
|
||||
{
|
||||
funcName: "qr_login",
|
||||
args: [{
|
||||
name: "text",
|
||||
doc: "Extra text on the side of the QR-code"
|
||||
}, {
|
||||
name: "textClass",
|
||||
doc: "CSS class of the the side text"
|
||||
}],
|
||||
args: [
|
||||
{
|
||||
name: "text",
|
||||
doc: "Extra text on the side of the QR-code",
|
||||
},
|
||||
{
|
||||
name: "textClass",
|
||||
doc: "CSS class of the the side text",
|
||||
},
|
||||
],
|
||||
docs: "A QR-code which shares the current URL and adds the login token. Anyone with this login token will have the same permissions as you currently have. Logging out from this session will also log them out",
|
||||
group: "settings",
|
||||
constr(state: SpecialVisualizationState, tags: UIEventSource<Record<string, string>>, argument: string[], feature: Feature, layer: LayerConfig): SvelteUIElement {
|
||||
constr(
|
||||
state: SpecialVisualizationState,
|
||||
tags: UIEventSource<Record<string, string>>,
|
||||
argument: string[],
|
||||
feature: Feature,
|
||||
layer: LayerConfig
|
||||
): SvelteUIElement {
|
||||
const shared_oauth_cookie = state.osmConnection.getToken()
|
||||
const sideText = argument[0]
|
||||
const sideTextClass = argument[1] ?? ""
|
||||
return new SvelteUIElement(QrCode, {
|
||||
state,
|
||||
tags,
|
||||
sideText, sideTextClass,
|
||||
extraUrlParams: { shared_oauth_cookie }
|
||||
sideText,
|
||||
sideTextClass,
|
||||
extraUrlParams: { shared_oauth_cookie },
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue