diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 631d9ba..78f6793 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -14,7 +14,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 22.x - name: Cache npm dependencies uses: actions/cache@v2 @@ -41,7 +41,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 22.x - name: Cache npm dependencies uses: actions/cache@v2 diff --git a/.nvmrc b/.nvmrc index 4a9c19c..53d1c14 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v14.21.3 +v22 diff --git a/frontend/HistoryViewer.vue b/frontend/HistoryViewer.vue index fd15df6..d4b8357 100644 --- a/frontend/HistoryViewer.vue +++ b/frontend/HistoryViewer.vue @@ -28,6 +28,7 @@ v-if="modes.length > 1" class="btn-group" data-toggle="buttons" + data-bs-toggle="buttons" > \n\n\n\n\n","/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2023 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n\nexport default {\n date: 'Date',\n message: 'Message',\n author: 'Author',\n no_entry: 'No history entry yet.',\n};\n","/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2023 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n\nexport default {\n date: 'Date',\n message: 'Message',\n author: 'Auteur',\n no_entry: \"Aucune entrée d'historique pour le moment.\",\n};\n","/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2021 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n\nimport {createI18n} from 'vue-i18n';\nimport en from \"./locales/en\";\nimport fr from \"./locales/fr\";\n\nexport const i18n = createI18n({\n locale: document.documentElement.lang || 'en',\n messages: {\n en,\n fr,\n },\n});\n","/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2021 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n/* eslint-disable vue/prefer-import-from-vue */\nimport {createApp} from '@vue/runtime-dom';\nimport HistoryViewer from './HistoryViewer.vue';\nimport {i18n} from './i18n';\nimport {filterXssAndFormat} from './utils';\n\n\ninterface Props extends Record {\n url: string,\n pageSize?: number,\n tags?: string[],\n onItemRenderTable?: CallableFunction,\n onHeadersRenderTable?: CallableFunction,\n onItemRenderHorizontalTimeline?: CallableFunction,\n onItemRenderVerticalTimeline?: CallableFunction,\n onHistoryEmptyRender?: CallableFunction,\n}\n\ndocument.querySelectorAll('.history-viewer').forEach((elem) => {\n const props: Props = {url: \"\", ...elem.dataset};\n for (const propName of [\n 'onItemRenderTable',\n 'onHeadersRenderTable',\n 'onItemRenderHorizontalTimeline',\n 'onItemRenderVerticalTimeline',\n 'onHistoryEmptyRender',\n ] as string[]) {\n if (propName in props) {\n const customFunctionName = props[propName] as string;\n // @ts-ignore: get the function from global scope\n props[propName] = window[customFunctionName] as CallableFunction;\n }\n }\n if (typeof elem.dataset.modes !== 'undefined') {\n props.modes = elem.dataset.modes.split(',');\n }\n createApp(HistoryViewer, props).use(i18n).mount(elem);\n});\n\n// Expose util for custom rendering functions\nexport {\n filterXssAndFormat,\n};\n"],"names":["filterXssAndFormat","value","p","_sfc_main$2","defineComponent","_hoisted_7","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_createElementBlock","_hoisted_1","_openBlock","_hoisted_3","_hoisted_2","_createElementVNode","_toDisplayString","_hoisted_4","_Fragment","_renderList","entry","index","_hoisted_5","_hoisted_6","_hoisted_8","_sfc_main$1","mode","_normalizeClass","_createTextVNode","_hoisted_9","_sfc_main","TableHistory","TimelineHistory","defaultMode","response","e","_hoisted_10","_hoisted_12","_hoisted_13","buttonMode","$event","_createCommentVNode","_hoisted_11","_createBlock","_resolveDynamicComponent","en","fr","i18n","createI18n","elem","props","propName","customFunctionName","createApp","HistoryViewer"],"mappings":"kWA0BO,SAASA,EAAoBC,EAAwB,CAC1D,OAAKA,EACcA,EAAM,SAAA,EAEtB,QAAQ,WAAY;AAAA,CAAI,EAExB,QAAQ,KAAM,MAAM,EAAE,QAAQ,KAAM,MAAM,EAE1C,MAAM,SAAS,EAEA,IAASC,GAAA,MAAQA,EAAE,QAAQ,MAAO,QAAQ,EAAI,OAAQ,EAAE,EAAE,KAAK;AAAA;AAAA,CAAM,EATpE,EAUrB,CCoCA,MAAAC,EAAeC,kBAAgB,CAC7B,KAAM,eACN,MAAO,CACL,QAAS,CACP,KAAM,MACN,SAAU,EACZ,EACA,aAAc,CACZ,KAAM,SACN,QAAS,IACX,EACA,gBAAiB,CACf,KAAM,SACN,QAAS,IACX,EACA,qBAAsB,CACpB,KAAM,SACN,QAAS,IACX,CACF,EACA,KAAM,UAAY,CACT,MAAA,CAEL,gBAAiB,KAAK,gBAAkB,KAAK,gBAAgB,KAAK,OAAO,EAAI,GAC7E,aAAc,KAAK,aAAe,KAAK,QAAQ,IAAI,KAAK,YAAY,EAAE,KAAK,EAAE,EAAI,CAAC,EAClF,cAAe,KAAK,qBAAuB,KAAK,qBAAqB,OAAO,EAAI,EAAA,CAEpF,EACA,QAAS,CAAC,mBAAAJ,CAAkB,CAC9B,CAAC,gLA3CmBK,EAAA,CAAA,WAAA,qCAhCFC,EAAeC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,sBAA7BC,qBAMQ,QAAAC,EAAA,CALNP,EAAA,iBAQ0BQ,EAAA,UAAA,EAAhBF,EAAe,mBAAA,QAAA,CAAA,IAAA,EAGd,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EAAMC,CAAQ,EAEnCD,EAAAC,CAAQ,EAAI,OAAOC,CAAkB,CAC7C,CAEE,OAAOH,EAAK,QAAQ,MAAU,MAChCC,EAAM,MAAQD,EAAK,QAAQ,MAAM,MAAM,GAAG,GAE5CI,YAAUC,EAAeJ,CAAK,EAAE,IAAIH,CAAI,EAAE,MAAME,CAAI,CACtD,CAAC"} \ No newline at end of file +{"version":3,"file":"osis-history.umd.min.js","sources":["../../../frontend/utils.ts","../../../frontend/components/TableHistory.vue","../../../frontend/components/TimelineHistory.vue","../../../frontend/HistoryViewer.vue","../../../frontend/locales/en.ts","../../../frontend/locales/fr.ts","../../../frontend/i18n.ts","../../../frontend/main.ts"],"sourcesContent":["/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2022 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n\nexport function filterXssAndFormat (value: string) : string {\n if (!value) return '';\n const paragraphs = value.toString()\n // replace newlines (CR and CRLF with only LF)\n .replace(/\\r\\n|\\r/g, '\\n')\n // escape tags\n .replace(//g, '>')\n // split double newlines to paragraphs\n .split(/\\n{2,}/g);\n // replace simple newlines with
and join with element with

\n return paragraphs.map(p => '

' + p.replace(/\\n/g, '
') + '

', '').join('\\n\\n');\n}\n","\n\n\n\n\n\n","\n\n\n\n\n\n","\n\n \n
\n \n \n {{ error }}\n \n \n
\n\n\n\n\n\n","/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2023 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n\nexport default {\n date: 'Date',\n message: 'Message',\n author: 'Author',\n no_entry: 'No history entry yet.',\n};\n","/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2023 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n\nexport default {\n date: 'Date',\n message: 'Message',\n author: 'Auteur',\n no_entry: \"Aucune entrée d'historique pour le moment.\",\n};\n","/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2021 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n\nimport {createI18n} from 'vue-i18n';\nimport en from \"./locales/en\";\nimport fr from \"./locales/fr\";\n\nexport const i18n = createI18n({\n locale: document.documentElement.lang || 'en',\n messages: {\n en,\n fr,\n },\n});\n","/*\n *\n * OSIS stands for Open Student Information System. It's an application\n * designed to manage the core business of higher education institutions,\n * such as universities, faculties, institutes and professional schools.\n * The core business involves the administration of students, teachers,\n * courses, programs and so on.\n *\n * Copyright (C) 2015-2021 Université catholique de Louvain (http://www.uclouvain.be)\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of this license - GNU General Public License - is available\n * at the root of the source code of this program. If not,\n * see http://www.gnu.org/licenses/.\n *\n */\n/* eslint-disable vue/prefer-import-from-vue */\nimport {createApp} from '@vue/runtime-dom';\nimport HistoryViewer from './HistoryViewer.vue';\nimport {i18n} from './i18n';\nimport {filterXssAndFormat} from './utils';\n\n\ninterface Props extends Record {\n url: string,\n pageSize?: number,\n tags?: string[],\n onItemRenderTable?: CallableFunction,\n onHeadersRenderTable?: CallableFunction,\n onItemRenderHorizontalTimeline?: CallableFunction,\n onItemRenderVerticalTimeline?: CallableFunction,\n onHistoryEmptyRender?: CallableFunction,\n}\n\ndocument.querySelectorAll('.history-viewer').forEach((elem) => {\n const props: Props = {url: \"\", ...elem.dataset};\n for (const propName of [\n 'onItemRenderTable',\n 'onHeadersRenderTable',\n 'onItemRenderHorizontalTimeline',\n 'onItemRenderVerticalTimeline',\n 'onHistoryEmptyRender',\n ] as string[]) {\n if (propName in props) {\n const customFunctionName = props[propName] as string;\n // @ts-ignore: get the function from global scope\n props[propName] = window[customFunctionName] as CallableFunction;\n }\n }\n if (typeof elem.dataset.modes !== 'undefined') {\n props.modes = elem.dataset.modes.split(',');\n }\n createApp(HistoryViewer, props).use(i18n).mount(elem);\n});\n\n// Expose util for custom rendering functions\nexport {\n filterXssAndFormat,\n};\n"],"names":["filterXssAndFormat","value","p","_sfc_main$2","defineComponent","_hoisted_7","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_createElementBlock","_hoisted_1","_openBlock","_hoisted_3","_hoisted_2","_createElementVNode","_toDisplayString","_hoisted_4","_Fragment","_renderList","entry","index","_hoisted_5","_hoisted_6","_hoisted_8","_sfc_main$1","mode","_normalizeClass","_createTextVNode","_hoisted_9","_sfc_main","TableHistory","TimelineHistory","defaultMode","response","e","_withScopeId","_hoisted_10","_hoisted_12","_hoisted_13","buttonMode","$event","_createCommentVNode","_hoisted_11","_createBlock","_resolveDynamicComponent","en","fr","i18n","createI18n","elem","props","propName","customFunctionName","createApp","HistoryViewer"],"mappings":"kWA0BO,SAASA,EAAoBC,EAAwB,CAC1D,OAAKA,EACcA,EAAM,SAAA,EAEtB,QAAQ,WAAY;AAAA,CAAI,EAExB,QAAQ,KAAM,MAAM,EAAE,QAAQ,KAAM,MAAM,EAE1C,MAAM,SAAS,EAEA,IAASC,GAAA,MAAQA,EAAE,QAAQ,MAAO,QAAQ,EAAI,OAAQ,EAAE,EAAE,KAAK;AAAA;AAAA,CAAM,EATpE,EAUrB,CCoCA,MAAAC,EAAeC,kBAAgB,CAC7B,KAAM,eACN,MAAO,CACL,QAAS,C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A,UAAA,EAAAF,EAAAA,mBAAA,OAAA6B,EAAAvB,kBAAAZ,EAAA,KAAA,EAAA,CAAA,IAAAQ,YASqB,EAAAgC,cAAAC,EAAAA,wBAAAzC,EAAA,IAAA,EAAA,CAChB,IAAA,EACA,QAAAA,EAAA,QACA,WAAAA,EAAA,WACA,iBAAgBA,EAAE,OAAoB,eAAAA,EAAA,kBAAAA,EAAA,WAAAA,EAAA,+BAAAA,EAAA,6BAAA,oBAAAA,EAAA,8NClEhC0C,EAAA,CACb,KAAM,OACN,QAAS,UACT,OAAQ,SACR,SAAU,uBACZ,ECLeC,EAAA,CACb,KAAM,OACN,QAAS,UACT,OAAQ,SACR,SAAU,4CACZ,ECDaC,EAAOC,EAAAA,WAAW,CAC7B,OAAQ,SAAS,gBAAgB,MAAQ,KACzC,SAAU,CACR,GAAAH,EACA,GAAAC,CACF,CACF,CAAC,ECOD,SAAS,iBAA8B,iBAAiB,EAAE,QAASG,GAAS,CAC1E,MAAMC,EAAe,CAAC,IAAK,GAAI,GAAGD,EAAK,SACvC,UAAWE,IAAY,CACrB,oBACA,uBACA,iCACA,+BACA,sBAAA,EAEA,GAAIA,KAAYD,EAAO,CACf,MAAAE,EAAqBF,EAAMC,CAAQ,EAEnCD,EAAAC,CAAQ,EAAI,OAAOC,CAAkB,CAC7C,CAEE,OAAOH,EAAK,QAAQ,MAAU,MAChCC,EAAM,MAAQD,EAAK,QAAQ,MAAM,MAAM,GAAG,GAE5CI,YAAUC,EAAeJ,CAAK,EAAE,IAAIH,CAAI,EAAE,MAAME,CAAI,CACtD,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 14b874c..c46cc90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "osis-history", - "version": "0.4.3", + "version": "0.4.4", "private": true, "scripts": { "build": "vite build --outDir osis_history/static/osis_history --mode production --sourcemap true", diff --git a/setup.py b/setup.py index 4ee3018..ac842e5 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ setup( name='OSIS History', - version='0.4.3', + version='0.4.4', description='History management API and UI', url='http://github.com/uclouvain/osis-history', author='Université catholique de Louvain',