From 5251b7594940c8959bb8bfec3a4f7b8884d03788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Sat, 30 Sep 2023 20:14:02 +0200 Subject: [PATCH] WIP etherpad integracija --- config/sync/core.extension.yml | 1 + nuxt/.env.dist | 2 + nuxt/components/EtherpadTextarea.vue | 24 +++++ nuxt/components/PojemForm.vue | 2 +- nuxt/composables/api.js | 3 +- nuxt/nuxt.config.js | 4 +- nuxt/package-lock.json | 24 +++-- nuxt/public/css/stajl.css | 4 + .../config/schema/etherpad_api.schema.yml | 11 +++ .../custom/etherpad_api/etherpad_api.info.yml | 6 ++ .../custom/etherpad_api/etherpad_api.install | 96 +++++++++++++++++++ .../etherpad_api/etherpad_api.links.menu.yml | 6 ++ .../etherpad_api/etherpad_api.routing.yml | 15 +++ .../etherpad_api/etherpad_api.services.yml | 5 + .../src/Controller/EtherpadApiController.php | 51 ++++++++++ .../etherpad_api/src/Form/SettingsForm.php | 68 +++++++++++++ .../EtherpadAPIPathProcessor.php | 25 +++++ 17 files changed, 336 insertions(+), 11 deletions(-) create mode 100644 nuxt/components/EtherpadTextarea.vue create mode 100644 web/modules/custom/etherpad_api/config/schema/etherpad_api.schema.yml create mode 100644 web/modules/custom/etherpad_api/etherpad_api.info.yml create mode 100644 web/modules/custom/etherpad_api/etherpad_api.install create mode 100644 web/modules/custom/etherpad_api/etherpad_api.links.menu.yml create mode 100644 web/modules/custom/etherpad_api/etherpad_api.routing.yml create mode 100644 web/modules/custom/etherpad_api/etherpad_api.services.yml create mode 100644 web/modules/custom/etherpad_api/src/Controller/EtherpadApiController.php create mode 100644 web/modules/custom/etherpad_api/src/Form/SettingsForm.php create mode 100644 web/modules/custom/etherpad_api/src/PathProcessor/EtherpadAPIPathProcessor.php diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 75d87ba..b2c75d4 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -15,6 +15,7 @@ module: dblog: 0 dynamic_page_cache: 0 editor: 0 + etherpad_api: 0 field: 0 field_ui: 0 file: 0 diff --git a/nuxt/.env.dist b/nuxt/.env.dist index bb7a59d..fb8ea11 100644 --- a/nuxt/.env.dist +++ b/nuxt/.env.dist @@ -1,3 +1,5 @@ BASE_URL="https://yufu-manifest.ddev.site" JSONAPI_PATH="/jsonapi" FILE_PATH="/sites/default/files" +ETHERPAD_URL="https://pisi.kompot.si/" +ETHERPAD_PREFIX="yufu-" diff --git a/nuxt/components/EtherpadTextarea.vue b/nuxt/components/EtherpadTextarea.vue new file mode 100644 index 0000000..d302fc2 --- /dev/null +++ b/nuxt/components/EtherpadTextarea.vue @@ -0,0 +1,24 @@ + + +