diff --git a/Caddyfile b/Caddyfile index a24ecb85f..19c18a3b0 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,5 +1,6 @@ { auto_https off + admin off } :80 { diff --git a/docs/docs/getting-started/install.md b/docs/docs/getting-started/install.md index 9be2ed5e7..fb5295712 100644 --- a/docs/docs/getting-started/install.md +++ b/docs/docs/getting-started/install.md @@ -41,12 +41,12 @@ services: ## Env Variables -| Variables | default | description | -| ----------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -| db_type | sqlite | The database type to be used. Current Options 'sqlite' | -| mealie_port | 9000 | The port exposed by mealie. **do not change this if you're running in docker** If you'd like to use another port, map 9000 to another port of the host. | -| api_docs | True | Turns on/off access to the API documentation locally. | -| TZ | UTC | You should set your time zone accordingly so the date/time features work correctly | +| Variables | default | description | +| ----------- | ------- | ----------------------------------------------------------------------------------- | +| db_type | sqlite | The database type to be used. Current Options 'sqlite' | +| mealie_port | 9000 | The port exposed by backend API. **do not change this if you're running in docker** | +| api_docs | True | Turns on/off access to the API documentation locally. | +| TZ | UTC | You should set your time zone accordingly so the date/time features work correctly | ## Deployed as a Python Application diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 3c6f48bcc..908ef3e0a 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -86,6 +86,8 @@ export default { search: false, }), methods: { + // For Later! + /** * Checks if 'system' is set for dark mode and then sets the corrisponding value for vuetify */ diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js index 0082dba12..0caf3b76d 100644 --- a/frontend/src/api/index.js +++ b/frontend/src/api/index.js @@ -7,8 +7,8 @@ import migration from "./migration"; import myUtils from "./upload"; import category from "./category"; import meta from "./meta"; -import users from "./users" - +import users from "./users"; +import signUps from "./signUps"; export default { recipes: recipe, @@ -20,5 +20,6 @@ export default { utils: myUtils, categories: category, meta: meta, - users: users + users: users, + signUps: signUps, }; diff --git a/frontend/src/api/signUps.js b/frontend/src/api/signUps.js new file mode 100644 index 000000000..1948f4496 --- /dev/null +++ b/frontend/src/api/signUps.js @@ -0,0 +1,30 @@ +import { baseURL } from "./api-utils"; +import { apiReq } from "./api-utils"; + +const signUpPrefix = baseURL + "users/sign-ups"; + +const signUpURLs = { + all: `${signUpPrefix}`, + createToken: `${signUpPrefix}`, + deleteToken: token => `${signUpPrefix}/${token}`, + createUser: token => `${signUpPrefix}/${token}`, +}; + +export default { + async getAll() { + let response = await apiReq.get(signUpURLs.all); + return response.data; + }, + async createToken(data) { + let response = await apiReq.post(signUpURLs.createToken, data); + return response.data; + }, + async deleteToken(token) { + let response = await apiReq.delete(signUpURLs.deleteToken(token)); + return response.data; + }, + async createUser(token, data) { + let response = await apiReq.post(signUpURLs.createUser(token), data); + return response.data; + }, +}; diff --git a/frontend/src/api/users.js b/frontend/src/api/users.js index 90123e733..14881e33c 100644 --- a/frontend/src/api/users.js +++ b/frontend/src/api/users.js @@ -7,6 +7,7 @@ const authURLs = { token: `${authPrefix}/token`, }; + const usersURLs = { users: `${userPrefix}`, self: `${userPrefix}/self`, diff --git a/frontend/src/components/Admin/ManageUsers/TheGroupTable.vue b/frontend/src/components/Admin/ManageUsers/TheGroupTable.vue new file mode 100644 index 000000000..d81ec2e02 --- /dev/null +++ b/frontend/src/components/Admin/ManageUsers/TheGroupTable.vue @@ -0,0 +1,252 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/components/Admin/ManageUsers/TheSignUpTable.vue b/frontend/src/components/Admin/ManageUsers/TheSignUpTable.vue new file mode 100644 index 000000000..77abffc93 --- /dev/null +++ b/frontend/src/components/Admin/ManageUsers/TheSignUpTable.vue @@ -0,0 +1,239 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/components/Admin/ManageUsers/TheUserTable.vue b/frontend/src/components/Admin/ManageUsers/TheUserTable.vue new file mode 100644 index 000000000..862e796ab --- /dev/null +++ b/frontend/src/components/Admin/ManageUsers/TheUserTable.vue @@ -0,0 +1,252 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/components/Admin/Theme/NewThemeDialog.vue b/frontend/src/components/Admin/Theme/NewThemeDialog.vue index f9b7f8d74..af072170b 100644 --- a/frontend/src/components/Admin/Theme/NewThemeDialog.vue +++ b/frontend/src/components/Admin/Theme/NewThemeDialog.vue @@ -1,9 +1,22 @@