forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
2de8b54457
commit
007dc4eb9e
13 changed files with 194 additions and 48 deletions
|
@ -338,7 +338,7 @@ No default value set
|
|||
|
||||
Used to complete the login
|
||||
|
||||
This documentation is defined in the source code at [ThemeViewState.ts](/src/Models/ThemeViewState.ts#L177)
|
||||
This documentation is defined in the source code at [ThemeViewState.ts](/src/Models/ThemeViewState.ts#L183)
|
||||
|
||||
No default value set
|
||||
|
||||
|
@ -346,7 +346,7 @@ No default value set
|
|||
|
||||
The initial/current zoom level
|
||||
|
||||
This documentation is defined in the source code at [InitialMapPositioning.ts](/src/Logic/Actors/InitialMapPositioning.ts#L39)
|
||||
This documentation is defined in the source code at [InitialMapPositioning.ts](/src/Logic/Actors/InitialMapPositioning.ts#L43)
|
||||
|
||||
The default value is _1_
|
||||
|
||||
|
@ -354,7 +354,7 @@ The default value is _1_
|
|||
|
||||
The initial/current latitude
|
||||
|
||||
This documentation is defined in the source code at [InitialMapPositioning.ts](/src/Logic/Actors/InitialMapPositioning.ts#L39)
|
||||
This documentation is defined in the source code at [InitialMapPositioning.ts](/src/Logic/Actors/InitialMapPositioning.ts#L43)
|
||||
|
||||
The default value is _0_
|
||||
|
||||
|
@ -362,7 +362,7 @@ The default value is _0_
|
|||
|
||||
The initial/current longitude of the app
|
||||
|
||||
This documentation is defined in the source code at [InitialMapPositioning.ts](/src/Logic/Actors/InitialMapPositioning.ts#L39)
|
||||
This documentation is defined in the source code at [InitialMapPositioning.ts](/src/Logic/Actors/InitialMapPositioning.ts#L43)
|
||||
|
||||
The default value is _0_
|
||||
|
||||
|
|
|
@ -2036,6 +2036,9 @@
|
|||
},
|
||||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "{name}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Vogelkijkhut {name}"
|
||||
},
|
||||
|
@ -6340,6 +6343,11 @@
|
|||
}
|
||||
},
|
||||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "{name}"
|
||||
}
|
||||
},
|
||||
"render": "Natuurgebied"
|
||||
}
|
||||
},
|
||||
|
@ -6871,6 +6879,21 @@
|
|||
"render": "Picknicktafel"
|
||||
}
|
||||
},
|
||||
"play_forest": {
|
||||
"description": "Een speelbos is een vrij toegankelijke zone in een bos",
|
||||
"name": "Speelbossen",
|
||||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "{name}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Speelbos {name}"
|
||||
}
|
||||
},
|
||||
"render": "Speelbos"
|
||||
}
|
||||
},
|
||||
"playground": {
|
||||
"deletion": {
|
||||
"nonDeleteMappings": {
|
||||
|
@ -8428,6 +8451,9 @@
|
|||
},
|
||||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "{name}"
|
||||
},
|
||||
"1": {
|
||||
"then": "Voetpad"
|
||||
},
|
||||
|
@ -10580,13 +10606,25 @@
|
|||
}
|
||||
},
|
||||
"village_green": {
|
||||
"description": "Een laag die dorpsgroen toont (gemeenschapsgroen, maar niet echt een park)"
|
||||
"description": "Een laag die dorpsgroen toont (gemeenschapsgroen, maar niet echt een park)",
|
||||
"name": "Speelweide",
|
||||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "{name}"
|
||||
}
|
||||
},
|
||||
"render": "Speelweide"
|
||||
}
|
||||
},
|
||||
"visitor_information_centre": {
|
||||
"description": "Een bezoekerscentrum biedt informatie over een specifieke attractie of bezienswaardigheid waar het is gevestigd.",
|
||||
"name": "Bezoekerscentrum",
|
||||
"title": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "{name:nl}"
|
||||
},
|
||||
"1": {
|
||||
"then": "{name}"
|
||||
}
|
||||
|
@ -10816,4 +10854,4 @@
|
|||
"render": "windturbine"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -653,8 +653,37 @@
|
|||
"building type": {
|
||||
"question": "Wat voor soort gebouw is dit?"
|
||||
},
|
||||
"grb-fixme": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Geen fixme"
|
||||
}
|
||||
},
|
||||
"question": "Wat zegt de fixme?",
|
||||
"render": "De fixme is <b>{fixme}</b>"
|
||||
},
|
||||
"grb-housenumber": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Geen huisnummer"
|
||||
}
|
||||
},
|
||||
"question": "Wat is het huisnummer?",
|
||||
"render": "Het huisnummer is <b>{addr:housenumber}</b>"
|
||||
},
|
||||
"grb-min-level": {
|
||||
"question": "Hoeveel verdiepingen ontbreken?",
|
||||
"render": "Dit gebouw begint maar op de {building:min_level} verdieping"
|
||||
},
|
||||
"grb-reference": {
|
||||
"render": "Werd geïmporteerd vanuit GRB, het referentienummer is {source:geometry:ref}"
|
||||
},
|
||||
"grb-street": {
|
||||
"question": "Wat is de straat?",
|
||||
"render": "De straat is <b>{addr:street}</b>"
|
||||
},
|
||||
"grb-unit": {
|
||||
"render": "De wooneenheid-aanduiding is <b>{addr:unit}</b> "
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -671,8 +700,35 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"5": {
|
||||
"override": {
|
||||
"tagRenderings+": {
|
||||
"0": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Geen omliggend OSM-gebouw gevonden"
|
||||
}
|
||||
}
|
||||
},
|
||||
"3": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Geen omliggend OSM-gebouw gevonden. Een omliggend gebouw is nodig om dit punt als adres punt toe te voegen. <div class=subtle>Importeer eerst de gebouwen. Vernieuw dan de pagina om losse adressen toe te voegen</div>"
|
||||
}
|
||||
},
|
||||
"render": {
|
||||
"special": {
|
||||
"text": "Voeg dit adres als een nieuw adrespunt toe"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"shortDescription": "Grb import helper tool",
|
||||
"title": "GRB import helper"
|
||||
},
|
||||
"guideposts": {
|
||||
"description": "Wegwijzers (ook wel handwijzer genoemd) zijn vaak te vinden langs officiële wandel-, fiets-, ski- of paardrijroutes om de richtingen naar verschillende bestemmingen aan te geven. Vaak zijn ze vernoemd naar een regio of plaats en geven ze de hoogte aan.\n\nDe positie van een wegwijzer kan door een wandelaar/fietser/renner/skiër worden gebruikt als bevestiging van de huidige positie, vooral als ze een gedrukte kaart zonder GPS-ontvanger gebruiken. ",
|
||||
|
@ -1108,6 +1164,11 @@
|
|||
},
|
||||
"title": "Dierenartsen, hondenloopzones en andere huisdiervriendelijke plaatsen"
|
||||
},
|
||||
"play_forests": {
|
||||
"description": "Een speelbos is een zone in een bos die vrij toegankelijk is voor spelende kinderen. Deze wordt in bossen van het Agentschap Natuur en bos altijd aangeduid met het overeenkomstige bord.",
|
||||
"shortDescription": "Deze kaart toont speelbossen",
|
||||
"title": "Speelbossen"
|
||||
},
|
||||
"playgrounds": {
|
||||
"description": "Op deze kaart vind je speeltuinen en kan je zelf meer informatie en foto's toevoegen",
|
||||
"shortDescription": "Een kaart met speeltuinen",
|
||||
|
@ -1181,6 +1242,47 @@
|
|||
"description": "Alles om te skiën",
|
||||
"title": "Skipistes en kabelbanen"
|
||||
},
|
||||
"speelplekken": {
|
||||
"description": "<h3>Welkom bij de Groendoener!</h3>De Zuidrand dat is spelen, ravotten, chillen, wandelen,… in het groen. Meer dan <b>200 grote en kleine speelplekken</b> liggen er in parken, in bossen en op pleintjes te wachten om ontdekt te worden. De verschillende speelplekken werden getest én goedgekeurd door kinder- en jongerenreporters uit de Zuidrand. Met leuke challenges dagen de reporters jou uit om ook op ontdekking te gaan. Klik op een speelplek op de kaart, bekijk het filmpje en ga op verkenning!<br/><br/>Het project groendoener kadert binnen het strategisch project <a href='https://www.provincieantwerpen.be/aanbod/dlm/samenwerkingsverbanden/zuidrand/projecten/strategisch-project-beleefbare-open-ruimte.html' target='_blank'>Beleefbare Open Ruimte in de Antwerpse Zuidrand</a> en is een samenwerking tussen het departement Leefmilieu van provincie Antwerpen, Sportpret vzw, een OpenStreetMap-België Consultent en Createlli vzw. Het project kwam tot stand met steun van Departement Omgeving van de Vlaamse Overheid.<br/><img class='w-full md:w-1/2' src='./assets/themes/speelplekken/provincie_antwerpen.jpg'/><img class='w-full md:w-1/2' src='./assets/themes/speelplekken/Departement_Omgeving_Vlaanderen.png'/>",
|
||||
"layers": {
|
||||
"6": {
|
||||
"name": "Wandelroutes van provincie Antwerpen",
|
||||
"tagRenderings": {
|
||||
"walk-description": {
|
||||
"render": "<h3>Korte beschrijving:</h3>{description}"
|
||||
},
|
||||
"walk-length": {
|
||||
"render": "Deze wandeling is <b>{_length:km}km</b> lang"
|
||||
},
|
||||
"walk-operator": {
|
||||
"question": "Wie beheert deze wandeling en plaatst dus de signalisatiebordjes?"
|
||||
},
|
||||
"walk-operator-email": {
|
||||
"question": "Naar wie kan men emailen bij problemen rond signalisatie?",
|
||||
"render": "Bij problemen met signalisatie kan men emailen naar <a href='mailto:{operator:email}'>{operator:email}</a>"
|
||||
},
|
||||
"walk-type": {
|
||||
"mappings": {
|
||||
"0": {
|
||||
"then": "Dit is een internationale wandelroute"
|
||||
},
|
||||
"1": {
|
||||
"then": "Dit is een nationale wandelroute"
|
||||
},
|
||||
"2": {
|
||||
"then": "Dit is een regionale wandelroute"
|
||||
},
|
||||
"3": {
|
||||
"then": "Dit is een lokale wandelroute"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"shortDescription": "Speelplekken in de Antwerpse Zuidrand",
|
||||
"title": "Welkom bij de groendoener!"
|
||||
},
|
||||
"sport_pitches": {
|
||||
"description": "Een sportveld is een ingerichte plaats met infrastructuur om een sport te beoefenen",
|
||||
"shortDescription": "Deze kaart toont sportvelden",
|
||||
|
@ -1301,6 +1403,10 @@
|
|||
},
|
||||
"title": "Straatverlichting"
|
||||
},
|
||||
"street_lighting_assen": {
|
||||
"description": "Op deze kaart vind je alles over straatlantaarns + een dataset van Assen",
|
||||
"title": "Straatverlichting - Assen"
|
||||
},
|
||||
"surveillance": {
|
||||
"description": "Op deze open kaart kan je bewakingscamera's vinden.",
|
||||
"shortDescription": "Bewakingscameras en dergelijke",
|
||||
|
@ -1414,9 +1520,13 @@
|
|||
"description": "Kaart met afvalbakken en recyclingfaciliteiten.",
|
||||
"title": "Afval"
|
||||
},
|
||||
"waste_assen": {
|
||||
"description": "Kaart met afvalbakken en recyclingfaciliteiten + een dataset voor Assen.",
|
||||
"title": "Afval - Assen"
|
||||
},
|
||||
"waste_basket": {
|
||||
"description": "Op deze kaart vind je afvalbakken bij jou in de buurt. Als er een afvalbak ontbreekt op deze kaart, kun je deze zelf toevoegen",
|
||||
"shortDescription": "Een kaart met vuilnisbakken",
|
||||
"title": "Vuilnisbakken"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -193,18 +193,19 @@
|
|||
"openOsmchaLastWeek": "檢視最近 7 天的編輯",
|
||||
"openPanoramax": "在這邊開啟 Panoramax",
|
||||
"openThemeDocumentation": "開啟專題地圖 {name} 的文件",
|
||||
"panoramaxHelp": "<b>Panoramax</b> 是收集街景照片的線上服務,並且以自由授權釋出。貢獻者能夠使用這些照片來改進開放街圖",
|
||||
"panoramaxLicenseCCBYSA": "你的圖片會以 CC-BY-SA 釋出 - 每個人都能夠在提及你名字的情形下再利用你的圖片",
|
||||
"seeOnMapillary": "在 Mapillary 觀看這張影像",
|
||||
"themeBy": "由 {author} 維護主題",
|
||||
"title": "版權與署名",
|
||||
"translatedBy": "MapComplete 由 {contributors} 翻譯,而且還有 <a href=\"https://github.com/pietervdvn/MapComplete/graphs/contributors\" target=\"_blank\">{hiddenCount} 更多貢獻者</a>",
|
||||
"panoramaxHelp": "<b>Panoramax</b> 是收集街景照片的線上服務,並且以自由授權釋出。貢獻者能夠使用這些照片來改進開放街圖",
|
||||
"panoramaxLicenseCCBYSA": "你的圖片會以 CC-BY-SA 釋出 - 每個人都能夠在提及你名字的情形下再利用你的圖片"
|
||||
"translatedBy": "MapComplete 由 {contributors} 翻譯,而且還有 <a href=\"https://github.com/pietervdvn/MapComplete/graphs/contributors\" target=\"_blank\">{hiddenCount} 更多貢獻者</a>"
|
||||
},
|
||||
"back": "返回",
|
||||
"backToIndex": "回到所有主題地圖的總覽頁面",
|
||||
"backgroundMap": "選擇背景圖層",
|
||||
"backgroundSwitch": "切換背景",
|
||||
"cancel": "取消",
|
||||
"clearPendingChanges": "清除待處理的變動",
|
||||
"confirm": "確認",
|
||||
"customThemeIntro": "這些是先前使用者創造的主題。",
|
||||
"customThemeTitle": "客製化主題",
|
||||
|
@ -232,6 +233,7 @@
|
|||
"downloadGeojson": "下載可視資料為 GeoJSON",
|
||||
"downloadGpx": "下載為 GPX 檔案",
|
||||
"downloadGpxHelper": "GPX 檔案能被大部分導航裝置或 app 使用",
|
||||
"downloadImage": "下載圖片",
|
||||
"exporting": "匯出中…",
|
||||
"includeMetaData": "包括 metadata (上次編輯者、計算數值等)",
|
||||
"licenseInfo": "<h3>著作權聲明</h3>提供的資料採用 ODbL 授權釋出。可以用任何目標再利用資料,但是需<ul><li>標明 <b>© 開放街圖貢獻者</b></li><li>任何變動必須相同方式授權</li></ul> 請閱讀完整的 <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">著作權聲明</a>。",
|
||||
|
@ -241,8 +243,7 @@
|
|||
},
|
||||
"title": "下載",
|
||||
"toMuch": "有很多圖徵可以下載了",
|
||||
"uploadGpx": "上傳軌跡到開放街圖",
|
||||
"downloadImage": "下載圖片"
|
||||
"uploadGpx": "上傳軌跡到開放街圖"
|
||||
},
|
||||
"enableGeolocationForSafari": "你沒有看到要求地理位置權限的跳出視窗?",
|
||||
"enableGeolocationForSafariLink": "學習如何在設定當中啟用地理位置權限",
|
||||
|
@ -251,9 +252,9 @@
|
|||
"example": "例子",
|
||||
"examples": "例子",
|
||||
"filterPanel": {
|
||||
"allTypes": "所有類型",
|
||||
"disableAll": "關閉所有",
|
||||
"enableAll": "啟用所有",
|
||||
"allTypes": "所有類型"
|
||||
"enableAll": "啟用所有"
|
||||
},
|
||||
"geopermissionDenied": "使用地理位置要求已經被拒絕",
|
||||
"histogram": {
|
||||
|
@ -263,10 +264,10 @@
|
|||
"background": "改變背景",
|
||||
"filter": "篩選資料",
|
||||
"jumpToLocation": "到你目前的位置",
|
||||
"locationNotAvailable": "無法取得 GPS 位置,裝置有取得位置資訊還是在隧道內?",
|
||||
"menu": "選單",
|
||||
"zoomIn": "放大",
|
||||
"zoomOut": "縮小",
|
||||
"locationNotAvailable": "無法取得 GPS 位置,裝置有取得位置資訊還是在隧道內?"
|
||||
"zoomOut": "縮小"
|
||||
},
|
||||
"layerSelection": {
|
||||
"title": "選擇圖層",
|
||||
|
@ -372,24 +373,24 @@
|
|||
"save": "儲存",
|
||||
"screenToSmall": "在新視窗中開啟 <i>{theme}</i>",
|
||||
"search": {
|
||||
"error": "有狀況發生了。",
|
||||
"nothing": "沒有找到。",
|
||||
"recents": "最近看到的地方",
|
||||
"search": "搜尋地點",
|
||||
"searching": "搜尋中…",
|
||||
"activeFilters": "啟用篩選",
|
||||
"clearFilters": "清除篩選",
|
||||
"deleteSearchHistory": "刪除位置歷史",
|
||||
"deleteThemeHistory": "刪除先前觀看的主題",
|
||||
"editSearchSyncSettings": "編輯同步設定",
|
||||
"editThemeSync": "編輯同步設定",
|
||||
"error": "有狀況發生了。",
|
||||
"instructions": "使用搜尋欄位來搜尋位置、篩選或是其他主題地圖",
|
||||
"locations": "位置",
|
||||
"nMoreFilters": "{n} 更多",
|
||||
"nothing": "沒有找到。",
|
||||
"nothingFor": "尋找 {term} 沒有結果",
|
||||
"otherMaps": "其他地圖",
|
||||
"pickFilter": "選擇篩選",
|
||||
"recentThemes": "最近觀看的地圖",
|
||||
"activeFilters": "啟用篩選",
|
||||
"clearFilters": "清除篩選",
|
||||
"deleteSearchHistory": "刪除位置歷史",
|
||||
"deleteThemeHistory": "刪除先前觀看的主題"
|
||||
"recents": "最近看到的地方",
|
||||
"search": "搜尋地點",
|
||||
"searching": "搜尋中…"
|
||||
},
|
||||
"searchAnswer": "搜尋選項",
|
||||
"seeIndex": "查看所有專題地圖的概覽",
|
||||
|
@ -519,8 +520,7 @@
|
|||
"readMore": "閱讀剩下的條目內容",
|
||||
"searchToShort": "你的搜尋檢索太短了,請輸入長一點的文字",
|
||||
"searchWikidata": "在 Wikidata 搜尋"
|
||||
},
|
||||
"clearPendingChanges": "清除待處理的變動"
|
||||
}
|
||||
},
|
||||
"hotkeyDocumentation": {
|
||||
"action": "行動",
|
||||
|
@ -761,11 +761,11 @@
|
|||
},
|
||||
"unknown": {
|
||||
"clear": "清除答案",
|
||||
"explanation": "如果答案不正確但實際數值不清楚的話,則清除這一些資訊。不會清除其他資訊。",
|
||||
"keep": "保留答案",
|
||||
"markUnknown": "標示為未知",
|
||||
"removedKeys": "下列鍵會被移除:",
|
||||
"title": "要標記為未知嗎?",
|
||||
"explanation": "如果答案不正確但實際數值不清楚的話,則清除這一些資訊。不會清除其他資訊。"
|
||||
"title": "要標記為未知嗎?"
|
||||
},
|
||||
"userinfo": {
|
||||
"notLoggedIn": "你已經登出了"
|
||||
|
@ -827,6 +827,9 @@
|
|||
"description": "正數、整數",
|
||||
"noZero": "並不允許零"
|
||||
},
|
||||
"regex": {
|
||||
"description": "正規表示式"
|
||||
},
|
||||
"slope": {
|
||||
"inputExplanation": "將你手機放在地上,並且指向上坡方向。"
|
||||
},
|
||||
|
@ -838,18 +841,15 @@
|
|||
},
|
||||
"tooLong": "文字太長了,最多允許 255 字元,你現在還有 {count} 字元。",
|
||||
"url": {
|
||||
"aggregator": "{host} 是第三方網站,如果可能請搜尋官方網站。",
|
||||
"description": "連接到網站",
|
||||
"feedback": "這不是有效的網址",
|
||||
"aggregator": "{host} 是第三方網站,如果可能請搜尋官方網站。",
|
||||
"spamSite": "{host} 被視為低品質網站,並不被允許使用。"
|
||||
},
|
||||
"wikidata": {
|
||||
"description": "Wikidata 編號",
|
||||
"empty": "請輸入一些 Wikidata 項目",
|
||||
"startsWithQ": "維基數據編號以 Q 開頭後面接數字"
|
||||
},
|
||||
"regex": {
|
||||
"description": "正規表示式"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -341,7 +341,7 @@ class GenerateLayouts extends Script {
|
|||
"https://pietervdvn.goatcounter.com",
|
||||
"https://api.panoramax.xyz",
|
||||
"https://panoramax.mapcomplete.org",
|
||||
"https://data.velopark.be"
|
||||
"https://data.velopark.be",
|
||||
].concat(...(await this.eliUrls()))
|
||||
|
||||
SpecialVisualizations.specialVisualizations.forEach((sv) => {
|
||||
|
|
|
@ -13,7 +13,6 @@ import StaticFeatureSource, {
|
|||
} from "../FeatureSource/Sources/StaticFeatureSource"
|
||||
import { MapProperties } from "../../Models/MapProperties"
|
||||
import { Orientation } from "../../Sensors/Orientation"
|
||||
|
||||
;("use strict")
|
||||
/**
|
||||
* The geolocation-handler takes a map-location and a geolocation state.
|
||||
|
|
|
@ -8,7 +8,6 @@ import Constants from "../../Models/Constants"
|
|||
import { Utils } from "../../Utils"
|
||||
import { GeoLocationState } from "../State/GeoLocationState"
|
||||
import { OsmConnection } from "../Osm/OsmConnection"
|
||||
|
||||
;("use strict")
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { FeatureSource, WritableFeatureSource } from "../FeatureSource"
|
||||
import { ImmutableStore, Store, UIEventSource } from "../../UIEventSource"
|
||||
import { Feature } from "geojson"
|
||||
|
||||
;("use strict")
|
||||
/**
|
||||
* A simple, read only feature store.
|
||||
|
|
|
@ -15,7 +15,6 @@ import {
|
|||
import { Tiles } from "../Models/TileRange"
|
||||
import { Utils } from "../Utils"
|
||||
import { NearestPointOnLine } from "@turf/nearest-point-on-line"
|
||||
|
||||
;("use strict")
|
||||
|
||||
export class GeoOperations {
|
||||
|
|
|
@ -37,13 +37,16 @@
|
|||
if (!shown) {
|
||||
previewedImage?.set(undefined)
|
||||
}
|
||||
}),
|
||||
})
|
||||
)
|
||||
if (previewedImage) {
|
||||
onDestroy(
|
||||
previewedImage.addCallbackAndRun((previewedImage) => {
|
||||
showBigPreview.set(previewedImage !== undefined && (previewedImage?.id ?? previewedImage?.url) === (image.id ?? image.url))
|
||||
}),
|
||||
showBigPreview.set(
|
||||
previewedImage !== undefined &&
|
||||
(previewedImage?.id ?? previewedImage?.url) === (image.id ?? image.url)
|
||||
)
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -90,7 +93,6 @@
|
|||
</div>
|
||||
</Popup>
|
||||
|
||||
|
||||
{#if image.status !== undefined && image.status !== "ready" && image.status !== "hidden"}
|
||||
<div class="flex h-full flex-col justify-center">
|
||||
<Loading>
|
||||
|
@ -115,7 +117,7 @@
|
|||
class={imgClass ?? ""}
|
||||
class:cursor-zoom-in={canZoom}
|
||||
on:click={() => {
|
||||
console.log("Setting",image.url)
|
||||
console.log("Setting", image.url)
|
||||
previewedImage?.set(image)
|
||||
}}
|
||||
on:error={() => {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
import Translations from "../i18n/Translations"
|
||||
import DotMenu from "../Base/DotMenu.svelte"
|
||||
|
||||
export let image: Partial<ProvidedImage> & ({ id: string, url: string })
|
||||
export let image: Partial<ProvidedImage> & { id: string; url: string }
|
||||
export let clss: string = undefined
|
||||
|
||||
let isLoaded = new UIEventSource(false)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"contributors": [
|
||||
{
|
||||
"commits": 8779,
|
||||
"commits": 8786,
|
||||
"contributor": "Pieter Vander Vennet"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
"contributor": "gallegonovato"
|
||||
},
|
||||
{
|
||||
"commits": 47,
|
||||
"commits": 48,
|
||||
"contributor": "Supaplex"
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue