11 |
navigate(viewAll)}>
12 |
13 |
14 |
15 |
View All
16 |
17 |
18 |
Displaying {total} of {results} {alias}.
19 |
20 |
21 | );
22 | };
23 |
24 | export default DashboardModuleFooter;
--------------------------------------------------------------------------------
/client/src/components/molecules/ConfirmModal/ConfirmModalBody/ConfirmModalBody.css:
--------------------------------------------------------------------------------
1 | /***
2 | * Copyright (C) Rodolfo Herrera Hernandez. All rights reserved.
3 | * Licensed under the MIT license. See LICENSE file in the project root
4 | * for full license information.
5 | *
6 | * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
7 | *
8 | * For related information - https://github.com/rodyherrera/Quantum/
9 | *
10 | * All your applications, just in one place.
11 | *
12 | * =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
13 | ****/
14 |
15 | .Confirm-Modal-Body-Container{
16 | display: flex;
17 | border: 1px solid #b6b6b6;
18 | border-left: unset;
19 | border-right: unset;
20 | flex-direction: column;
21 | gap: 2rem;
22 | padding: 1.5rem;
23 | }
24 |
25 | .Confirm-Modal-Input-Title{
26 | user-select: none;
27 | }
28 |
29 | .Confirm-Modal-Input-Container{
30 | font-size: .95rem;
31 | }
32 |
33 | .Confirm-Modal-Input-Container{
34 | display: flex;
35 | flex-direction: column;
36 | gap: .5rem;
37 | }
38 |
--------------------------------------------------------------------------------
/client/src/components/organisms/ContextMenu/ContextMenu.css:
--------------------------------------------------------------------------------
1 | /***
2 | * Copyright (C) Rodolfo Herrera Hernandez. All rights reserved.
3 | * Licensed under the MIT license. See LICENSE file in the project root
4 | * for full license information.
5 | *
6 | * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
7 | *
8 | * For related information - https://github.com/rodyherrera/Quantum/
9 | *
10 | * All your applications, just in one place.
11 | *
12 | * =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
13 | ****/
14 |
15 | .Context-Menu-Container{
16 | position: absolute;
17 | width: 150px;
18 | overflow-y: scroll;
19 | max-height: 200px;
20 | z-index: 1000;
21 | background-color: #FFFFFF;
22 | border: 1px solid #c6c6c6;
23 | right: 1rem;
24 | top: 2rem;
25 | border-radius: .2rem;
26 | }
27 |
28 | .Context-Menu-Options{
29 | display: flex;
30 | flex-direction: column;
31 | }
32 |
33 | @media screen and (max-width: 768px){
34 | .Context-Menu-Container{
35 | left: unset !important;
36 | }
37 | }
--------------------------------------------------------------------------------
/client/src/components/molecules/FileExplorerHeader/FileExplorerHeader.css:
--------------------------------------------------------------------------------
1 | /***
2 | * Copyright (C) Rodolfo Herrera Hernandez. All rights reserved.
3 | * Licensed under the MIT license. See LICENSE file in the project root
4 | * for full license information.
5 | *
6 | * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
7 | *
8 | * For related information - https://github.com/rodyherrera/Quantum/
9 | *
10 | * All your applications, just in one place.
11 | *
12 | * =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
13 | ****/
14 |
15 | .File-Explorer-Actions-Container{
16 | padding: .5rem 1rem;
17 | border-bottom: 1px solid #000000;
18 | display: flex;
19 | width: 100%;
20 | justify-content: space-between;
21 | align-items: center;
22 | }
23 |
24 | .File-Explorer-Go-Back-Container{
25 | cursor: pointer;
26 | }
27 |
28 | @media screen and (max-width: 768px){
29 | .File-Explorer-Header-Right-Container{
30 | flex-direction: column-reverse;
31 | align-items: flex-end !important;
32 | gap: 0;
33 | }
34 | }
--------------------------------------------------------------------------------
/setup-utility/server/services/env.py:
--------------------------------------------------------------------------------
1 | import os
2 | import secrets
3 | from dotenv import dotenv_values
4 | from core.config import env_path, setup_utility_env_path
5 |
6 | def get_server_ip():
7 | env = dotenv_values(setup_utility_env_path)
8 | return env['SERVER_IP']
9 |
10 | def generate_default_env_variables():
11 | return {
12 | "SECRET_KEY": secrets.token_hex(32),
13 | "SESSION_SECRET": secrets.token_hex(16),
14 | "ENCRYPTION_KEY": secrets.token_hex(32),
15 | "ENCRYPTION_IV": secrets.token_hex(16)
16 | }
17 |
18 | def get_env_values():
19 | return dotenv_values(env_path)
20 |
21 | def update_env_variables(new_vars: dict):
22 | current_vars = get_env_values()
23 | default_vars = generate_default_env_variables()
24 |
25 | current_vars.update(new_vars)
26 |
27 | for key, value in default_vars.items():
28 | if not current_vars.get(key):
29 | current_vars[key] = value
30 |
31 | with open(env_path, 'w') as env_file:
32 | for key, value in current_vars.items():
33 | env_file.write(f'{key}={value}\n')
34 | os.environ[key] = value
35 |
--------------------------------------------------------------------------------