From 4423b69f3fa0246d769c31a58f5f4698bfc0e981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Podgor=C5=A1ek?= Date: Sat, 16 Dec 2023 01:53:05 +0100 Subject: [PATCH] Dokumentacija etherpad APIja, popravki, preurejen obrazec za urejanje --- doc/api.org | 15 -------- doc/etherpad_api.rest | 1 + doc/yufu_concept_api.rest | 1 + nuxt/{.env.dist => .env} | 2 +- nuxt/.gitignore | 2 +- nuxt/components/DodajPojem.vue | 6 ++-- nuxt/components/Pojem.vue | 27 ++++++-------- nuxt/components/PojemForm.vue | 35 ++++++++++--------- nuxt/composables/etherpadApi.js | 21 +++++++++++ nuxt/nuxt.config.js | 1 - nuxt/stores/pojmi.js | 5 ++- web/modules/custom/etherpad_api/README.md | 20 +++++++++++ web/modules/custom/etherpad_api/doc/api.rest | 26 ++++++++++++++ .../custom/etherpad_api/src/Client.php | 2 +- .../src/Controller/EtherpadApiController.php | 2 +- .../yufu_concept/tests/local-emacs-test.rest | 2 +- 16 files changed, 109 insertions(+), 59 deletions(-) delete mode 100644 doc/api.org create mode 120000 doc/etherpad_api.rest create mode 120000 doc/yufu_concept_api.rest rename nuxt/{.env.dist => .env} (68%) create mode 100644 nuxt/composables/etherpadApi.js create mode 100644 web/modules/custom/etherpad_api/README.md create mode 100644 web/modules/custom/etherpad_api/doc/api.rest diff --git a/doc/api.org b/doc/api.org deleted file mode 100644 index cf1142e..0000000 --- a/doc/api.org +++ /dev/null @@ -1,15 +0,0 @@ -# -*- restclient -*- - -########################## -# YUFU API dokumentacija # -########################## - -# Poganjamo z restclient major mode-om v emacsu - -# Ustvari nov pad -POST https://yufu-manifest.ddev.site/etherpad-api/createPad?padID=d2d479bf-b3cb-455a-b7db-5d53c31d1fa2 -Content-Type: application/x-www-form-urlencoded -text=While post-communist, post-socialist and post-Yugoslav discourses merely reinforce the appearance of an unchanging and unstable present with a more or less accurate expression of the situation, Yugofuturism follows the example of other ethnofuturist movements such as Afrofuturism, Sinofuturism, Baltic Ethnofuturism and Hungarofuturism, which tactically empower peripheral identities and subversively affirm individual cultural curiosities. - -# Brisi vsebino pada -GET https://yufu-manifest.ddev.site/etherpad-api/deletePad?padID=d2d479bf-b3cb-455a-b7db-5d53c31d1fa2 \ No newline at end of file diff --git a/doc/etherpad_api.rest b/doc/etherpad_api.rest new file mode 120000 index 0000000..b5c9422 --- /dev/null +++ b/doc/etherpad_api.rest @@ -0,0 +1 @@ +../web/modules/custom/etherpad_api/doc/api.rest \ No newline at end of file diff --git a/doc/yufu_concept_api.rest b/doc/yufu_concept_api.rest new file mode 120000 index 0000000..3894aa6 --- /dev/null +++ b/doc/yufu_concept_api.rest @@ -0,0 +1 @@ +../web/modules/custom/yufu_concept/tests/local-emacs-test.rest \ No newline at end of file diff --git a/nuxt/.env.dist b/nuxt/.env similarity index 68% rename from nuxt/.env.dist rename to nuxt/.env index cb0e6c1..95952a9 100644 --- a/nuxt/.env.dist +++ b/nuxt/.env @@ -2,4 +2,4 @@ BASE_URL="https://yufu-manifest.ddev.site" JSONAPI_PATH="/jsonapi" FILE_PATH="/sites/default/files" ETHERPAD_URL="https://pisi.kompot.si" -ETHERPAD_API_URL="https://yufu-manifest.ddev.site/etherpad-api" +ETHERPAD_PREFIX="yufu-" diff --git a/nuxt/.gitignore b/nuxt/.gitignore index 438cb08..78d5f54 100644 --- a/nuxt/.gitignore +++ b/nuxt/.gitignore @@ -4,5 +4,5 @@ node_modules .nitro .cache .output -.env +.env.local dist diff --git a/nuxt/components/DodajPojem.vue b/nuxt/components/DodajPojem.vue index 7f555f1..049939c 100644 --- a/nuxt/components/DodajPojem.vue +++ b/nuxt/components/DodajPojem.vue @@ -1,6 +1,6 @@ diff --git a/nuxt/components/PojemForm.vue b/nuxt/components/PojemForm.vue index 6e8c084..b72b6de 100644 --- a/nuxt/components/PojemForm.vue +++ b/nuxt/components/PojemForm.vue @@ -1,28 +1,30 @@