{"id":20084513,"url":"https://github.com/dhtmlx/firebase-scheduler","last_synced_at":"2025-05-06T01:32:04.169Z","repository":{"id":30693916,"uuid":"34249881","full_name":"DHTMLX/firebase-scheduler","owner":"DHTMLX","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-22T16:26:58.000Z","size":494,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-10T23:48:37.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DHTMLX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-20T09:02:03.000Z","updated_at":"2023-07-17T20:20:19.000Z","dependencies_parsed_at":"2022-08-26T11:11:47.051Z","dependency_job_id":null,"html_url":"https://github.com/DHTMLX/firebase-scheduler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Ffirebase-scheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Ffirebase-scheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Ffirebase-scheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHTMLX%2Ffirebase-scheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DHTMLX","download_url":"https://codeload.github.com/DHTMLX/firebase-scheduler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224479899,"owners_count":17318299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T15:52:16.593Z","updated_at":"2024-11-13T15:52:17.400Z","avatar_url":"https://github.com/DHTMLX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Firebase adapter for dhtmlxScheduler\n=============================\n\nLibrary allows using [dhtmlxScheduler](http://dhtmlx.com/docs/products/dhtmlxScheduler) components with [FireBase](https://firebase.com/)\n\nCiting the Firebase site:\n\nWhen data changes, apps built with Firebase update instantly across every device -- web or mobile.\n\nFirebase-powered apps work offline. Data is synchronized instantly when your app regains connectivity.\n\nCloud Firestore\n-----------\n\n\nInclude dhtmlxScheduler and Firebase files on the page\n\n```html\n\u003c!-- dhtmlxScheduler --\u003e\n\u003cscript src=\"//cdn.dhtmlx.com/scheduler/edge/dhtmlxscheduler.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"//cdn.dhtmlx.com/scheduler/edge/dhtmlxscheduler.css\"\u003e\n\n\u003c!-- dhtmlxScheduler-Firebase adapter --\u003e\n\u003cscript type=\"text/javascript\" src=\"../source/dhtmlx_scheduler_firebase.js\"\u003e\u003c/script\u003e\n\n\u003c!-- FireBase --\u003e\n\u003cscript src=\"https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://www.gstatic.com/firebasejs/5.0.4/firebase-database.js\"\u003e\u003c/script\u003e\n```\nCreate html for dhtmlxScheduler\n\n```html\n    \u003cdiv id=\"scheduler_here\" class=\"dhx_cal_container\" style=\"width: 100%; height: 500px;\"\u003e\n        \u003cdiv class=\"dhx_cal_navline\"\u003e\n            \u003cdiv class=\"dhx_cal_prev_button\"\u003e\u0026nbsp;\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_next_button\"\u003e\u0026nbsp;\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_today_button\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_date\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_tab\" name=\"day_tab\" style=\"right: 332px;\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_tab\" name=\"week_tab\" style=\"right: 268px;\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_tab\" name=\"month_tab\" style=\"right: 204px;\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_tab\" name=\"year_tab\" style=\"right: 140px;\"\u003e\u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"dhx_cal_header\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"dhx_cal_data\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n```\n\nInit dhtmlxScheduler\n\n```js\n    scheduler.init(\"scheduler_here\");\n```\n\nCreate firebase connection and set this to scheduler\n\n```js\n    firebase.initializeApp({\n        apiKey: \"APP KEY HERE\",\n        projectId: \"scheduler-firebase\"\n    });\n    var db = firebase.firestore();\n    db.settings({ timestampsInSnapshots:true });\n\n    scheduler.firebase(db.collection(\"events\"));\n```\n\nStop the data adapter\n\n```js\n    scheduler.firebaseStop();\n```\n\n\n\nRealtime database\n-----------\n\nInclude dhtmlxScheduler and Firebase files on the page\n\n```html\n\u003c!-- dhtmlxScheduler --\u003e\n\u003cscript src=\"//cdn.dhtmlx.com/scheduler/edge/dhtmlxscheduler.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"//cdn.dhtmlx.com/scheduler/edge/dhtmlxscheduler.css\"\u003e\n\n\u003c!-- dhtmlxScheduler-Firebase adapter --\u003e\n\u003cscript type=\"text/javascript\" src=\"../source/dhtmlx_scheduler_firebase.js\"\u003e\u003c/script\u003e\n\n\u003c!-- FireBase --\u003e\n\u003cscript src=\"https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://www.gstatic.com/firebasejs/5.0.4/firebase-database.js\"\u003e\u003c/script\u003e\n```\nCreate html for dhtmlxScheduler\n\n```html\n    \u003cdiv id=\"scheduler_here\" class=\"dhx_cal_container\" style=\"width: 100%; height: 500px;\"\u003e\n        \u003cdiv class=\"dhx_cal_navline\"\u003e\n            \u003cdiv class=\"dhx_cal_prev_button\"\u003e\u0026nbsp;\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_next_button\"\u003e\u0026nbsp;\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_today_button\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_date\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_tab\" name=\"day_tab\" style=\"right: 332px;\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_tab\" name=\"week_tab\" style=\"right: 268px;\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_tab\" name=\"month_tab\" style=\"right: 204px;\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"dhx_cal_tab\" name=\"year_tab\" style=\"right: 140px;\"\u003e\u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"dhx_cal_header\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"dhx_cal_data\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n```\n\nInit dhtmlxScheduler\n\n```js\n    scheduler.init(\"scheduler_here\");\n```\n\nCreate firebase connection and set this to scheduler\n\n```js\n    firebase.initializeApp({\n        databaseURL: \"https://scheduler-firebase.firebaseio.com/\"\n    });\n    var db = firebase.database();\n\n    scheduler.firebase(data.ref(\"events\"));\n```\n\nStop the data adapter\n\n```js\n    scheduler.firebaseStop();\n```\n\nThat is it.\n\nLicense\n----------\n\nDHTMLX is published under the GPLv3 license.\n\nLicense:\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"),\n\tto deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n\tand/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n\tIN THE SOFTWARE.\n\n\nCopyright (c) 2015 DHTMLX","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhtmlx%2Ffirebase-scheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhtmlx%2Ffirebase-scheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhtmlx%2Ffirebase-scheduler/lists"}