From 444acaf046dd0c030687ab946687b2b07359ed18 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 3 Jan 2021 12:29:41 +0100 Subject: [PATCH] Refactored to be focues on vue.js --- juggl-vue/.browserslistrc => .browserslistrc | 0 juggl-vue/.eslintrc.js => .eslintrc.js | 0 .gitignore | 36 +- juggl-vue/README.md => README.md | 0 juggl-vue/babel.config.js => babel.config.js | 0 juggl-vue/.gitignore | 23 - .../src/components/base/BaseUserDropdown.vue | 22 - .../components/juggl/JugglProjectsPanel.vue | 74 - .../src/components/juggl/JugglRecordsList.vue | 97 - juggl-vue/src/router/index.js | 55 - juggl-vue/src/services/api.service.js | 49 - juggl-vue/src/services/helper.service.js | 111 - juggl-vue/src/services/juggl.service.js | 98 - juggl-vue/src/services/path.service.js | 144 - package-lock.json | 13332 ++++++++++++++++ juggl-vue/package.json => package.json | 6 +- public/api/addProject.php | 30 + public/api/addRecordTag.php | 26 + public/api/addTagToRecord.php | 26 + public/api/config/config.php | 12 + public/api/config/config.php.sample | 8 + public/api/endRecord.php | 29 + public/api/getProjects.php | 29 + public/api/getRecord.php | 33 + public/api/getRecordTags.php | 29 + public/api/getRecords.php | 38 + public/api/getRunningRecords.php | 29 + public/api/getUser.php | 29 + public/api/removeRecord.php | 29 + public/api/removeTagFromRecord.php | 26 + public/api/services/apiBranch.inc.php | 45 + public/api/services/authenticator.inc.php | 20 + public/api/services/basicEnum.inc.php | 33 + public/api/services/dbOperations.inc.php | 292 + public/api/services/jsonBuilder.inc.php | 105 + public/api/services/jugglDbApi.inc.php | 358 + public/api/services/paramCleaner.inc.php | 50 + public/api/services/requestTypes.inc.php | 20 + public/api/services/responses.inc.php | 38 + public/api/startRecord.php | 49 + {juggl-vue/public => public}/favicon.ico | Bin {juggl-vue/public => public}/index.html | 0 {juggl-vue/src => src}/App.vue | 6 +- {juggl-vue/src => src}/assets/logo.png | Bin .../components/base/BaseContainer.vue | 2 +- .../src => src}/components/base/BaseLogo.vue | 0 .../src => src}/components/base/BaseTitle.vue | 0 src/components/base/BaseUserDropdown.vue | 31 + .../components/forms/FormLogin.vue | 11 +- src/components/forms/FormProjectAdd.vue | 73 + src/components/forms/FormRecordDetails.vue | 130 + src/components/juggl/JugglProjectsPanel.vue | 68 + src/components/juggl/JugglRecordsList.vue | 159 + .../components/layout/LayoutMinimal.vue | 0 .../components/layout/LayoutNavbarPrivate.vue | 44 +- {juggl-vue/src => src}/main.js | 6 +- src/router/index.js | 62 + src/services/api.service.js | 49 + src/services/helper.service.js | 140 + src/services/juggl.service.js | 140 + src/services/path.service.js | 141 + src/store/index.js | 17 + .../index.js => src/store/modules/juggl.js | 120 +- {juggl-vue/src => src}/style/theme.sass | 90 +- {juggl-vue/src => src}/views/Home.vue | 40 +- {juggl-vue/src => src}/views/Login.vue | 4 +- src/views/RecordDetails.vue | 43 + 67 files changed, 16034 insertions(+), 772 deletions(-) rename juggl-vue/.browserslistrc => .browserslistrc (100%) rename juggl-vue/.eslintrc.js => .eslintrc.js (100%) rename juggl-vue/README.md => README.md (100%) rename juggl-vue/babel.config.js => babel.config.js (100%) delete mode 100644 juggl-vue/.gitignore delete mode 100644 juggl-vue/src/components/base/BaseUserDropdown.vue delete mode 100644 juggl-vue/src/components/juggl/JugglProjectsPanel.vue delete mode 100644 juggl-vue/src/components/juggl/JugglRecordsList.vue delete mode 100644 juggl-vue/src/router/index.js delete mode 100644 juggl-vue/src/services/api.service.js delete mode 100644 juggl-vue/src/services/helper.service.js delete mode 100644 juggl-vue/src/services/juggl.service.js delete mode 100644 juggl-vue/src/services/path.service.js create mode 100644 package-lock.json rename juggl-vue/package.json => package.json (85%) create mode 100644 public/api/addProject.php create mode 100644 public/api/addRecordTag.php create mode 100644 public/api/addTagToRecord.php create mode 100644 public/api/config/config.php create mode 100644 public/api/config/config.php.sample create mode 100644 public/api/endRecord.php create mode 100644 public/api/getProjects.php create mode 100644 public/api/getRecord.php create mode 100644 public/api/getRecordTags.php create mode 100644 public/api/getRecords.php create mode 100644 public/api/getRunningRecords.php create mode 100644 public/api/getUser.php create mode 100644 public/api/removeRecord.php create mode 100644 public/api/removeTagFromRecord.php create mode 100644 public/api/services/apiBranch.inc.php create mode 100644 public/api/services/authenticator.inc.php create mode 100644 public/api/services/basicEnum.inc.php create mode 100644 public/api/services/dbOperations.inc.php create mode 100644 public/api/services/jsonBuilder.inc.php create mode 100644 public/api/services/jugglDbApi.inc.php create mode 100644 public/api/services/paramCleaner.inc.php create mode 100644 public/api/services/requestTypes.inc.php create mode 100644 public/api/services/responses.inc.php create mode 100644 public/api/startRecord.php rename {juggl-vue/public => public}/favicon.ico (100%) rename {juggl-vue/public => public}/index.html (100%) rename {juggl-vue/src => src}/App.vue (63%) rename {juggl-vue/src => src}/assets/logo.png (100%) rename {juggl-vue/src => src}/components/base/BaseContainer.vue (89%) rename {juggl-vue/src => src}/components/base/BaseLogo.vue (100%) rename {juggl-vue/src => src}/components/base/BaseTitle.vue (100%) create mode 100644 src/components/base/BaseUserDropdown.vue rename {juggl-vue/src => src}/components/forms/FormLogin.vue (90%) create mode 100644 src/components/forms/FormProjectAdd.vue create mode 100644 src/components/forms/FormRecordDetails.vue create mode 100644 src/components/juggl/JugglProjectsPanel.vue create mode 100644 src/components/juggl/JugglRecordsList.vue rename {juggl-vue/src => src}/components/layout/LayoutMinimal.vue (100%) rename {juggl-vue/src => src}/components/layout/LayoutNavbarPrivate.vue (56%) rename {juggl-vue/src => src}/main.js (86%) create mode 100644 src/router/index.js create mode 100644 src/services/api.service.js create mode 100644 src/services/helper.service.js create mode 100644 src/services/juggl.service.js create mode 100644 src/services/path.service.js create mode 100644 src/store/index.js rename juggl-vue/src/store/index.js => src/store/modules/juggl.js (59%) rename {juggl-vue/src => src}/style/theme.sass (52%) rename {juggl-vue/src => src}/views/Home.vue (50%) rename {juggl-vue/src => src}/views/Login.vue (92%) create mode 100644 src/views/RecordDetails.vue diff --git a/juggl-vue/.browserslistrc b/.browserslistrc similarity index 100% rename from juggl-vue/.browserslistrc rename to .browserslistrc diff --git a/juggl-vue/.eslintrc.js b/.eslintrc.js similarity index 100% rename from juggl-vue/.eslintrc.js rename to .eslintrc.js diff --git a/.gitignore b/.gitignore index 0041fbb..f15ec9c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,30 @@ -juggl/config/config.txt -juggl/config/config.path -juggl/config/config.php -graphics -.vscode -juggl-vue/package-lock.json +.DS_Store +node_modules +/dist + + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +juggl/config/config.txt +juggl/config/config.path +juggl/config/config.php +graphics +.vscode +juggl-vue/package-lock.json diff --git a/juggl-vue/README.md b/README.md similarity index 100% rename from juggl-vue/README.md rename to README.md diff --git a/juggl-vue/babel.config.js b/babel.config.js similarity index 100% rename from juggl-vue/babel.config.js rename to babel.config.js diff --git a/juggl-vue/.gitignore b/juggl-vue/.gitignore deleted file mode 100644 index 403adbc..0000000 --- a/juggl-vue/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -.DS_Store -node_modules -/dist - - -# local env files -.env.local -.env.*.local - -# Log files -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? diff --git a/juggl-vue/src/components/base/BaseUserDropdown.vue b/juggl-vue/src/components/base/BaseUserDropdown.vue deleted file mode 100644 index e40e9cb..0000000 --- a/juggl-vue/src/components/base/BaseUserDropdown.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - - - \ No newline at end of file diff --git a/juggl-vue/src/components/juggl/JugglProjectsPanel.vue b/juggl-vue/src/components/juggl/JugglProjectsPanel.vue deleted file mode 100644 index 663ec3d..0000000 --- a/juggl-vue/src/components/juggl/JugglProjectsPanel.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - - - \ No newline at end of file diff --git a/juggl-vue/src/components/juggl/JugglRecordsList.vue b/juggl-vue/src/components/juggl/JugglRecordsList.vue deleted file mode 100644 index a7fb268..0000000 --- a/juggl-vue/src/components/juggl/JugglRecordsList.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - - - \ No newline at end of file + diff --git a/juggl-vue/src/assets/logo.png b/src/assets/logo.png similarity index 100% rename from juggl-vue/src/assets/logo.png rename to src/assets/logo.png diff --git a/juggl-vue/src/components/base/BaseContainer.vue b/src/components/base/BaseContainer.vue similarity index 89% rename from juggl-vue/src/components/base/BaseContainer.vue rename to src/components/base/BaseContainer.vue index 90ea603..2345abf 100644 --- a/juggl-vue/src/components/base/BaseContainer.vue +++ b/src/components/base/BaseContainer.vue @@ -1,7 +1,7 @@