|
| 1 | +import { RawPresets } from './types/Presets'; |
| 2 | + |
| 3 | +export const ourFields = { |
| 4 | + 'climbing/summit_log': { |
| 5 | + key: 'climbing:summit_log', |
| 6 | + type: 'check', |
| 7 | + }, |
| 8 | + 'climbing/routes': { |
| 9 | + key: 'climbing:routes', |
| 10 | + type: 'number', |
| 11 | + minValue: 0, |
| 12 | + }, |
| 13 | + 'climbing/rock': { |
| 14 | + key: 'climbing:rock', |
| 15 | + type: 'combo', |
| 16 | + options: ['limestone', 'sandstone', 'granite', 'basalt'], |
| 17 | + }, |
| 18 | + 'climbing/quality': { |
| 19 | + key: 'climbing:quality', |
| 20 | + type: 'combo', |
| 21 | + options: ['fragile', 'medium', 'solid'], |
| 22 | + }, |
| 23 | + 'climbing/orientation': { |
| 24 | + key: 'climbing:orientation', |
| 25 | + type: 'combo', |
| 26 | + options: ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'], |
| 27 | + }, |
| 28 | + 'climbing/length': { |
| 29 | + key: 'climbing:length', |
| 30 | + type: 'number', |
| 31 | + minValue: 0, |
| 32 | + }, |
| 33 | + 'climbing/bolts': { |
| 34 | + key: 'climbing:bolts', |
| 35 | + type: 'number', |
| 36 | + minValue: 0, |
| 37 | + }, |
| 38 | + 'climbing/bolted': { |
| 39 | + key: 'climbing:bolted', |
| 40 | + type: 'check', |
| 41 | + }, |
| 42 | + 'climbing/bolt': { |
| 43 | + key: 'climbing:bolt', |
| 44 | + type: 'combo', |
| 45 | + options: ['expansion', 'glue-in', 'ring'], |
| 46 | + }, |
| 47 | + 'climbing/grade/uiaa': { |
| 48 | + key: 'climbing:grade:uiaa', |
| 49 | + type: 'text', |
| 50 | + }, |
| 51 | + 'climbing/grade/saxon': { |
| 52 | + key: 'climbing:grade:saxon', |
| 53 | + type: 'text', |
| 54 | + }, |
| 55 | + 'climbing/grade/french': { |
| 56 | + key: 'climbing:grade:french', |
| 57 | + type: 'text', |
| 58 | + }, |
| 59 | +}; |
| 60 | + |
| 61 | +export const ourPresets = { |
| 62 | + 'climbing/route_bottom': { |
| 63 | + icon: 'temaki-abseiling', |
| 64 | + geometry: ['point'], |
| 65 | + fields: ['{climbing/route}'], |
| 66 | + moreFields: ['{climbing/route}'], |
| 67 | + tags: { |
| 68 | + climbing: 'route_bottom', |
| 69 | + }, |
| 70 | + addTags: { |
| 71 | + sport: 'climbing', |
| 72 | + climbing: 'route_bottom', |
| 73 | + }, |
| 74 | + }, |
| 75 | + 'climbing/route': { |
| 76 | + icon: 'temaki-abseiling', |
| 77 | + geometry: ['point', 'line'], |
| 78 | + fields: [ |
| 79 | + 'name', |
| 80 | + 'climbing/length', |
| 81 | + 'climbing/grade/uiaa', |
| 82 | + 'climbing/grade/french', |
| 83 | + 'climbing/grade/saxon', |
| 84 | + ], |
| 85 | + moreFields: [ |
| 86 | + 'climbing/bolts', |
| 87 | + 'climbing/bolted', |
| 88 | + 'climbing/bolt', |
| 89 | + 'climbing/orientation', |
| 90 | + 'climbing/quality', |
| 91 | + 'climbing/rock', |
| 92 | + 'climbing/summit_log', |
| 93 | + 'website', |
| 94 | + 'ele', |
| 95 | + ], |
| 96 | + tags: { |
| 97 | + climbing: 'route', |
| 98 | + }, |
| 99 | + addTags: { |
| 100 | + sport: 'climbing', |
| 101 | + climbing: 'route', |
| 102 | + }, |
| 103 | + }, |
| 104 | + 'climbing/crag': { |
| 105 | + icon: 'temaki-abseiling', |
| 106 | + geometry: ['point', 'relation'], |
| 107 | + fields: ['name'], |
| 108 | + moreFields: [ |
| 109 | + 'climbing/length', |
| 110 | + 'climbing/routes', |
| 111 | + 'climbing/bolted', |
| 112 | + 'climbing/bolt', |
| 113 | + 'climbing/orientation', |
| 114 | + 'climbing/quality', |
| 115 | + 'climbing/rock', |
| 116 | + 'website', |
| 117 | + 'ele', |
| 118 | + ], |
| 119 | + tags: { |
| 120 | + climbing: 'crag', |
| 121 | + }, |
| 122 | + addTags: { |
| 123 | + sport: 'climbing', |
| 124 | + climbing: 'crag', |
| 125 | + }, |
| 126 | + }, |
| 127 | +} as RawPresets; |
| 128 | + |
| 129 | +export const getOurTranslations = (lang) => ({ |
| 130 | + [lang]: { |
| 131 | + presets: { |
| 132 | + presets: { |
| 133 | + 'climbing/route_bottom': { |
| 134 | + name: 'Climbing route (start)', |
| 135 | + terms: 'rock climbing,climbing', |
| 136 | + }, |
| 137 | + 'climbing/route': { |
| 138 | + name: 'Climbing route', |
| 139 | + terms: 'rock climbing,climbing', |
| 140 | + }, |
| 141 | + 'climbing/crag': { |
| 142 | + name: 'Climbing crag', |
| 143 | + terms: 'rock climbing,climbing', |
| 144 | + }, |
| 145 | + }, |
| 146 | + fields: { |
| 147 | + 'climbing/summit_log': { |
| 148 | + label: 'Summit log', |
| 149 | + }, |
| 150 | + 'climbing/routes': { |
| 151 | + label: 'Number of routes', |
| 152 | + }, |
| 153 | + 'climbing/rock': { |
| 154 | + label: 'Rock type', |
| 155 | + }, |
| 156 | + 'climbing/quality': { |
| 157 | + label: 'Rock quality', |
| 158 | + }, |
| 159 | + 'climbing/orientation': { |
| 160 | + label: 'Orientation', |
| 161 | + options: { |
| 162 | + N: 'North', |
| 163 | + NE: 'North-East', |
| 164 | + E: 'East', |
| 165 | + SE: 'South-East', |
| 166 | + S: 'South', |
| 167 | + SW: 'South-West', |
| 168 | + W: 'West', |
| 169 | + NW: 'North-West', |
| 170 | + }, |
| 171 | + }, |
| 172 | + 'climbing/length': { |
| 173 | + label: 'Length (m)', |
| 174 | + }, |
| 175 | + 'climbing/bolts': { |
| 176 | + label: 'Number of bolts', |
| 177 | + }, |
| 178 | + 'climbing/bolted': { |
| 179 | + label: 'Bolted', |
| 180 | + }, |
| 181 | + 'climbing/bolt': { |
| 182 | + label: 'Bolt type', |
| 183 | + options: { |
| 184 | + expansion: 'expansion bolt', |
| 185 | + 'glue-in': 'glue-in bolt', |
| 186 | + ring: 'ring bolt', |
| 187 | + }, |
| 188 | + }, |
| 189 | + 'climbing/grade/uiaa': { |
| 190 | + label: 'Grade (UIAA)', |
| 191 | + placeholder: '6-', |
| 192 | + }, |
| 193 | + 'climbing/grade/saxon': { |
| 194 | + label: 'Grade (saxon)', |
| 195 | + placeholder: 'VIIa', |
| 196 | + }, |
| 197 | + 'climbing/grade/french': { |
| 198 | + label: 'Grade (french)', |
| 199 | + placeholder: '5c', |
| 200 | + }, |
| 201 | + }, |
| 202 | + }, |
| 203 | + }, |
| 204 | +}); |
0 commit comments