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

misc #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

misc #31

Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,15 @@ node_modules

.DS_Store

gh-pages
gh-pages

# yarn
.pnp.*
.yarn/*
!.yarn/cache/.gitignore
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.vercel
783 changes: 783 additions & 0 deletions .yarn/releases/yarn-3.2.3.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
yarnPath: .yarn/releases/yarn-3.2.3.cjs

nodeLinker: node-modules
79 changes: 79 additions & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { Gantt } from '../src/Gantt';
import '../src/gantt.css';

var tasks = [
{
start: '2018-10-01',
end: '2018-10-08',
name: 'Redesign website',
id: 'Task 0',
progress: 20,
},
{
start: '2018-10-03',
end: '2018-10-06',
name: 'Write new content',
id: 'Task 1',
progress: 5,
dependencies: 'Task 0',
},
{
start: '2018-10-04',
end: '2018-10-08',
name: 'Apply new styles',
id: 'Task 2',
progress: 10,
dependencies: 'Task 1',
},
{
start: '2018-10-08',
end: '2018-10-09',
name: 'Review',
id: 'Task 3',
progress: 5,
dependencies: 'Task 2',
},
{
start: '2018-10-08',
end: '2018-10-10',
name: 'Deploy',
id: 'Task 4',
progress: 0,
dependencies: 'Task 2',
},
{
start: '2018-10-11',
end: '2018-10-11',
name: 'Go Live!',
id: 'Task 5',
progress: 0,
dependencies: 'Task 4',
custom_class: 'bar-milestone',
},
{
start: '2014-01-05',
end: '2019-10-12',
name: 'Long term task',
id: 'Task 6',
progress: 0,
},
];

var gantt_chart = new Gantt('.gantt-target', tasks, {
on_click: function (task) {
console.log(task);
},
on_date_change: function (task, start, end) {
console.log(task, start, end);
},
on_progress_change: function (task, progress) {
console.log(task, progress);
},
on_view_change: function (mode) {
console.log(mode);
},
view_mode: 'Month',
language: 'en',
});

console.log(gantt_chart);
133 changes: 0 additions & 133 deletions dist/frappe-gantt.css

This file was deleted.

Loading