Skip to content

Commit 3194f88

Browse files
chore: format
1 parent 1403f2e commit 3194f88

20 files changed

+5297
-5033
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["env"]
2+
"presets": ["env"]
33
}

.github/workflows/publish.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: Publish on NPM
22
on:
3-
push:
4-
branches: [master]
3+
push:
4+
branches: [master]
55

66
jobs:
7-
publish:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v1
11-
- uses: actions/setup-node@v1
12-
with:
13-
node-version: 14
14-
- run: yarn install
15-
- run: yarn prettier-check
16-
- run: yarn test
17-
- uses: JS-DevTools/npm-publish@v1
18-
with:
19-
token: ${{ secrets.NPM_TOKEN }}
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: 14
14+
- run: yarn install
15+
- run: yarn prettier-check
16+
- run: yarn test
17+
- uses: JS-DevTools/npm-publish@v1
18+
with:
19+
token: ${{ secrets.NPM_TOKEN }}

.prettierrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"tabWidth": 4,
3-
"singleQuote": true
2+
"tabWidth": 4,
3+
"singleQuote": true
44
}

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ var gantt = new Gantt("#gantt", tasks);
5151
You can also pass various options to the Gantt constructor:
5252

5353
```js
54-
var gantt = new Gantt("#gantt", tasks, {
55-
header_height: 50,
56-
column_width: 30,
57-
step: 24,
58-
view_modes: ["Quarter Day", "Half Day", "Day", "Week", "Month"],
59-
bar_height: 20,
60-
bar_corner_radius: 3,
61-
arrow_curve: 5,
62-
padding: 18,
63-
view_mode: "Day",
64-
date_format: "YYYY-MM-DD",
65-
language: "en", // or 'es', 'it', 'ru', 'ptBr', 'fr', 'tr', 'zh', 'de', 'hu'
66-
custom_popup_html: null,
54+
var gantt = new Gantt('#gantt', tasks, {
55+
header_height: 50,
56+
column_width: 30,
57+
step: 24,
58+
view_modes: ['Quarter Day', 'Half Day', 'Day', 'Week', 'Month'],
59+
bar_height: 20,
60+
bar_corner_radius: 3,
61+
arrow_curve: 5,
62+
padding: 18,
63+
view_mode: 'Day',
64+
date_format: 'YYYY-MM-DD',
65+
language: 'en', // or 'es', 'it', 'ru', 'ptBr', 'fr', 'tr', 'zh', 'de', 'hu'
66+
custom_popup_html: null,
6767
});
6868
```
6969

@@ -91,25 +91,25 @@ Assuming the last commit (or a couple of commits) were enhancements or fixes,
9191

9292
1. Run `yarn build`
9393

94-
This will generate files in the `dist/` folder. These files need to be committed.
94+
This will generate files in the `dist/` folder. These files need to be committed.
9595

9696
1. Run `yarn publish`
9797
1. Type the new version at the prompt
9898

99-
Depending on the type of change, you can either bump the patch version or the minor version.
100-
For e.g.,
99+
Depending on the type of change, you can either bump the patch version or the minor version.
100+
For e.g.,
101101

102-
```
103-
0.5.0 -> 0.6.0 (minor version bump)
104-
0.5.0 -> 0.5.1 (patch version bump)
105-
```
102+
```
103+
0.5.0 -> 0.6.0 (minor version bump)
104+
0.5.0 -> 0.5.1 (patch version bump)
105+
```
106106
107107
1. Now, there will be a commit named after the version you just entered. Include the generated files in `dist/` folder as part of this commit by running the command:
108-
```
109-
git add dist
110-
git commit --amend
111-
git push origin master
112-
```
108+
```
109+
git add dist
110+
git commit --amend
111+
git push origin master
112+
```
113113
114114
License: MIT
115115

dist/frappe-gantt.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
}
112112
.gantt-container .today-button,
113113
.gantt-container .viewmode-select {
114-
background: #F4F5F6;
114+
background: #f4f5f6;
115115
text-align: -webkit-center;
116116
text-align: center;
117117
height: 25px;
@@ -132,7 +132,7 @@
132132
text-overflow: "";
133133
}
134134
.gantt-container .date-highlight {
135-
background-color: #EBEEF0;
135+
background-color: #ebeef0;
136136
border-radius: 12px;
137137
position: absolute;
138138
display: none;
@@ -164,19 +164,19 @@
164164
stroke: #ebeff2;
165165
}
166166
.gantt .tick {
167-
stroke: #EBEEF0;
167+
stroke: #ebeef0;
168168
stroke-width: 0.4;
169169
}
170170
.gantt .tick.thick {
171171
stroke: #e0e0e0;
172172
stroke-width: 0.7;
173173
}
174174
.gantt .holiday-highlight {
175-
fill: #F9FAFA;
175+
fill: #f9fafa;
176176
}
177177
.gantt .arrow {
178178
fill: none;
179-
stroke: #9FA9B1;
179+
stroke: #9fa9b1;
180180
stroke-width: 1;
181181
}
182182
.gantt .bar-wrapper .bar {
@@ -186,7 +186,7 @@
186186
transition: stroke-width 0.3s ease;
187187
}
188188
.gantt .bar-progress {
189-
fill: #EBEEF0;
189+
fill: #ebeef0;
190190
}
191191
.gantt .bar-expected-progress {
192192
fill: #c4c4e9;
@@ -269,7 +269,7 @@
269269
position: absolute;
270270
top: 0;
271271
left: 0;
272-
background: #171B1F;
272+
background: #171b1f;
273273
padding: 10px;
274274
border-radius: 5px;
275275
width: max-content;
@@ -284,7 +284,7 @@
284284
color: #fff;
285285
}
286286
.gantt-container .popup-wrapper .subtitle {
287-
color: #98A1A9;
287+
color: #98a1a9;
288288
}
289289
.gantt-container .popup-wrapper .pointer {
290290
position: absolute;

0 commit comments

Comments
 (0)