Simple page used to help populate the database with attractions in Lithuania written in Vue. Used with attractions' server.
Fully responsive
MLField ml_field.vue
A wrapper around html's input
Name | Type | Required | Description |
---|---|---|---|
size | String | No | Size of the field. Either "small" or "medium". |
type | String | No | Either "number" or "text". |
placeholder | String | Yes | Input placeholder. |
validate | Function | Yes | Function that is called on input blur to determine whether its valid. |
Name | Type | Description |
---|---|---|
focused | Bool | Whether the input is focused. |
border | String | Border color. |
value | String | Input's v-model. |
validated | Number | State of content's validation. 0 - empty, 1 - invalid, 2 - valid. |
RowSelector row_selector.vue
N stages toggle
Name | Type | Required | Description |
---|---|---|---|
values | Array | Yes | Array of values to select from. |
Name | Type | Description |
---|---|---|
selected | Number | Currently selected item. |
HourPicker hour_picker.vue
N stages toggle
Name | Type | Required | Description |
---|---|---|---|
model | Array | Yes | Array of 2 strings used as v-models to two time pickers . |
ImageField image_field.vue
Component used to display an image from the url provided
Name | Type | Description |
---|---|---|
url | String | Url of the image. |
copyright | String | Copyright information. |
copyright_exists | Bool | Whether the image is copyrighted at all. |
validateURL | Function | Validation function passed to the url field. |
validateCopyright | Function | Validation function passed to the copyright field. |
git clone https://github.com/MingaudasVagonis/vue-attractions-front.git
cd vue-attractions-front
yarn install && yarn serve
yarn build