Skip to content
This repository was archived by the owner on Jan 22, 2023. It is now read-only.

Commit f006666

Browse files
authored
Merge pull request #3 from add2cal/dev
changing name style
2 parents fa8e71b + 1151f6a commit f006666

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,19 @@ import AddToCalendarButton from 'add-to-calendar-button-vue';
105105

106106
Use the componet inside your code and declare any options as attributes.
107107
```
108-
<AddToCalendarButton
108+
<add-to-calendar-button
109109
name="Test-Event"
110110
startDate="2023-05-22"
111111
:options="['Apple','Google','Yahoo','iCal']"
112-
></AddToCalendarButton>
112+
></add-to-calendar-button>
113113
```
114114

115115
Mind that for images, options, and customLabels, you would need to add ":" before the props name (v-bind). Otherwise, Vue would not recognize them as Arrays and Objects, but Strings (see [Vue Documentation](https://vuejs.org/guide/components/props.html#props-declaration) for details).
116116

117-
<!--If you want to not pass the props via the component element, you can also simply fall back to the JSON style of main Add to Calendar Button script. Keep on including the Vue component, but instead of using `<AddToCalendarButton></AddToCalendarButton>`, you use the following syntax:
117+
<!--If you want to not pass the props via the component element, you can also simply fall back to the JSON style of main Add to Calendar Button script. Keep on including the Vue component, but instead of using `<add-to-calendar-button></add-to-calendar-button>`, you use the following syntax:
118118
119119
```
120-
<AddToCalendarButton>
120+
<add-to-calendar-button>
121121
{
122122
"name":"Add the title of your event",
123123
"startDate":"2023-05-22",
@@ -128,7 +128,7 @@ Mind that for images, options, and customLabels, you would need to add ":" befor
128128
"iCal"
129129
]
130130
}
131-
</AddToCalendarButton>
131+
</add-to-calendar-button>
132132
```-->
133133

134134
<br /><br />
@@ -145,6 +145,7 @@ Find all information about the available parameters and how to configure specifi
145145

146146
## ⚡ Changelog
147147

148+
- v1.1 : changing component name
148149
- v1.0 : initial release
149150

150151
Mind that this is only referring to this wrapper repository and does not list any patches!

dist/atcb.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/atcb.umd.cjs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "add-to-calendar-button-vue",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"engines": {
55
"node": ">=14.20.0"
66
},

src/components/AddToCalendarButtonComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<script lang="ts">
99
let initializedButtons: string[] = [];
1010
export default {
11-
name: "AddToCalendarButton",
11+
name: "add-to-calendar-button",
1212
props: {
1313
proKey: String,
1414
name: String,

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default defineConfig({
77
build: {
88
lib: {
99
entry: resolve(__dirname, 'src/components/AddToCalendarButtonComponent.vue'),
10-
name: 'AddToCalendarButton',
10+
name: 'add-to-calendar-button',
1111
fileName: 'atcb'
1212
},
1313
rollupOptions: {

0 commit comments

Comments
 (0)