Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update node packages #1

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1e98fb3
Update Node packages + apply eslint and prettier rules + update unit …
AndreKelling Jul 30, 2020
9835729
Node raise to version 12
AndreKelling Jul 30, 2020
b45abf2
e2e fix tests suite
AndreKelling Jul 30, 2020
ea67ef2
travis remove e2e
AndreKelling Jul 30, 2020
903c909
lintrules on nightwatch config
AndreKelling Jul 30, 2020
e06a241
init occupations
AndreKelling Jul 30, 2020
3852661
refactor for div and flexbox usage away from table
AndreKelling Aug 3, 2020
0126396
occupations as layers on rows
AndreKelling Aug 3, 2020
86fcef1
occupations display conditons in current visible calendar
AndreKelling Aug 4, 2020
7d5b2ad
occupations minor renaming
AndreKelling Aug 4, 2020
1679d8e
occupations add month picker
AndreKelling Aug 4, 2020
93a5f0c
occupations fix unit tests
AndreKelling Aug 4, 2020
9233082
occupations fix month select with current year
AndreKelling Aug 4, 2020
1af4aa4
occupations fix e2e test
AndreKelling Aug 4, 2020
72c8df9
occupations add sit folder for github page
AndreKelling Aug 4, 2020
79bd836
occupations separate Occupation Component of Row
AndreKelling Aug 4, 2020
d2b510f
.editorconfig init
AndreKelling Aug 4, 2020
6905279
dateWheel init
AndreKelling Aug 4, 2020
8157d75
dateWheel stop drag outside element
AndreKelling Aug 4, 2020
f41ee03
calendar remove today mark and set day date selector to first position
AndreKelling Aug 4, 2020
0f995e7
marks add option for day marks
AndreKelling Aug 4, 2020
6528a60
calendar sync css vars and make cellWidth adjustable
AndreKelling Aug 4, 2020
a5edc34
README update example data + minor fixes
AndreKelling Aug 4, 2020
da920a9
git remove dist dir
AndreKelling Aug 4, 2020
06f824c
github add docs build for github pages
AndreKelling Aug 4, 2020
123a18e
Merge pull request #1 from AndreKelling/feature/occupations
AndreKelling Aug 4, 2020
a2206d1
gh-pages fix pathing
AndreKelling Aug 4, 2020
711e003
NPM remove core-js + update eslint and babel-jest
AndreKelling Aug 4, 2020
8ccbac3
calendar display month name on first head cell
AndreKelling Aug 6, 2020
40996a2
tests fix unit tests for HeadCell
AndreKelling Aug 6, 2020
7a768c6
calendar separate Cell as a component
AndreKelling Aug 6, 2020
554195f
gh-apges update
AndreKelling Aug 6, 2020
7f65760
calendar separate Filters as a component + rename emit events without…
AndreKelling Aug 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.{js,ts,vue,json,gql,graphql}]
indent_style = tab
indent_size = 4
24 changes: 12 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = {
root: true,
env: {
node: true
},
extends: ["plugin:vue/essential", "@vue/prettier"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
parserOptions: {
parser: "babel-eslint"
}
root: true,
env: {
node: true
},
extends: ["plugin:vue/essential", "@vue/prettier"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
parserOptions: {
parser: "babel-eslint"
}
};
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
node_modules
/dist

# Coverage directory used by tools like istanbul
coverage

/tests/e2e/reports/
selenium-debug.log
chromedriver.log
geckodriver.log

# local env files
.env.local
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: node_js
node_js:
- 9
- '12'
cache:
directories:
- node_modules
script:
- npm run test:unit
after_script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
95 changes: 70 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vue-horizontal-calendar
[![Build Status](https://travis-ci.org/ewatch/vue-horizontal-calendar.svg?branch=master)](https://travis-ci.org/ewatch/vue-horizontal-calendar)
[![Coverage Status](https://coveralls.io/repos/github/ewatch/vue-horizontal-calendar/badge.svg?branch=master)](https://coveralls.io/github/ewatch/vue-horizontal-calendar?branch=master)
# vue-horizontal-calendar
[![Build Status](https://travis-ci.org/AndreKelling/vue-horizontal-calendar.svg?branch=master)](https://travis-ci.org/AndreKelling/vue-horizontal-calendar)
[![Coverage Status](https://coveralls.io/repos/github/AndreKelling/vue-horizontal-calendar/badge.svg?branch=master)](https://coveralls.io/github/AndreKelling/vue-horizontal-calendar?branch=master)

## Why did I start the project ?

Expand All @@ -15,36 +15,86 @@ The visualization might make mostly sense in administrational environments.
- visualize appartments and the days when they are free / booked
- visualize cars for renting

## How to use the comopnent ?
## How to use the component ?

Currently please clone the repository and run "npm run serve".
After that you can visit "http://localhost:8080/"

The VueJS framework must be globally available.

```
<table-calendar :render-days="26" :table-data="tableData" />
<calendar :render-days="26" :calendar-data="tableData" />
```

* render-days: the amount of days as cells the calendar should render
* table-data: an array full of data to render the rows for the calendar
* calendar-data: an array full of data to render the rows for the calendar

Example:
```
tableData: [
{
'id': 1,
'name': 'Something Beautiful',
'start-date': new Date(),
'end-date': new Date()
},
{
'id': 2,
'name':
'Something else',
'start-date': new Date(),
'end-date': new Date()
}
data: [
{
id: 1,
name: "Something Beautiful",
occupations: [
{
id: 1,
name: "Conference",
startDate: todayDate,
endDate: todayDate + days(2)
},
{
id: 2,
name: "Holliday",
startDate: todayDate + days(2),
endDate: todayDate + days(6),
background: "orange"
}
],
marks: [
{
id: 1,
name: "Arrival",
date: todayDate + days(8)
},
{
id: 2,
name: "Arrival",
date: todayDate + days(10)
}
]
},
{
id: 2,
name: "Something else",
occupations: [
{
id: 1,
name: "Lunchparty",
startDate: todayDate - days(8),
endDate: todayDate,
background: "orange"
},
{
id: 2,
name: "Work",
startDate: todayDate + days(1),
endDate: todayDate + days(3)
}
]
},
{
id: 3,
name: "Super long",
occupations: [
{
id: 1,
name: "Super Long Booking",
startDate: todayDate - days(33),
endDate: todayDate + days(33),
background: "lightsalmon"
}
]
}
]
```

Expand All @@ -63,11 +113,6 @@ npm run serve
npm run build
```

### Run your tests
```
npm run test
```

### Lints and fixes files
```
npm run lint
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ["@vue/app"]
presets: ["@vue/app"]
};
1 change: 1 addition & 0 deletions docs/css/app.d6d3633d.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-horizontal-calendar</title><link href=css/app.d6d3633d.css rel=preload as=style><link href=js/app.edada6ca.js rel=preload as=script><link href=js/chunk-vendors.b9eb2c1d.js rel=preload as=script><link href=css/app.d6d3633d.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-horizontal-calendar doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.b9eb2c1d.js></script><script src=js/app.edada6ca.js></script></body></html>
2 changes: 2 additions & 0 deletions docs/js/app.edada6ca.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/js/app.edada6ca.js.map

Large diffs are not rendered by default.

Loading