-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from mapbox/feature_descriptor
Fantastic Features
- Loading branch information
Showing
13 changed files
with
692 additions
and
433 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
web/dist/assembly.e8ba7458.css → web/dist/assembly.a18c4902.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!DOCTYPE html><html class="h-full" lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Hecate UI | Mapbox</title><link rel="shortcut icon" type="image/png" href="/admin/favicon.692d1453.ico"><link href="/admin/assembly.e8ba7458.css" rel="stylesheet"><script async defer src="/admin/assembly.4e53fc76.js"></script><script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script><link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.css" rel="stylesheet"><link rel="stylesheet" href="/admin/mapbox-gl-geocoder.45e809d1.css" type="text/css"><script src="/admin/main.c69d0ed1.js"></script></head><body class="h-full"> <div id="app" class="h-full relative"> </div> </body></html> | ||
<!DOCTYPE html><html class="h-full" lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Hecate UI | Mapbox</title><link rel="shortcut icon" type="image/png" href="/admin/favicon.692d1453.ico"><link href="/admin/assembly.a18c4902.css" rel="stylesheet"><script async defer src="/admin/assembly.4e53fc76.js"></script><script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script><link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.css" rel="stylesheet"><link rel="stylesheet" href="/admin/mapbox-gl-geocoder.45e809d1.css" type="text/css"><script src="/admin/main.a8db3c0a.js"></script></head><body class="h-full"> <div id="app" class="h-full relative"> </div> </body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<div class='absolute top left bottom right z5' style="pointer-events: none;"> | ||
<div class='flex-parent flex-parent--center-main flex-parent--center-cross h-full' style="pointer-events: auto;"> | ||
<div class="flex-child px12 py12 w600 h80 bg-white round-ml shadow-darken10"> | ||
<div class='grid w-full col'> | ||
<div class='col--12'> | ||
<h3 v-if='!title' class='w-full py6 txt-m txt-bold align-center'>Uh Oh!</h3> | ||
<h3 v-else class='w-full py6 txt-m txt-bold align-center' v-text='title'></h3> | ||
</div> | ||
|
||
<div class='col--12 py12' v-text='body'></div> | ||
|
||
<div class='col--12 py12'> | ||
<div class='grid grid--gut12'> | ||
<div class='col col--6'></div> | ||
<div class='col col--6'> | ||
<button class='btn round w-full' @click="close">Ok</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'err', | ||
render: h => h(App), | ||
methods: { | ||
close: function() { | ||
this.$emit('close'); | ||
} | ||
}, | ||
props: ['title', 'body'] | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<div> | ||
<div class="w-full txt-s" style="text-align: center;">Version: <span v-text="feature.version"></span></div> | ||
<table class='table txt-xs'> | ||
<thead><tr><th>Key</th><th>Value</th></tr></thead> | ||
<tbody> | ||
<tr v-for="prop in Object.keys(feature.properties)"> | ||
<template v-if='schema && schema.properties && schema.properties[prop] && schema.properties[prop].description'> | ||
<td @click="popup(schema.properties[prop].description)" class="cursor-pointer txt-underline-on-hover" v-text="prop"> | ||
</template> | ||
<template v-else> | ||
<td v-text="prop"> | ||
</template> | ||
|
||
<!-- element: (Array) --> | ||
<td v-if="Array.isArray(feature.properties[prop])"> | ||
<template v-for="element in feature.properties[prop]" style="border-bottom: dotted;"> | ||
<!-- element: Array: (Object) --> | ||
<template v-if="typeof element === 'object' && !Array.isArray(element)"> | ||
<tr v-for="key in Object.keys(element)"> | ||
<td v-text="key"></td> | ||
<td v-text="element[key]"></td> | ||
</tr> | ||
</template> | ||
<!-- element: Array: (String) --> | ||
<template v-else> | ||
<td v-text="element"></td> | ||
</template> | ||
<!-- element: Array: (Array, Number) --> | ||
<template v-else> | ||
<td v-text="JSON.stringify(element)"></td> | ||
</template> | ||
|
||
<div style="border-bottom: solid #CBCBCB 1px;"></div> | ||
</template> | ||
</td> | ||
<!-- element: (String) --> | ||
<td v-else-if="typeof feature.properties[prop] === 'string'" v-text="feature.properties[prop]"></td> | ||
<!-- element: (Object, Number) --> | ||
<td v-else v-text="JSON.stringify(feature.properties[prop])"></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'key', | ||
render: h => h(App), | ||
methods: { | ||
popup: function(description) { | ||
this.$emit('error', description); | ||
} | ||
}, | ||
props: ['feature', 'schema'] | ||
} | ||
</script> |
Oops, something went wrong.