Skip to content

MingaudasVagonis/vue-attractions-front

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atrractions' frontend in vue

Simple page used to help populate the database with attractions in Lithuania written in Vue. Used with attractions' server.

Example

Fully responsive

Components

MLField ml_field.vue

A wrapper around html's input

Props

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.

Data

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

Props

Name Type Required Description
values Array Yes Array of values to select from.

Data

Name Type Description
selected Number Currently selected item.

HourPicker hour_picker.vue

N stages toggle

Props

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

Data

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.

Packages and usage

Following packages are used ( excluding Vue )

Launch:

  git clone https://github.com/MingaudasVagonis/vue-attractions-front.git
  cd vue-attractions-front
  yarn install && yarn serve

Build:

  yarn build

About

Webpage used to help populate the database with attractions in Lithuania written in Vue.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published