@throwbo/timelayer-client 3.4.2 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -81
- package/dist/assets/timelayer.css +1 -1
- package/dist/timelayer.es.js +28 -77
- package/package.json +24 -26
- package/dist/embed.es.js +0 -1
package/README.md
CHANGED
|
@@ -1,103 +1,81 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @throwbo/timelayer-client
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A Vue 3 calendar component library for scheduling and event management.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Requirements
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Node.js `>=20.19.0`
|
|
8
|
+
- npm `>=10`
|
|
8
9
|
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
12
|
-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
10
|
+
## Installation
|
|
13
11
|
|
|
12
|
+
```bash
|
|
13
|
+
npm install @throwbo/timelayer-client
|
|
14
14
|
```
|
|
15
|
-
cd existing_repo
|
|
16
|
-
git remote add origin https://gitlab.com/throwbo/timelayer-client.git
|
|
17
|
-
git branch -M main
|
|
18
|
-
git push -uf origin main
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Integrate with your tools
|
|
22
|
-
|
|
23
|
-
- [ ] [Set up project integrations](https://gitlab.com/throwbo/timelayer-client/-/settings/integrations)
|
|
24
|
-
|
|
25
|
-
## Collaborate with your team
|
|
26
|
-
|
|
27
|
-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
28
|
-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
29
|
-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
30
|
-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
31
|
-
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
32
|
-
|
|
33
|
-
## Test and Deploy
|
|
34
|
-
|
|
35
|
-
Use the built-in continuous integration in GitLab.
|
|
36
|
-
|
|
37
|
-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
38
|
-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
39
|
-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
40
|
-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
41
|
-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
# Editing this README
|
|
46
|
-
|
|
47
|
-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
48
|
-
|
|
49
|
-
## Suggestions for a good README
|
|
50
|
-
|
|
51
|
-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
52
|
-
|
|
53
|
-
## Name
|
|
54
15
|
|
|
55
|
-
|
|
16
|
+
### Peer Dependencies
|
|
56
17
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
## Badges
|
|
62
|
-
|
|
63
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
64
|
-
|
|
65
|
-
## Visuals
|
|
66
|
-
|
|
67
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
68
|
-
|
|
69
|
-
## Installation
|
|
70
|
-
|
|
71
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
18
|
+
```bash
|
|
19
|
+
npm install vue vue-router
|
|
20
|
+
```
|
|
72
21
|
|
|
73
22
|
## Usage
|
|
74
23
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
## Support
|
|
24
|
+
### Import styles
|
|
78
25
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
26
|
+
```js
|
|
27
|
+
import '@throwbo/timelayer-client/style';
|
|
28
|
+
```
|
|
82
29
|
|
|
83
|
-
|
|
30
|
+
### Calendar Widget
|
|
84
31
|
|
|
85
|
-
|
|
32
|
+
```js
|
|
33
|
+
import { TimeLayer } from '@throwbo/timelayer-client';
|
|
86
34
|
|
|
87
|
-
|
|
35
|
+
const timelayer = await TimeLayer.init({
|
|
36
|
+
token: 'your-session-token',
|
|
37
|
+
settings: {
|
|
38
|
+
filters: {
|
|
39
|
+
events: {
|
|
40
|
+
event_types: ['available_demo'],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
});
|
|
88
45
|
|
|
89
|
-
|
|
46
|
+
timelayer.mount('#calendar');
|
|
47
|
+
```
|
|
90
48
|
|
|
91
|
-
|
|
49
|
+
### Booking Dialog
|
|
50
|
+
|
|
51
|
+
```js
|
|
52
|
+
const timelayer = await TimeLayer.init({
|
|
53
|
+
token: 'your-session-token',
|
|
54
|
+
settings: {
|
|
55
|
+
eventFields: [{
|
|
56
|
+
name: 'booking',
|
|
57
|
+
default: {
|
|
58
|
+
customer_name: 'John Doe',
|
|
59
|
+
customer_email: 'john@example.com',
|
|
60
|
+
},
|
|
61
|
+
}],
|
|
62
|
+
filters: {
|
|
63
|
+
events: { event_types: ['available_demo'] },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
timelayer.mountBookingDialog('#booking');
|
|
69
|
+
```
|
|
92
70
|
|
|
93
|
-
## Authors and acknowledgment
|
|
94
71
|
|
|
95
|
-
|
|
72
|
+
## Events
|
|
73
|
+
| Event | Payload | Description |
|
|
74
|
+
|-------|---------|-------------|
|
|
75
|
+
| `createdAppointment` | `Appointment` | Fired when a booking is created |
|
|
76
|
+
| `canceledAppointment` | `{ occurrence_id, appointment_id }` | Fired when a booking is canceled |
|
|
77
|
+
| `openBookingDialog` | — | Open the booking dialog programmatically |
|
|
96
78
|
|
|
97
79
|
## License
|
|
98
80
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
## Project status
|
|
102
|
-
|
|
103
|
-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
81
|
+
MIT © Throwing Boulders
|