From 62b651789a6048a2506a734410831f1e9c194b8f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 22 Nov 2020 12:57:28 +0100 Subject: [PATCH] Migrated DateTimeWeather and Calendar widgets --- .../backend/http/webapp/public/index.html | 5 - platypush/backend/http/webapp/src/App.vue | 30 +-- platypush/backend/http/webapp/src/Events.vue | 205 ++++++++++------- platypush/backend/http/webapp/src/Utils.vue | 5 +- .../http/webapp/src/components/Sensor.vue | 84 +++++++ .../http/webapp/src/utils/DateTime.vue | 14 ++ .../backend/http/webapp/src/utils/Events.vue | 15 ++ .../http/webapp/src/utils/Notification.vue | 2 +- .../backend/http/webapp/src/utils/Types.vue | 20 ++ .../webapp/src/widgets/Calendar/Index.vue | 120 ++++++++++ .../webapp/src/widgets/DateTime/Index.vue | 78 +++++++ .../src/widgets/DateTimeWeather/Index.vue | 213 ++++++++++-------- .../http/webapp/src/widgets/Weather/Index.vue | 114 ++++++++++ .../http/webapp/src/widgets/Widget.vue | 6 +- 14 files changed, 711 insertions(+), 200 deletions(-) create mode 100644 platypush/backend/http/webapp/src/components/Sensor.vue create mode 100644 platypush/backend/http/webapp/src/utils/DateTime.vue create mode 100644 platypush/backend/http/webapp/src/utils/Events.vue create mode 100644 platypush/backend/http/webapp/src/utils/Types.vue create mode 100644 platypush/backend/http/webapp/src/widgets/Calendar/Index.vue create mode 100644 platypush/backend/http/webapp/src/widgets/DateTime/Index.vue create mode 100644 platypush/backend/http/webapp/src/widgets/Weather/Index.vue diff --git a/platypush/backend/http/webapp/public/index.html b/platypush/backend/http/webapp/public/index.html index c89cd8267c..85af3d0664 100644 --- a/platypush/backend/http/webapp/public/index.html +++ b/platypush/backend/http/webapp/public/index.html @@ -4,11 +4,6 @@ - <%= htmlWebpackPlugin.options.title %> diff --git a/platypush/backend/http/webapp/src/App.vue b/platypush/backend/http/webapp/src/App.vue index 2731f23013..160345911d 100644 --- a/platypush/backend/http/webapp/src/App.vue +++ b/platypush/backend/http/webapp/src/App.vue @@ -1,43 +1,43 @@ diff --git a/platypush/backend/http/webapp/src/Events.vue b/platypush/backend/http/webapp/src/Events.vue index a744bdabf8..47deb49c0a 100644 --- a/platypush/backend/http/webapp/src/Events.vue +++ b/platypush/backend/http/webapp/src/Events.vue @@ -1,10 +1,15 @@ - - diff --git a/platypush/backend/http/webapp/src/components/Sensor.vue b/platypush/backend/http/webapp/src/components/Sensor.vue new file mode 100644 index 0000000000..365e4e8f8f --- /dev/null +++ b/platypush/backend/http/webapp/src/components/Sensor.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/platypush/backend/http/webapp/src/utils/DateTime.vue b/platypush/backend/http/webapp/src/utils/DateTime.vue new file mode 100644 index 0000000000..70ce8e9245 --- /dev/null +++ b/platypush/backend/http/webapp/src/utils/DateTime.vue @@ -0,0 +1,14 @@ + diff --git a/platypush/backend/http/webapp/src/utils/Events.vue b/platypush/backend/http/webapp/src/utils/Events.vue new file mode 100644 index 0000000000..caaae33d01 --- /dev/null +++ b/platypush/backend/http/webapp/src/utils/Events.vue @@ -0,0 +1,15 @@ + diff --git a/platypush/backend/http/webapp/src/utils/Notification.vue b/platypush/backend/http/webapp/src/utils/Notification.vue index c04482526f..d8aef8106e 100644 --- a/platypush/backend/http/webapp/src/utils/Notification.vue +++ b/platypush/backend/http/webapp/src/utils/Notification.vue @@ -1,5 +1,5 @@ diff --git a/platypush/backend/http/webapp/src/widgets/Calendar/Index.vue b/platypush/backend/http/webapp/src/widgets/Calendar/Index.vue new file mode 100644 index 0000000000..36697368b2 --- /dev/null +++ b/platypush/backend/http/webapp/src/widgets/Calendar/Index.vue @@ -0,0 +1,120 @@ + + + + + \ No newline at end of file diff --git a/platypush/backend/http/webapp/src/widgets/DateTime/Index.vue b/platypush/backend/http/webapp/src/widgets/DateTime/Index.vue new file mode 100644 index 0000000000..6be4d955a1 --- /dev/null +++ b/platypush/backend/http/webapp/src/widgets/DateTime/Index.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/platypush/backend/http/webapp/src/widgets/DateTimeWeather/Index.vue b/platypush/backend/http/webapp/src/widgets/DateTimeWeather/Index.vue index 866fd9834c..1d60000bce 100644 --- a/platypush/backend/http/webapp/src/widgets/DateTimeWeather/Index.vue +++ b/platypush/backend/http/webapp/src/widgets/DateTimeWeather/Index.vue @@ -1,30 +1,28 @@