Comments (12)
Thanks for reporting this. Will look in to it.
from ember-calendar.
@willrax Thanks for quick reply! I am looking forward to fix because I really liked the calendar widget itself and want to incorporate this addon in some big project that is currently in development.
from ember-calendar.
@igorpreston Have you tried running ember generate ember-calendar
?
from ember-calendar.
@matteodepalo
Created an empty app and did things in following sequence:
- ember install ember-calendar
- ember generate ember-calendar
- Tried running app and it throwed an error that broccoli-sass is required. Ok, installed broccoli-sass.
- After rebooting app, the error in console: Error: Could not find module
moment
imported fromember-moment/helpers/moment
- Tried running npm install and bower install but nothing has been installed.
- Tried ember install ember-moment. It installed some bower packages.
- After rebooting app, the error in the console: TypeError: this.get(...) is undefined (vendor.js (line 108780, col 13))
Can someone please provide detailed instruction how to install it and get it to work without any errors.
from ember-calendar.
@eugeniodepalo would you be able to help on this? I remember you were talking about some issues with dependencies not being installed.
from ember-calendar.
@eugeniodepalo @matteodepalo @willrax Hello Everybody, Great work on the addon!!
Very clean implementation. I am however encountering the same issue...
Any News?
Thanks!!
from ember-calendar.
Working on it #17
from ember-calendar.
The PR is ready for review. In the meanwhile if you want to help test this you can run:
ember new calendar-test
cd calendar-test
npm install "git+ssh://[email protected]:alphasights/ember-calendar.git#feature/mde/fix-dependencies" --save-dev
ember generate ember-calendar
At this point if you include the basic {{as-calendar}} component in application.hbs you should see the calendar without styles. As mentioned in the README if you want the default styles you have to install ember-cli-paint
. A PR alphasights/ember-cli-paint#48 is being reviewed on that repo right now and it will bump dependencies too, fixing an issue with the dropdown.
from ember-calendar.
@matteodepalo did exactly as you described and included this component.
The only error I experienced is after running ember serve, it said that there is no app.scss file. I changed app.css to app.scss and worked. However:
{{as-calendar
title="Ember Calendar"
occurrences=occurrences
defaultTimeZoneQuery="New York|London|Dubai|Hong Kong"
dayStartingTime="9:00"
dayEndingTime="18:00"
timeSlotDuration="00:30"
onAddOccurrence="calendarAddOccurrence"
onUpdateOccurrence="calendarUpdateOccurrence"
onRemoveOccurrence="calendarRemoveOccurrence"}}
Then got an error in console:
TypeError: this.get(...) is undefined (vendor.js (line 108660, col 13))
I tried removing all properties on component and did this:
{{as-calendar}}
Got an error:
TypeError: this.get(...) is null (vendor.js (line 108660, col 13))
from ember-calendar.
Did you add the basic application controller as stated in the readme?
// app/controllers/index.js
import Ember from 'ember';
export default Ember.Controller.extend({
occurrences: Ember.A(),
actions: {
calendarAddOccurrence: function(occurrence) {
this.get('occurrences').pushObject(Ember.Object.create({
title: occurrence.get('title'),
startsAt: occurrence.get('startsAt'),
endsAt: occurrence.get('endsAt')
}));
},
calendarUpdateOccurrence: function(occurrence, properties) {
occurrence.setProperties(properties);
},
calendarRemoveOccurrence: function(occurrence) {
this.get('occurrences').removeObject(occurrence);
}
}
});
from ember-calendar.
That's mostly needed for the occurences array which is otherwise undefined.
from ember-calendar.
Version 0.1.4 is out, fixing the dependency issues you've found. I'm going to close this but feel free to open another issue if you encounter other problems!
from ember-calendar.
Related Issues (20)
- Click and Drag HOT 2
- Error: Could not find module `lodash` imported from `ember-calendar/models/day` upon installation HOT 3
- identify preview objects in updating action
- Clicking on 'THIS WEEK' button changes calendar's first week day
- Build fails when main project uses sass instead of scss for ember-cli-sass HOT 1
- Offset calculation doesn't account for change in year HOT 2
- Adding a time slot at midnight duplicates the time slot in to the previous day. HOT 3
- Easy way to set it to start weeks on Sunday instead of Monday?
- Any way to use it as full day? 24 hours? It's not working when you set it as 24 hours. HOT 8
- Integration with Ember 3.15 Octane HOT 1
- move to adopted ember addons org
- failed to @extend "%dropdown-item" HOT 2
- Monthly and day view HOT 9
- Install failed. Could not find addon with name: [email protected] HOT 6
- The Broccoli Plugin: [BroccoliMergeTrees: TreeMerger (otherAssetTrees)] failed HOT 3
- remove liquid fire HOT 4
- dependency cleanup HOT 4
- consider removing timezone functionality HOT 5
- not working properly on ember 2.8 HOT 5
- add greenkeeper HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-calendar.