diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e7c022b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}] +charset = utf-8 +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true +end_of_line = lf +max_line_length = 100 + diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..8e815f7 --- /dev/null +++ b/.env.development @@ -0,0 +1,3 @@ +VITE_WEBDAV_URI="http://localhost:8080/dav/" +VITE_OIDC_TOKEN_URL="http://localhost:8080/dex/token" +VITE_OIDC_CLIENT_ID=votelog-webapp diff --git a/.env.production b/.env.production index a57a39f..f13b21a 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,3 @@ -VUE_APP_WEBDAV_URI="https://dav.resolved.ch/" +VITE_WEBDAV_URI="https://dav.resolved.ch/dav/" +VITE_OIDC_TOKEN_URL="https://dav.resolved.ch/dex/token" +VITE_OIDC_CLIENT_ID=votelog-webapp \ No newline at end of file diff --git a/.eslintcache b/.eslintcache new file mode 100644 index 0000000..a6a7b6e --- /dev/null +++ b/.eslintcache @@ -0,0 +1 @@ +[{"/home/pascal/git/votelog/eslint.config.js":"1","/home/pascal/git/votelog/src/Answer.js":"2","/home/pascal/git/votelog/src/components/App.vue":"3","/home/pascal/git/votelog/src/components/EditSubject.vue":"4","/home/pascal/git/votelog/src/components/HeaderRow.vue":"5","/home/pascal/git/votelog/src/components/ImportanceSymbol.vue":"6","/home/pascal/git/votelog/src/components/Index.vue":"7","/home/pascal/git/votelog/src/components/LoginForm.vue":"8","/home/pascal/git/votelog/src/components/NavBar.vue":"9","/home/pascal/git/votelog/src/components/NotFound.vue":"10","/home/pascal/git/votelog/src/components/PercentageValue.vue":"11","/home/pascal/git/votelog/src/components/ShowSubject.vue":"12","/home/pascal/git/votelog/src/components/StatsRow.vue":"13","/home/pascal/git/votelog/src/components/SvgIcon.vue":"14","/home/pascal/git/votelog/src/components/VotesTable.vue":"15","/home/pascal/git/votelog/src/components/VotesTableCategories.vue":"16","/home/pascal/git/votelog/src/components/VotesTableCategory.vue":"17","/home/pascal/git/votelog/src/components/VotesTableSubject.vue":"18","/home/pascal/git/votelog/src/data.js":"19","/home/pascal/git/votelog/src/icons.js":"20","/home/pascal/git/votelog/src/main.js":"21","/home/pascal/git/votelog/src/router.js":"22","/home/pascal/git/votelog/src/store/actions.js":"23","/home/pascal/git/votelog/src/store/getters.js":"24","/home/pascal/git/votelog/src/store/index.js":"25","/home/pascal/git/votelog/src/store/mutations.js":"26","/home/pascal/git/votelog/src/store/token.js":"27","/home/pascal/git/votelog/vite.config.js":"28"},{"size":694,"mtime":1783515231629,"results":"29","hashOfConfig":"30"},{"size":3122,"mtime":1783516914708,"results":"31","hashOfConfig":"30"},{"size":775,"mtime":1783516914735,"results":"32","hashOfConfig":"33"},{"size":4695,"mtime":1783516914779,"results":"34","hashOfConfig":"33"},{"size":2957,"mtime":1783516914763,"results":"35","hashOfConfig":"33"},{"size":627,"mtime":1783516914719,"results":"36","hashOfConfig":"33"},{"size":653,"mtime":1783516914727,"results":"37","hashOfConfig":"33"},{"size":2470,"mtime":1783516914739,"results":"38","hashOfConfig":"33"},{"size":2380,"mtime":1783516914754,"results":"39","hashOfConfig":"33"},{"size":110,"mtime":1783516914689,"results":"40","hashOfConfig":"33"},{"size":1044,"mtime":1783516914734,"results":"41","hashOfConfig":"33"},{"size":3890,"mtime":1783516914761,"results":"42","hashOfConfig":"33"},{"size":1478,"mtime":1783516914749,"results":"43","hashOfConfig":"33"},{"size":228,"mtime":1783516914732,"results":"44","hashOfConfig":"33"},{"size":6369,"mtime":1783516914799,"results":"45","hashOfConfig":"33"},{"size":5903,"mtime":1783516914800,"results":"46","hashOfConfig":"33"},{"size":3198,"mtime":1783516914790,"results":"47","hashOfConfig":"33"},{"size":4878,"mtime":1783516914797,"results":"48","hashOfConfig":"33"},{"size":53851,"mtime":1783516914802,"results":"49","hashOfConfig":"30"},{"size":1005,"mtime":1783516914697,"results":"50","hashOfConfig":"30"},{"size":351,"mtime":1783516914681,"results":"51","hashOfConfig":"30"},{"size":2022,"mtime":1783516914697,"results":"52","hashOfConfig":"30"},{"size":3886,"mtime":1783516914714,"results":"53","hashOfConfig":"30"},{"size":1640,"mtime":1783516914714,"results":"54","hashOfConfig":"30"},{"size":615,"mtime":1783516914717,"results":"55","hashOfConfig":"30"},{"size":1166,"mtime":1783516914708,"results":"56","hashOfConfig":"30"},{"size":1711,"mtime":1783516914735,"results":"57","hashOfConfig":"30"},{"size":381,"mtime":1783515150183,"results":"58","hashOfConfig":"30"},{"filePath":"59","messages":"60","suppressedMessages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1apwypj",{"filePath":"62","messages":"63","suppressedMessages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","suppressedMessages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"13dtlfd",{"filePath":"68","messages":"69","suppressedMessages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","suppressedMessages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/pascal/git/votelog/eslint.config.js",[],[],"/home/pascal/git/votelog/src/Answer.js",[],[],"/home/pascal/git/votelog/src/components/App.vue",[],[],"/home/pascal/git/votelog/src/components/EditSubject.vue",[],[],"/home/pascal/git/votelog/src/components/HeaderRow.vue",[],[],"/home/pascal/git/votelog/src/components/ImportanceSymbol.vue",[],[],"/home/pascal/git/votelog/src/components/Index.vue",[],[],"/home/pascal/git/votelog/src/components/LoginForm.vue",[],[],"/home/pascal/git/votelog/src/components/NavBar.vue",[],[],"/home/pascal/git/votelog/src/components/NotFound.vue",[],[],"/home/pascal/git/votelog/src/components/PercentageValue.vue",[],[],"/home/pascal/git/votelog/src/components/ShowSubject.vue",[],[],"/home/pascal/git/votelog/src/components/StatsRow.vue",[],[],"/home/pascal/git/votelog/src/components/SvgIcon.vue",[],[],"/home/pascal/git/votelog/src/components/VotesTable.vue",[],[],"/home/pascal/git/votelog/src/components/VotesTableCategories.vue",[],[],"/home/pascal/git/votelog/src/components/VotesTableCategory.vue",[],[],"/home/pascal/git/votelog/src/components/VotesTableSubject.vue",[],[],"/home/pascal/git/votelog/src/data.js",[],[],"/home/pascal/git/votelog/src/icons.js",[],[],"/home/pascal/git/votelog/src/main.js",[],[],"/home/pascal/git/votelog/src/router.js",[],[],"/home/pascal/git/votelog/src/store/actions.js",[],[],"/home/pascal/git/votelog/src/store/getters.js",[],[],"/home/pascal/git/votelog/src/store/index.js",[],[],"/home/pascal/git/votelog/src/store/mutations.js",[],[],"/home/pascal/git/votelog/src/store/token.js",[],[],"/home/pascal/git/votelog/vite.config.js",[],[]] \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 0666e3a..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,98 +0,0 @@ -module.exports = { - extends: [ - 'plugin:vue/vue3-essential', - 'plugin:vue/recommended', - 'plugin:prettier-vue/recommended', - ], - - plugins: ['prettier'], - - env: { - node: true, - }, - - parserOptions: { - parser: '@babel/eslint-parser', - }, - - settings: { - 'prettier-vue': { - // Settings for how to process Vue SFC Blocks - SFCBlocks: { - /** - * Use prettier to process `