Skip to content

Commit dfa4c93

Browse files
committed
chore: wip
1 parent bb1858a commit dfa4c93

File tree

11 files changed

+149
-48
lines changed

11 files changed

+149
-48
lines changed

bun.lockb

432 Bytes
Binary file not shown.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Stacks Calendar
2+
3+
Stacks Calendar is a framework that allows you to easily interact with calendar APIs.
4+
5+
## ☘️ Features
6+
7+
- 📅 Calendar APIs
8+
9+
## 🤖 Usage
10+
11+
```bash
12+
bun install @stacksjs/calendar
13+
```
14+
15+
You may now use it in your project:
16+
17+
```ts
18+
import * as calendar from '@stacksjs/calendar'
19+
20+
// ...
21+
```
22+
23+
Learn more in the docs.
24+
25+
## 🧪 Testing
26+
27+
```bash
28+
bun test
29+
```
30+
31+
## 📈 Changelog
32+
33+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
34+
35+
## 🚜 Contributing
36+
37+
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
38+
39+
## 🏝 Community
40+
41+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
42+
43+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
44+
45+
For casual chit-chat with others using this package:
46+
47+
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
48+
49+
## 🙏🏼 Credits
50+
51+
Many thanks to the following core technologies & people who have contributed to this package:
52+
53+
- [Chris Breuer](https://github.com/chrisbbreuer)
54+
- [All Contributors](../../contributors)
55+
56+
## 📄 License
57+
58+
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
59+
60+
Made with 💙

storage/framework/core/calendar/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "@stacksjs/calendar",
3+
"type": "module",
4+
"version": "0.60.3",
5+
"description": "Easily interact with calendar APIs.",
6+
"author": "Chris Breuer",
7+
"license": "MIT",
8+
"funding": "https://github.com/sponsors/chrisbbreuer",
9+
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/calendar#readme",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stacksjs/stacks.git",
13+
"directory": "./storage/framework/core/calendar"
14+
},
15+
"bugs": {
16+
"url": "https://github.com/stacksjs/stacks/issues"
17+
},
18+
"keywords": ["calendar", "stacks", "ical", "google calendar", "outlook calendar"],
19+
"exports": {
20+
".": {
21+
"bun": "./src/index.ts",
22+
"import": "./dist/index.js"
23+
},
24+
"./*": {
25+
"bun": "./src/*",
26+
"import": "./dist/*"
27+
}
28+
},
29+
"module": "dist/index.js",
30+
"types": "dist/index.d.ts",
31+
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
32+
"files": ["README.md", "dist", "src"],
33+
"scripts": {
34+
"build": "bun --bun build.ts",
35+
"typecheck": "bun --bun tsc --noEmit",
36+
"prepublishOnly": "bun run build"
37+
},
38+
"devDependencies": {
39+
"@stacksjs/development": "workspace:*"
40+
}
41+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './links'
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import type { Ref } from 'vue'
2+
3+
export interface CalendarStore {
4+
day: number
5+
month: Ref<number>
6+
year: Ref<number>
7+
currentMonthYear: Ref<string>
8+
currentMonthDayYear: Ref<string>
9+
datesOfThePastMonth: Ref<number[]>
10+
datesOfTheMonth: Ref<number[]>
11+
datesOfNextMonth: Ref<number[]>
12+
currentWeekView: Ref<number[]>
13+
currentWeekViewToday: Ref<number[]>
14+
}
15+
16+
export interface Time {
17+
from: string
18+
to: string
19+
}
20+
export interface Events {
21+
date: string
22+
title: string
23+
description: string
24+
month: number
25+
day: number
26+
year: number
27+
time: Time
28+
}
29+
30+
export interface WeekDates {
31+
month: number
32+
date: number
33+
}
34+
35+
export interface TimeTableStyle {
36+
time: string
37+
gridRow: string
38+
}
39+
export interface CalendarLink {
40+
from: Date
41+
to: Date
42+
allDay: Boolean
43+
address: string
44+
title: string
45+
description: string
46+
timezone: string
47+
}

0 commit comments

Comments
 (0)