Skip to content

Commit

Permalink
Merge pull request #561 from add2cal/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jekuer authored Mar 12, 2024
2 parents eda4e31 + 7500a14 commit ec61ec9
Show file tree
Hide file tree
Showing 25 changed files with 212 additions and 258 deletions.
2 changes: 1 addition & 1 deletion assets/css/atcb-3d.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: 3D
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-date.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: Date
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-flat.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: Flat
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-neumorphism.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: Neumorphism
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-round.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: Round
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-text.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: Text
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: Default
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion demo/components/footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function topFunction() {
</span>
<div class="mt-6 text-xs sm:mt-5 md:mt-3">
<span class="font-semibold text-zinc-500 dark:text-zinc-400"> &copy; {{new Date().getFullYear()}} </span>
<span class="lowercase text-zinc-400 dark:text-zinc-500"> , Current Version: 2.6.1 </span>
<span class="lowercase text-zinc-400 dark:text-zinc-500"> , Current Version: 2.6.2 </span>
</div>
</div>
<div class="hidden self-center sm:block">
Expand Down
8 changes: 4 additions & 4 deletions demo/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ export default defineNuxtConfig({
{ rel: 'preload', as: 'font', type: 'font/woff2', href: '/assets/fonts/inter-v12-latin-800.woff2', crossorigin: 'anonymous' },
{ rel: 'preload', as: 'font', type: 'font/woff2', href: '/assets/fonts/fira-mono-v14-latin-regular.woff2', crossorigin: 'anonymous' },
],
script:
process.env.NUXT_PUBLIC_DEV && process.env.NUXT_PUBLIC_DEV === 'true'
? []
: [{ async: true, defer: true, 'data-website-id': 'd178e769-c435-4de9-87e5-48b0ec339f62', src: 'https://a.add-to-calendar-button.com/atcba.js', 'data-host-url': 'https://a.add-to-calendar-button.com', 'data-domains': 'add-to-calendar-button.com' }],
script:
process.env.NUXT_PUBLIC_DEV && process.env.NUXT_PUBLIC_DEV === 'true'
? []
: [{ async: true, defer: true, 'data-website-id': 'd178e769-c435-4de9-87e5-48b0ec339f62', src: 'https://a.add-to-calendar-button.com/atcba.js', 'data-host-url': 'https://a.add-to-calendar-button.com', 'data-domains': 'add-to-calendar-button.com' }],
noscript: [{ innerHTML: 'Please enable JavaScript to view this website.' }],
},
},
Expand Down
8 changes: 4 additions & 4 deletions demo/pages/advanced-use.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ onUnmounted(() => {
:name="$t('demo_data.name')"
:startDate="defaultDate"
options="'Apple','Google','iCal'"
size="7"
hideIconButton
lightMode="bodyScheme"
:language="locale"
hideRichData
Expand All @@ -273,7 +273,7 @@ onUnmounted(() => {
name="{{ $t('demo_data.name') }}"
startDate="{{ defaultDate }}"
options="'Apple','Google','iCal'"
size="7"
hideIconButton
lightMode="bodyScheme"{{ defaultLang }}
&gt;&lt;/add-to-calendar-button&gt;
</pre
Expand Down Expand Up @@ -311,7 +311,7 @@ onUnmounted(() => {
</div>
<div class="block w-full justify-between pt-4 md:flex">
<div class="flex w-full flex-none justify-center p-6 pt-8 md:w-[300px]">
<add-to-calendar-button :name="$t('demo_data.name')" :startDate="defaultDate" options="'Apple','Google','iCal'" lightMode="bodyScheme" :language="locale" customCss="https://add-to-calendar-button.com/atcb.css" buttonStyle="custom" listStyle="modal" hideRichData> </add-to-calendar-button>
<add-to-calendar-button :name="$t('demo_data.name')" :startDate="defaultDate" options="'Apple','Google','iCal'" lightMode="bodyScheme" :language="locale" customCss="https://add-to-calendar-button.com/atcb.css" buttonStyle="custom" listStyle="modal" hideRichData hideBranding> </add-to-calendar-button>
</div>
<div class="flex-1 overflow-x-auto">
<LazyCodeBlock>
Expand Down Expand Up @@ -374,7 +374,7 @@ onUnmounted(() => {
</div>
<div class="block w-full justify-between pt-4 md:flex">
<div class="flex w-full flex-none justify-center p-6 pt-8 md:w-[300px]">
<add-to-calendar-button id="css-part-example" :name="$t('demo_data.name')" :startDate="defaultDate" options="'Apple','Google','iCal'" lightMode="bodyScheme" :language="locale" hideRichData> </add-to-calendar-button>
<add-to-calendar-button id="css-part-example" :name="$t('demo_data.name')" :startDate="defaultDate" options="'Apple','Google','iCal'" lightMode="bodyScheme" :language="locale" hideRichData hideBranding> </add-to-calendar-button>
</div>
<div class="flex-1 overflow-x-auto">
<LazyCodeBlock>
Expand Down
2 changes: 1 addition & 1 deletion demo/public/atcb.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: Default
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "add-to-calendar-button",
"version": "2.6.1",
"version": "2.6.2",
"engines": {
"node": ">=18.17.0",
"npm": ">=9.6.7"
Expand Down
2 changes: 1 addition & 1 deletion src/atcb-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion src/atcb-decorate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion src/atcb-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
2 changes: 1 addition & 1 deletion src/atcb-generate-pro.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
6 changes: 1 addition & 5 deletions src/atcb-generate-rich-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down Expand Up @@ -76,10 +76,6 @@ function atcb_generate_rich_data(data, parent) {
}
}
}
} else {
imageData.push('"https://add-to-calendar-button.com/assets/img/1x1.png"');
imageData.push('"https://add-to-calendar-button.com/assets/img/4x3.png"');
imageData.push('"https://add-to-calendar-button.com/assets/img/16x9.png"');
}
if (imageData.length > 0) {
schemaContent.push('"image":[\r\n' + imageData.join(',\r\n') + ']');
Expand Down
4 changes: 2 additions & 2 deletions src/atcb-generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down Expand Up @@ -701,7 +701,7 @@ function atcb_generate_date_button(data, parent, subEvent = 'all') {
if (data.dates[`${subEvent}`].description !== '' && fullTimeInfo.length === 0 && (!data.recurrence || data.recurrence === '')) {
const btnDescription = document.createElement('div');
btnDescription.classList.add('atcb-date-btn-content');
btnDescription.textContent = data.dates[`${subEvent}`].description;
btnDescription.textContent = data.dates[`${subEvent}`].descriptionHtmlFree;
btnDescription.style.cssText = 'overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;';
btnDetails.append(btnDescription);
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/atcb-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
* Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
*
*/
const atcbVersion = '2.6.1';
const atcbVersion = '2.6.2';

// DEFINING CSS
const atcbCssTemplate = {};
Expand Down
2 changes: 1 addition & 1 deletion src/atcb-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Add to Calendar Button
* ++++++++++++++++++++++
*
* Version: 2.6.1
* Version: 2.6.2
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down
Loading

0 comments on commit ec61ec9

Please sign in to comment.