nocloud-ui
NoCloud UI
UI library based on VUE for NoCloud or other projects.
Instalation
yarn install nocloud-ui
// or
npm install nocloud-ui
- components
- map
map
A map component for displaying locations and/or setting them up.

<nc-map v-model="selectedLocation" :markers="locations" />
import { NcMap } from "nocloud-ui";
export default {
name: 'app',
components: { NcMap },
data: () => ({ selectedLocation: "", locations: [] })
}
Location is an object with fields:
const location = {
title: "[display name of the location next to the marker]", // string
id: "[two-letter country code, with some exceptions*]", // string
x: "[marker display coordinate on the map along the x-axis]", // number
y: "[marker display coordinate on the map along the y-axis]", // number
extra: "[additional location information**]" // object
};
// *for example, for OVH, the datacenter will be indicated with a hyphen - "PL-WAW" (PL - country code, WAW - datacenter)
// **for example, for OVH, there will be field "region" with a datacenter inside - { extra: { region: "WAW" } }
Country codes are in the map.json file at the root of the repository.
Related Packages
@vasiliyrusin/vue-mapfields
Small shortcut for **vuex** function which could be used same as `mapState` or `...
765
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.19 | ^2.7.0 | Apache-2.0 | |
| 1.0.18 | ^2.7.0 | Apache-2.0 | |
| 1.0.17 | ^2.7.0 | Apache-2.0 | |
| 1.0.16 | ^2.7.0 | Apache-2.0 | |
| 1.0.15 | ^2.7.0 | Apache-2.0 | |
| 1.0.14 | ^2.7.0 | Apache-2.0 | |
| 1.0.13 | ^2.7.0 | Apache-2.0 | |
| 1.0.12 | ^2.7.0 | Apache-2.0 | |
| 1.0.9 | ^2.7.0 | Apache-2.0 | |
| 1.0.8 | ^2.7.0 | Apache-2.0 | |
| 1.0.7 | ^2.7.0 | Apache-2.0 | |
| 1.0.6 | ^2.7.0 | Apache-2.0 | |
| 1.0.5 | ^2.7.0 | Apache-2.0 | |
| 1.0.4 | ^2.7.0 | Apache-2.0 | |
| 1.0.3 | ^2.7.0 | Apache-2.0 | |
| 1.0.2 | ^2.7.0 | Apache-2.0 | |
| 1.0.1 | ^2.7.0 | Apache-2.0 | |
| 1.0.0 | ^2.7.0 | Apache-2.0 |