1.0.19 • Published 2 months ago
nocloud-ui v1.0.19
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.
1.0.19
2 months ago
1.0.18
4 months ago
1.0.17
4 months ago
1.0.16
4 months ago
1.0.15
4 months ago
1.0.9
7 months ago
1.0.8
7 months ago
1.0.14
6 months ago
1.0.13
7 months ago
1.0.12
7 months ago
1.0.7
10 months ago
1.0.6
10 months ago
1.0.5
11 months ago
1.0.4
12 months ago
1.0.3
12 months ago
1.0.2
12 months ago
1.0.1
12 months ago
1.0.0
12 months ago