我目前正在尝试从自己的$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: '2018-10-25',
navLinks: true, // can click day/week names to navigate views
selectable: false,
selectHelper: true,
select: function(start, end) {
},
dayRender: function(date, cell )
{
console.log(date);
console.log(cell);
},
eventRender: function(event, element, view) {
},
eventAfterAllRender: function(view)
{
if (view.name == "month") {
var allEvents = $('#calendar').fullCalendar('clientEvents');
for (var index in allEvents) {
var event = allEvents[index];
}
}
},
eventClick: function(event) {
return false;
},
loading: function(bool) {
//$('#loading').toggle(bool);
},
timezone: true,
editable: false,
eventLimit: true, // allow "more" link when too many events
eventLimitTex: 'More shifts',
events: eventsJson
});
生成一个prisma.graphql
文件,但是由于得到以下内容,因此无法全局安装.graphqlconfig.yml
或npm i -g graphql-binding
错误:
npm i -g prisma-binding
因此,我显然以^ 0.13版本安装了graphql:
npm WARN graphql-binding@2.2.6 requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN graphql-import@0.5.3 requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN graphql-tools@3.1.0 requires a peer of graphql@^0.13.0 but none is installed. You must installpeer dependencies yourself.
npm WARN apollo-link@1.2.3 requires a peer of graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 but noneis installed. You must install peer dependencies yourself.
这成功运行,但是graphql绑定仍然无法安装。 我需要运行的命令是:
npm i -g graphql@0.13
但是如果不安装绑定,我将无法运行它。
欢迎提出解决建议:)
编辑
使用npx我设法运行
graphql codegen