mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
Add enterprise plugin
This commit is contained in:
1 parent
69b03209a6
commit
2f34b99fb9
112 files changed
+482
-59
No files matched your search
+5
-5
@@ -303,7 +303,7 @@ backend-lint:
|
||||
- .docker-image-test-stage
|
||||
- .skippable-job
|
||||
variables:
|
||||
RUN_WHEN_CHANGES_MADE_IN: "backend/ premium/backend/"
|
||||
RUN_WHEN_CHANGES_MADE_IN: "backend/ premium/backend/ enterprise/backend/"
|
||||
script:
|
||||
- docker run --rm $BACKEND_CI_DEV_IMAGE lint
|
||||
needs:
|
||||
@@ -313,7 +313,7 @@ backend-lint:
|
||||
# - Runs the backend startup check if changes to the backend, otherwise skips.
|
||||
backend-check-startup:
|
||||
variables:
|
||||
RUN_WHEN_CHANGES_MADE_IN: "backend/ premium/backend/"
|
||||
RUN_WHEN_CHANGES_MADE_IN: "backend/ premium/backend/ enterprise/backend/"
|
||||
POSTGRES_USER: "baserow"
|
||||
POSTGRES_PASSWORD: "baserow"
|
||||
POSTGRES_DB: "baserow"
|
||||
@@ -356,7 +356,7 @@ backend-test-group-1:
|
||||
POSTGRES_PASSWORD: baserow
|
||||
POSTGRES_DB: baserow
|
||||
PYTEST_SPLIT_GROUP: 1
|
||||
RUN_WHEN_CHANGES_MADE_IN: "backend/ premium/backend/"
|
||||
RUN_WHEN_CHANGES_MADE_IN: "backend/ premium/backend/ enterprise/backend/"
|
||||
DOWNLOAD_AND_UNPACK_ARTIFACTS_ON_SKIP: 'true'
|
||||
script:
|
||||
- DB_IP=$(cat /etc/hosts | awk '{if ($2 == "db") print $1;}')
|
||||
@@ -487,7 +487,7 @@ web-frontend-lint:
|
||||
needs:
|
||||
- job: build-web-frontend-image
|
||||
variables:
|
||||
RUN_WHEN_CHANGES_MADE_IN: "web-frontend/ premium/web-frontend/"
|
||||
RUN_WHEN_CHANGES_MADE_IN: "web-frontend/ premium/web-frontend/ enterprise/web-frontend/"
|
||||
script:
|
||||
- docker run --rm $WEBFRONTEND_CI_DEV_IMAGE lint
|
||||
|
||||
@@ -499,7 +499,7 @@ web-frontend-test:
|
||||
- .docker-image-test-stage
|
||||
- .skippable-job
|
||||
variables:
|
||||
RUN_WHEN_CHANGES_MADE_IN: "web-frontend/ premium/web-frontend/"
|
||||
RUN_WHEN_CHANGES_MADE_IN: "web-frontend/ premium/web-frontend/ enterprise/web-frontend/"
|
||||
DOWNLOAD_AND_UNPACK_ARTIFACTS_ON_SKIP: 'true'
|
||||
needs:
|
||||
- job: build-web-frontend-image
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
### Merge Request Checklist
|
||||
|
||||
- [ ] [changelog.md](https://gitlab.com/bramw/baserow/-/blob/develop/changelog.md) has
|
||||
been updated if required
|
||||
- [ ] New/updated **Premium features** are separated correctly in the premium folder
|
||||
been updated if required.
|
||||
- [ ] New/updated **Premium/Enterprise features** are separated correctly in the premium or enterprise folder
|
||||
- [ ] The latest **Chrome and Firefox** have been used to test any new frontend features
|
||||
- [ ] [Documentation](https://gitlab.com/bramw/baserow/-/tree/develop/docs) has been
|
||||
updated
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
Copyright (c) 2019-present Baserow B.V.
|
||||
|
||||
Parts of Baserow’s software are licensed as follows:
|
||||
Parts of Baserow's software are licensed as follows:
|
||||
|
||||
* All content residing under the "docs/" directory of this repository is licensed under
|
||||
"Creative Commons: CC BY-SA 4.0 license".
|
||||
* All content that resides under the "premium/" directory of this repository, if that
|
||||
directory exists, is licensed under the license defined in "premium/LICENSE".
|
||||
* All content that resides under the "enterprise/" directory of this repository, if that
|
||||
directory exists, is licensed under the license defined in "enterprise/LICENSE".
|
||||
* All client-side JavaScript (when served directly or after being compiled, arranged,
|
||||
augmented, or combined), is licensed under the "MIT Expat" license.
|
||||
* All third party components incorporated into the Baserow Software are licensed under
|
||||
the original license provided by the owner of the applicable component.
|
||||
* Content outside of the above mentioned directories or restrictions above [Baserow
|
||||
Open Source Edition (“Baserow OSE”)] is available under the "MIT Expat" license as
|
||||
Open Source Edition ("Baserow OSE")] is available under the "MIT Expat" license as
|
||||
defined below.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||
|
||||
@@ -7,7 +7,7 @@ tool gives you the powers of a developer without leaving your browser.
|
||||
* Easily self-hosted with no storage restrictions or sign-up on https://baserow.io to
|
||||
get started immediately.
|
||||
* Alternative to Airtable.
|
||||
* Open-core with all non-premium features under
|
||||
* Open-core with all non-premium and non-enterprise features under
|
||||
the [MIT License](https://choosealicense.com/licenses/mit/) allowing commercial and
|
||||
private use.
|
||||
* Headless and API first.
|
||||
|
||||
@@ -10,3 +10,4 @@ omit =
|
||||
include =
|
||||
backend/src/**/*
|
||||
premium/backend/src/**/*
|
||||
enterprise/backend/src/**/*
|
||||
@@ -4,6 +4,7 @@ max-doc-length = 88
|
||||
per-file-ignores =
|
||||
tests/*: F841
|
||||
../premium/backend/tests/*: F841
|
||||
../enterprise/backend/tests/*: F841
|
||||
src/baserow/contrib/database/migrations/*: X1
|
||||
src/baserow/core/migrations/*: X1
|
||||
exclude =
|
||||
|
||||
+2
-1
@@ -67,13 +67,14 @@ COPY --chown=$UID:$GID ./docs /baserow/docs
|
||||
# and not cached even though we already have separate layers above.
|
||||
COPY --chown=$UID:$GID ./backend /baserow/backend
|
||||
COPY --chown=$UID:$GID ./premium/backend /baserow/premium/backend
|
||||
COPY --chown=$UID:$GID ./enterprise/backend /baserow/enterprise/backend
|
||||
|
||||
WORKDIR /baserow/backend
|
||||
|
||||
# Ensure that Python outputs everything that's printed inside
|
||||
# the application rather than buffering it.
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONPATH $PYTHONPATH:/baserow/backend/src:/baserow/premium/backend/src
|
||||
ENV PYTHONPATH $PYTHONPATH:/baserow/backend/src:/baserow/premium/backend/src:/baserow/enterprise/backend/src
|
||||
|
||||
COPY --chown=$UID:$GID ./deploy/plugins/*.sh /baserow/plugins/
|
||||
RUN dos2unix /baserow/backend/docker/docker-entrypoint.sh && \
|
||||
|
||||
+12
-10
@@ -6,29 +6,29 @@ install-dev-dependencies:
|
||||
pip install -r requirements/dev.txt
|
||||
|
||||
lint:
|
||||
flake8 src tests ../premium/backend && \
|
||||
black . ../premium/backend --extend-exclude='/generated/' --check && \
|
||||
isort --check --skip generated src tests ../premium/backend && \
|
||||
flake8 src tests ../premium/backend ../enterprise/backend && \
|
||||
black . ../premium/backend ../enterprise/backend --extend-exclude='/generated/' --check && \
|
||||
isort --check --skip generated src tests ../premium/backend ../enterprise/backend && \
|
||||
./baserow makemigrations --dry-run --check && \
|
||||
bandit -r --exclude src/baserow/test_utils src/ ../premium/backend/src/ \
|
||||
bandit -r --exclude src/baserow/test_utils src/ ../premium/backend/src/ ../enterprise/backend/src/ \
|
||||
|| exit;
|
||||
|
||||
lint-python: lint
|
||||
|
||||
format:
|
||||
black . ../premium/backend --extend-exclude='/generated/' || exit;
|
||||
black . ../premium/backend ../enterprise/backend --extend-exclude='/generated/' || exit;
|
||||
|
||||
sort:
|
||||
isort --skip generated src tests ../premium/backend || exit;
|
||||
isort --skip generated src tests ../premium/backend ../enterprise/backend || exit;
|
||||
|
||||
test:
|
||||
pytest tests ../premium/backend/tests || exit;
|
||||
pytest tests ../premium/backend/tests ../enterprise/backend/tests || exit;
|
||||
|
||||
test-regenerate-ci-durations:
|
||||
pytest tests ../premium/backend/tests --store-durations || exit;
|
||||
pytest tests ../premium/backend/tests ../enterprise/backend/tests --store-durations || exit;
|
||||
|
||||
test-parallel:
|
||||
pytest tests ../premium/backend/tests -n 10 || exit;
|
||||
pytest tests ../premium/backend/tests ../enterprise/backend/tests -n 10 || exit;
|
||||
|
||||
PYTEST_SPLITS:=1
|
||||
PYTEST_SPLIT_GROUP:=1
|
||||
@@ -46,7 +46,8 @@ ci-test-python:
|
||||
--junitxml=backend/reports/report.xml \
|
||||
$(PYTEST_EXTRA_ARGS) \
|
||||
backend/tests \
|
||||
premium/backend/tests;
|
||||
premium/backend/tests\
|
||||
enterprise/backend/tests;
|
||||
|
||||
generate-html-coverage-report:
|
||||
mkdir html_coverage/ -p; \
|
||||
@@ -54,6 +55,7 @@ generate-html-coverage-report:
|
||||
coverage run --rcfile=backend/.coveragerc -m pytest \
|
||||
backend/tests \
|
||||
premium/backend/tests; \
|
||||
enterprise/backend/tests; \
|
||||
coverage html -d html_coverage/;
|
||||
|
||||
ci-check-startup-python:
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
python_version = 3.7
|
||||
exclude = "[a-zA-Z_]+.migrations.|[a-zA-Z_]+.tests.|[a-zA-Z_]+.testing."
|
||||
allow_redefinition = false
|
||||
mypy_path=backend/src:premium/backend/src
|
||||
mypy_path=backend/src:premium/backend/src:enterprise/backend/src
|
||||
check_untyped_defs = True
|
||||
disallow_untyped_defs = True
|
||||
disallow_any_generics = True
|
||||
|
||||
@@ -6,6 +6,7 @@ env =
|
||||
testpaths =
|
||||
tests
|
||||
../premium/backend/tests
|
||||
../enterprise/backend/tests
|
||||
markers =
|
||||
field_file: All tests related to file field
|
||||
field_single_select: All tests related to single select field
|
||||
|
||||
@@ -60,6 +60,7 @@ INSTALLED_APPS = [
|
||||
"baserow.ws",
|
||||
"baserow.contrib.database",
|
||||
"baserow_premium",
|
||||
"baserow_enterprise",
|
||||
]
|
||||
|
||||
BASEROW_FULL_HEALTHCHECKS = os.getenv("BASEROW_FULL_HEALTHCHECKS", None)
|
||||
|
||||
@@ -106,8 +106,9 @@ def patch_filefield_storage(tmpdir):
|
||||
return patch
|
||||
|
||||
|
||||
# We reuse this file in the premium backend folder, if you run a pytest session over
|
||||
# plugins and the core at the same time pytest will crash if this called multiple times.
|
||||
# We reuse this file in the premium/enterprise backend folder, if you run a pytest
|
||||
# session over plugins and the core at the same time pytest will crash if this
|
||||
# called multiple times.
|
||||
def pytest_addoption(parser):
|
||||
# Unfortunately a simple decorator doesn't work here as pytest is doing some
|
||||
# exciting reflection of sorts over this function and crashes if it is wrapped.
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EslintConfiguration">
|
||||
<work-dir-patterns value="$PROJECT_DIR$/web-frontend;$PROJECT_DIR$/premium/web-frontend" />
|
||||
<work-dir-patterns value="$PROJECT_DIR$/web-frontend;$PROJECT_DIR$/premium/web-frontend;$PROJECT_DIR$/enterprise/web-frontend" />
|
||||
<custom-configuration-file used="true" path="$PROJECT_DIR$/web-frontend/.eslintrc.js" />
|
||||
<option name="fix-on-save" value="true" />
|
||||
</component>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<env name="DATABASE_HOST" value="localhost" />
|
||||
<env name="DATABASE_PORT" value="5430" />
|
||||
<env name="DJANGO_SETTINGS_MODULE" value="baserow.config.settings.test" />
|
||||
<env name="ADDITIONAL_APPS" value="baserow_premium" />
|
||||
<env name="ADDITIONAL_APPS" value="baserow_premium,baserow_enterprise" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="" />
|
||||
@@ -22,4 +22,4 @@
|
||||
<option name="_new_targetType" value=""PATH"" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
</component>
|
||||
@@ -26,6 +26,10 @@
|
||||
<sourceFolder url="file://$MODULE_DIR$/../premium/backend/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../premium/backend/tests" isTestSource="true" />
|
||||
</content>
|
||||
<content url="file://$MODULE_DIR$/../enterprise/backend">
|
||||
<sourceFolder url="file://$MODULE_DIR$/../enterprise/backend/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../enterprise/backend/tests" isTestSource="true" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.8 (baserow)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
@@ -44,4 +48,4 @@
|
||||
<component name="TestRunnerService">
|
||||
<option name="PROJECT_TEST_RUNNER" value="pytest" />
|
||||
</component>
|
||||
</module>
|
||||
</module>
|
||||
@@ -6,6 +6,10 @@
|
||||
<sourceFolder url="file://$MODULE_DIR$/../premium/web-frontend/modules" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../premium/web-frontend/test" isTestSource="true" />
|
||||
</content>
|
||||
<content url="file://$MODULE_DIR$/../enterprise/web-frontend">
|
||||
<sourceFolder url="file://$MODULE_DIR$/../enterprise/web-frontend/modules" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../enterprise/web-frontend/test" isTestSource="true" />
|
||||
</content>
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/modules" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
||||
@@ -15,4 +19,4 @@
|
||||
<component name="PackageRequirementsSettings">
|
||||
<option name="requirementsPath" value="" />
|
||||
</component>
|
||||
</module>
|
||||
</module>
|
||||
Vendored
+2
-2
@@ -1,3 +1,3 @@
|
||||
DATABASE_HOST=localhost
|
||||
PYTHONPATH=backend/src:premium/backend/src:backend/flake8_plugins:$PYTHONPATH
|
||||
DJANGO_SETTINGS_MODULE=baserow.config.settings.test
|
||||
PYTHONPATH=backend/src:premium/backend/src:enterprise/backend/src:backend/flake8_plugins:$PYTHONPATH
|
||||
DJANGO_SETTINGS_MODULE=baserow.config.settings.test
|
||||
Vendored
+4
-3
@@ -47,11 +47,12 @@
|
||||
"--cov-config=${workspaceFolder}/backend/.coveragerc",
|
||||
"--cov=baserow",
|
||||
"backend/tests/",
|
||||
"premium/backend/tests/"
|
||||
"premium/backend/tests/",
|
||||
"enterprise/backend/tests/"
|
||||
],
|
||||
"env": {
|
||||
"DATABASE_HOST": "localhost",
|
||||
"PYTHONPATH": "$PYTHONPATH:backend/src:premium/backend/src",
|
||||
"PYTHONPATH": "$PYTHONPATH:backend/src:premium/backend/src:enterprise/backend/src",
|
||||
"DJANGO_SETTINGS_MODULE": "baserow.config.settings.dev",
|
||||
"BASEROW_PUBLIC_URL": "http://localhost:3000",
|
||||
},
|
||||
@@ -94,4 +95,4 @@
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
Vendored
+8
-4
@@ -44,7 +44,8 @@
|
||||
"python.linting.mypyEnabled": true,
|
||||
"mypy.targets": [
|
||||
"backend/src/",
|
||||
"premium/backend/src/"
|
||||
"premium/backend/src/",
|
||||
"enterprise/backend/src/"
|
||||
],
|
||||
"python.analysis.typeCheckingMode": "off",
|
||||
"mypy.configFile": "backend/mypy.ini",
|
||||
@@ -60,11 +61,13 @@
|
||||
"python.linting.mypyPath": "mypy",
|
||||
"python.autoComplete.extraPaths": [
|
||||
"${workspaceFolder}/backend/src",
|
||||
"${workspaceFolder}/premium/backend/src"
|
||||
"${workspaceFolder}/premium/backend/src",
|
||||
"${workspaceFolder}/enterprise/backend/src"
|
||||
],
|
||||
"python.analysis.extraPaths": [
|
||||
"${workspaceFolder}/backend/src",
|
||||
"${workspaceFolder}/premium/backend/src"
|
||||
"${workspaceFolder}/premium/backend/src",
|
||||
"${workspaceFolder}/enterprise/backend/src"
|
||||
],
|
||||
"python.linting.pycodestyleEnabled": false,
|
||||
"python.linting.pydocstyleEnabled": false,
|
||||
@@ -84,6 +87,7 @@
|
||||
],
|
||||
"python.formatting.blackArgs": [
|
||||
"premium/backend",
|
||||
"enterprise/backend",
|
||||
"--extend-exclude='/generated/'",
|
||||
"--check"
|
||||
],
|
||||
@@ -92,4 +96,4 @@
|
||||
"BASEROW",
|
||||
"debugpy"
|
||||
],
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ tool gives you the powers of a developer without leaving your browser.
|
||||
* Easily self-hosted with no storage restrictions or sign-up on https://baserow.io to
|
||||
get started immediately.
|
||||
* Alternative to Airtable.
|
||||
* Open-core with all non-premium features under
|
||||
* Open-core with all non-premium and non-enterprise features under
|
||||
the [MIT License](https://choosealicense.com/licenses/mit/) allowing commercial and
|
||||
private use.
|
||||
* Headless and API first.
|
||||
@@ -24,7 +24,8 @@ docker run -v baserow_data:/baserow/data -p 80:80 -p 443:443 baserow/baserow:1.1
|
||||
* **Get Support At**: [The Baserow Community Forums](https://community.baserow.io)
|
||||
* **Source Code Available At**: [gitlab.com/bramw/baserow](https://gitlab.com/bramw/baserow)
|
||||
* **Docs At**: [baserow.io/docs](https://baserow.io/docs)
|
||||
* **License**: Open-Core with all non-premium code under the MIT license.
|
||||
* **License**: Open-Core with all non-premium and non-enterprise code under the MIT
|
||||
license.
|
||||
|
||||
## Supported tags and Dockerfile Links
|
||||
|
||||
|
||||
@@ -23,11 +23,13 @@ services:
|
||||
- $PWD/deploy/all-in-one/baserow.sh:/baserow.sh
|
||||
- $PWD/backend:/baserow/backend
|
||||
- $PWD/premium/backend/:/baserow/premium/backend
|
||||
- $PWD/enterprise/backend/:/baserow/enterprise/backend
|
||||
- $PWD/web-frontend:/baserow/web-frontend
|
||||
# Override the above mounts for node_modules so we use the node_modules built
|
||||
# directly into the image instead of whatever is on your local filesystem.
|
||||
- /baserow/web-frontend/node_modules
|
||||
- $PWD/premium/web-frontend/:/baserow/premium/web-frontend
|
||||
- $PWD/enterprise/web-frontend/:/baserow/enterprise/web-frontend
|
||||
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
@@ -15,7 +15,7 @@ export BASEROW_AMOUNT_OF_GUNICORN_WORKERS=${BASEROW_AMOUNT_OF_GUNICORN_WORKERS:-
|
||||
export BASEROW_ENABLE_SECURE_PROXY_SSL_HEADER=${BASEROW_ENABLE_SECURE_PROXY_SSL_HEADER:-}
|
||||
|
||||
export PYTHONUNBUFFERED=1
|
||||
export PYTHONPATH="${PYTHONPATH:-}:/baserow/backend/src:/baserow/premium/backend/src"
|
||||
export PYTHONPATH="${PYTHONPATH:-}:/baserow/backend/src:/baserow/premium/backend/src:/baserow/enterprise/backend/src"
|
||||
export LC_ALL=C.UTF-8
|
||||
export LANG=C.UTF-8
|
||||
export TMPDIR=${TMPDIR:-/dev/shm}
|
||||
|
||||
@@ -11,7 +11,7 @@ guide for more details.
|
||||
* Easily self-hosted with no storage restrictions or sign-up on https://baserow.io to
|
||||
get started immediately.
|
||||
* Alternative to Airtable.
|
||||
* Open-core with all non-premium features under
|
||||
* Open-core with all non-premium and non-enterprise features under
|
||||
the [MIT License](https://choosealicense.com/licenses/mit/) allowing commercial and
|
||||
private use.
|
||||
* Headless and API first.
|
||||
@@ -24,7 +24,8 @@ guide for more details.
|
||||
* **Get Support At**: [The Baserow Community Forums](https://community.baserow.io)
|
||||
* **Source Code Available At**: [gitlab.com/bramw/baserow](https://gitlab.com/bramw/baserow)
|
||||
* **Docs At**: [baserow.io/docs](https://baserow.io/docs)
|
||||
* **License**: Open-Core with all non-premium code under the MIT license.
|
||||
* **License**: Open-Core with all non-premium and non-enterprise code under the MIT
|
||||
license.
|
||||
|
||||
## Supported tags and Dockerfile Links
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ guide for more details.
|
||||
* Easily self-hosted with no storage restrictions or sign-up on https://baserow.io to
|
||||
get started immediately.
|
||||
* Alternative to Airtable.
|
||||
* Open-core with all non-premium features under
|
||||
* Open-core with all non-premium and non-enterprise features under
|
||||
the [MIT License](https://choosealicense.com/licenses/mit/) allowing commercial and
|
||||
private use.
|
||||
* Headless and API first.
|
||||
@@ -25,7 +25,8 @@ guide for more details.
|
||||
* **Get Support At**: [The Baserow Community Forums](https://community.baserow.io)
|
||||
* **Source Code Available At**: [gitlab.com/bramw/baserow](https://gitlab.com/bramw/baserow)
|
||||
* **Docs At**: [baserow.io/docs](https://baserow.io/docs)
|
||||
* **License**: Open-Core with all non-premium code under the MIT license.
|
||||
* **License**: Open-Core with all non-premium and non-enterprise code under the MIT
|
||||
license.
|
||||
|
||||
## Supported tags and Dockerfile Links
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ guide for more details.
|
||||
* Easily self-hosted with no storage restrictions or sign-up on https://baserow.io to
|
||||
get started immediately.
|
||||
* Alternative to Airtable.
|
||||
* Open-core with all non-premium features under
|
||||
* Open-core with all non-premium and non-enterprise features under
|
||||
the [MIT License](https://choosealicense.com/licenses/mit/) allowing commercial and
|
||||
private use.
|
||||
* Headless and API first.
|
||||
@@ -26,7 +26,8 @@ guide for more details.
|
||||
* **Get Support At**: [The Baserow Community Forums](https://community.baserow.io)
|
||||
* **Source Code Available At**: [gitlab.com/bramw/baserow](https://gitlab.com/bramw/baserow)
|
||||
* **Docs At**: [baserow.io/docs](https://baserow.io/docs)
|
||||
* **License**: Open-Core with all non-premium code under the MIT license.
|
||||
* **License**: Open-Core with all non-premium and non-enterprise code under the MIT
|
||||
license.
|
||||
|
||||
## Supported tags and Dockerfile Links
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ services:
|
||||
volumes:
|
||||
- ./backend:/baserow/backend
|
||||
- ./premium/backend/:/baserow/premium/backend
|
||||
- ./enterprise/backend/:/baserow/enterprise/backend
|
||||
- ./deploy/plugins/install_plugin.sh:/baserow/plugins/install_plugin.sh
|
||||
# Open stdin and tty so when attaching key input works as expected.
|
||||
stdin_open: true
|
||||
@@ -61,6 +62,7 @@ services:
|
||||
# directly into the image instead of whatever is on your local filesystem.
|
||||
- /baserow/web-frontend/node_modules
|
||||
- ./premium/web-frontend/:/baserow/premium/web-frontend
|
||||
- ./enterprise/web-frontend/:/baserow/enterprise/web-frontend
|
||||
# Open stdin and tty so when attaching key input works as expected.
|
||||
stdin_open: true
|
||||
tty: true
|
||||
@@ -80,6 +82,7 @@ services:
|
||||
volumes:
|
||||
- ./backend:/baserow/backend
|
||||
- ./premium/backend/:/baserow/premium/backend
|
||||
- ./enterprise/backend/:/baserow/enterprise/backend
|
||||
# Open stdin and tty so when attaching key input works as expected.
|
||||
stdin_open: true
|
||||
tty: true
|
||||
@@ -99,6 +102,7 @@ services:
|
||||
volumes:
|
||||
- ./backend:/baserow/backend
|
||||
- ./premium/backend/:/baserow/premium/backend
|
||||
- ./enterprise/backend/:/baserow/enterprise/backend
|
||||
# Open stdin and tty so when attaching key input works as expected.
|
||||
stdin_open: true
|
||||
tty: true
|
||||
@@ -118,6 +122,7 @@ services:
|
||||
volumes:
|
||||
- ./backend:/baserow/backend
|
||||
- ./premium/backend/:/baserow/premium/backend
|
||||
- ./enterprise/backend/:/baserow/enterprise/backend
|
||||
# Open stdin and tty so when attaching key input works as expected.
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
@@ -56,7 +56,7 @@ automatic style fixers to make your life as easy as possible.
|
||||
1. Now lets set up your frontend dev by changing directory to `baserow/web-frontend`
|
||||
1. Install [nvm](https://github.com/nvm-sh/nvm) to install the correct version of `node`.
|
||||
In `launch.json` the `runtimeVersion` is set to `v16.15.0`, so install this specific
|
||||
version using the command: `nvm install v16.15.0`. Then enabled it with the command: `nvm use v16.25.0`
|
||||
version using the command: `nvm install v16.15.0`. Then enabled it with the command: `nvm use v16.15.0`
|
||||
1. Install `yarn` globally: `npm install -g yarn`
|
||||
1. Now run `yarn install` to install dependencies.
|
||||
1. Select "Trust Project" if you see an VSCode popup after running yarn install
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
The Baserow Enterprise Edition license (the "EE License")
|
||||
|
||||
Copyright (c) 2019-present Baserow B.V.
|
||||
|
||||
The Baserow software and associated documentation files (the "Software") may only be
|
||||
used in production, if you (and any entity that you represent) have a valid Baserow
|
||||
Enterprise Edition subscription for the correct number of users, you adhere to the
|
||||
applicable Baserow Subscription Terms of Service, available at
|
||||
https://baserow.io/terms/subscription (the "EE Terms") and you adhere to any other
|
||||
agreement or terms applicable to the use of the Software. Only under the conditions as
|
||||
set out in this section, and the applicable terms and conditions, Baserow grants you
|
||||
the right to modify the Software and publish patches to the Software. You agree that
|
||||
Baserow and/or its licensors (as applicable) retain all right, title and interest in
|
||||
and to all such modifications and/or patches, and all such modifications and/or patches
|
||||
may only be used, copied, modified, displayed, distributed, or otherwise exploited with
|
||||
a valid Baserow Enterprise Edition subscription for the correct number of users.
|
||||
Notwithstanding the foregoing, you may copy and modify the Software for development and
|
||||
testing purposes without requiring a Baserow Enterprise Edition subscription. You agree
|
||||
that Baserow and/or its licensors (as applicable) retain all right, title and interest
|
||||
in and to all such modifications. You are not granted any other rights beyond what is
|
||||
expressly stated herein. Subject to the foregoing, it is forbidden to copy, merge,
|
||||
publish, distribute, sublicense, and/or sell the Software.
|
||||
|
||||
The Software is provided "AS IS", without warranty of any kind, express or implied,
|
||||
including but not limited to the warranties of merchantability, fitness for a
|
||||
particular purpose and non-infringement. In no event shall the authors or copyright
|
||||
holders be liable for any claim, damages or other liability, whether in an action of
|
||||
contract, tort or otherwise, arising from, out of or in connection with the Software
|
||||
or the use or other dealings in the Software.
|
||||
|
||||
The full text of this EE License shall be included in all copies or substantial
|
||||
parts of the Software. The EE License applies only to the part of the Software that
|
||||
is not distributed as part of Baserow Open Source Edition (Baserow OSE). Any part of
|
||||
the Software distributed as part of Baserow OSE or is served client-side as an image,
|
||||
font, cascading stylesheet (CSS), file which produces or is compiled, arranged,
|
||||
augmented, or combined into client-side JavaScript, in whole or in part, is copyrighted
|
||||
under the MIT Expat license.
|
||||
|
||||
For all third party components incorporated into the Baserow Software, those components
|
||||
are licensed under the original license provided by the owner of the applicable
|
||||
component.
|
||||
@@ -0,0 +1,5 @@
|
||||
[pytest]
|
||||
DJANGO_SETTINGS_MODULE = baserow.config.settings.test
|
||||
python_files = test_*.py
|
||||
env =
|
||||
DJANGO_SETTINGS_MODULE = baserow.config.settings.test
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
PROJECT_DIR = os.path.dirname(__file__)
|
||||
|
||||
|
||||
setup(
|
||||
name="baserow_enterprise",
|
||||
url="https://baserow.io",
|
||||
author="Bram Wiepjes (Baserow)",
|
||||
author_email="bram@baserow.io",
|
||||
platforms=["linux"],
|
||||
package_dir={"": "src"},
|
||||
packages=find_packages("src"),
|
||||
include_package_data=True,
|
||||
)
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,3 @@
|
||||
app_name = "baserow_enterprise.api"
|
||||
|
||||
urlpatterns = []
|
||||
@@ -0,0 +1,8 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class BaserowEnterpriseConfig(AppConfig):
|
||||
name = "baserow_enterprise"
|
||||
|
||||
def ready(self):
|
||||
pass
|
||||
File renamed without changes.
@@ -0,0 +1 @@
|
||||
__all__ = []
|
||||
@@ -0,0 +1,14 @@
|
||||
from django.urls import include, path
|
||||
|
||||
from baserow_enterprise.api import urls as api_urls
|
||||
|
||||
from baserow.core.registries import Plugin
|
||||
|
||||
|
||||
class EnterprisePlugin(Plugin):
|
||||
type = "enterprise"
|
||||
|
||||
def get_api_urls(self):
|
||||
return [
|
||||
path("", include(api_urls, namespace=self.type)),
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
__all__ = []
|
||||
File renamed without changes.
@@ -0,0 +1 @@
|
||||
__all__ = []
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
|
||||
# noinspection PyUnresolvedReferences
|
||||
from baserow.test_utils.pytest_conftest import * # noqa: F403, F401
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def enterprise_data_fixture(data_fixture):
|
||||
from .fixtures import EnterpriseFixtures
|
||||
|
||||
class EnterpriseFixtures(EnterpriseFixtures, data_fixture.__class__):
|
||||
pass
|
||||
|
||||
return EnterpriseFixtures()
|
||||
Whitespace-only changes.
+6
@@ -0,0 +1,6 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_enterprise_app_installed(settings):
|
||||
assert "baserow_enterprise" in settings.INSTALLED_APPS
|
||||
@@ -0,0 +1,4 @@
|
||||
class EnterpriseFixtures:
|
||||
def create_user(self, *args, **kwargs):
|
||||
user = super().create_user(*args, **kwargs)
|
||||
return user
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"semi": false,
|
||||
"singleQuote": true
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@baserow_enterprise/*": [
|
||||
"./*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
".nuxt"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
.button {
|
||||
// Just for kidding
|
||||
-webkit-box-shadow: 3px 3px 7px -1px rgba(0, 0, 0, 0.37);
|
||||
-moz-box-shadow: 3px 3px 7px -1px rgba(0, 0, 0, 0.37);
|
||||
box-shadow: 3px 3px 7px -1px rgba(0, 0, 0, 0.37);
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
@import '@baserow_premium/assets/scss/default.scss';
|
||||
@import 'components/all';
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": "Enterprise"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"enterprise": {
|
||||
"licence": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import path from 'path'
|
||||
|
||||
import { routes } from './routes'
|
||||
|
||||
import en from './locales/en.json'
|
||||
import fr from './locales/fr.json'
|
||||
|
||||
export default function () {
|
||||
this.nuxt.hook('i18n:extend-messages', (additionalMessages) => {
|
||||
additionalMessages.push({ en, fr })
|
||||
})
|
||||
|
||||
// Register new alias to the web-frontend directory.
|
||||
this.options.alias['@baserow_enterprise'] = path.resolve(__dirname, './')
|
||||
|
||||
// Remove the existing index route and add our own routes.
|
||||
this.extendRoutes((configRoutes) => {
|
||||
configRoutes.push(...routes)
|
||||
})
|
||||
|
||||
this.appendPlugin({
|
||||
src: path.resolve(__dirname, 'plugin.js'),
|
||||
})
|
||||
|
||||
// Override Baserow's existing default.scss in favor of our own because that one
|
||||
// imports the original. We do this so that we can use the existing variables,
|
||||
// mixins, placeholders etc.
|
||||
this.options.css[0] = path.resolve(__dirname, 'assets/scss/default.scss')
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<h2>Enterprise plugin is loaded: {{ loaded }}</h2>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
layout: 'app',
|
||||
data() {
|
||||
return {
|
||||
loaded: false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.loaded = true
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,25 @@
|
||||
import { registerRealtimeEvents } from '@baserow_enterprise/realtime'
|
||||
|
||||
import en from '@baserow_enterprise/locales/en.json'
|
||||
import fr from '@baserow_enterprise/locales/fr.json'
|
||||
import nl from '@baserow_enterprise/locales/nl.json'
|
||||
import de from '@baserow_enterprise/locales/de.json'
|
||||
import es from '@baserow_enterprise/locales/es.json'
|
||||
import it from '@baserow_enterprise/locales/it.json'
|
||||
|
||||
export default (context) => {
|
||||
const { app, isDev } = context
|
||||
|
||||
// Allow locale file hot reloading
|
||||
if (isDev && app.i18n) {
|
||||
const { i18n } = app
|
||||
i18n.mergeLocaleMessage('en', en)
|
||||
i18n.mergeLocaleMessage('fr', fr)
|
||||
i18n.mergeLocaleMessage('nl', nl)
|
||||
i18n.mergeLocaleMessage('de', de)
|
||||
i18n.mergeLocaleMessage('es', es)
|
||||
i18n.mergeLocaleMessage('it', it)
|
||||
}
|
||||
|
||||
registerRealtimeEvents(app.$realtime)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { BaserowPlugin } from '@baserow/modules/core/plugins'
|
||||
|
||||
export class EnterprisePlugin extends BaserowPlugin {
|
||||
static getType() {
|
||||
return 'enterprise'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Registers the real time events related to the baserow_enterprise module. When a message
|
||||
* comes in, the state of the stores will be updated to match the latest update.
|
||||
*/
|
||||
|
||||
export const registerRealtimeEvents = (realtime) => {}
|
||||
@@ -0,0 +1,9 @@
|
||||
import path from 'path'
|
||||
|
||||
export const routes = [
|
||||
{
|
||||
name: 'enterprise-test',
|
||||
path: '/enterprise/test',
|
||||
component: path.resolve(__dirname, 'pages/test.vue'),
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,11 @@
|
||||
import { aUser } from './user'
|
||||
|
||||
export default class MockEnterpriseServer {
|
||||
constructor(mock) {
|
||||
this.mock = mock
|
||||
}
|
||||
|
||||
aUser(options) {
|
||||
aUser(options)
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
export function aUser({
|
||||
id = 1,
|
||||
username = 'user@baserow.io',
|
||||
name = 'user_name',
|
||||
groups = [
|
||||
{
|
||||
id: 1,
|
||||
name: 'some_group',
|
||||
permissions: 'ADMIN',
|
||||
},
|
||||
],
|
||||
lastLogin = '2021-04-26T07:50:45.643059Z',
|
||||
dateJoined = '2021-04-21T12:04:27.379781Z',
|
||||
isActive = true,
|
||||
isStaff = true,
|
||||
}) {
|
||||
return {
|
||||
id,
|
||||
username,
|
||||
name,
|
||||
groups,
|
||||
last_login: lastLogin,
|
||||
date_joined: dateJoined,
|
||||
is_active: isActive,
|
||||
is_staff: isStaff,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// Allow to transform some ESM installed modules
|
||||
const esModules = ['@nuxtjs/i18n'].join('|')
|
||||
module.exports = {
|
||||
rootDir: '../../../../',
|
||||
expand: true,
|
||||
forceExit: true,
|
||||
moduleDirectories: ['<rootDir>/web-frontend/node_modules/'],
|
||||
modulePaths: ['<rootDir>/web-frontend/node_modules/'],
|
||||
moduleNameMapper: {
|
||||
'^@baserow/(.*)$': '<rootDir>/web-frontend/$1',
|
||||
'^@baserow_enterprise/(.*)$':
|
||||
'<rootDir>/enterprise/web-frontend/modules/baserow_enterprise/$1',
|
||||
'^@/(.*)$': '<rootDir>/web-frontend/$1',
|
||||
'^~/(.*)$': '<rootDir>/web-frontend/$1',
|
||||
'^vue$': '<rootDir>/web-frontend/node_modules/vue/dist/vue.common.js',
|
||||
},
|
||||
moduleFileExtensions: ['js', 'vue', 'json'],
|
||||
transform: {
|
||||
'^.+\\.js$': 'babel-jest',
|
||||
'.*\\.(vue)$': '<rootDir>/web-frontend/node_modules/vue-jest',
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
`<rootDir>/web-frontend/node_modules/(?!(baserow|${esModules})/)`,
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
describe('Test enterprise Baserow plugin', () => {
|
||||
test('Dummy test', () => {
|
||||
console.log('Dummy test please remove me.')
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,13 @@
|
||||
const baseConfig = require('../jest.base.config')
|
||||
|
||||
module.exports = Object.assign({}, baseConfig, {
|
||||
testEnvironment: 'jsdom',
|
||||
testMatch: ['<rootDir>/enterprise/web-frontend/test/unit/**/*.spec.js'],
|
||||
displayName: 'enterprise-unit',
|
||||
setupFilesAfterEnv: [
|
||||
'<rootDir>/enterprise/web-frontend/test/unit/jest.setup.js',
|
||||
],
|
||||
snapshotSerializers: [
|
||||
'<rootDir>/web-frontend/node_modules/jest-serializer-vue',
|
||||
],
|
||||
})
|
||||
@@ -0,0 +1,13 @@
|
||||
import Vue from 'vue'
|
||||
import { config } from '@vue/test-utils'
|
||||
|
||||
Vue.config.silent = true
|
||||
|
||||
// Mock Nuxt components
|
||||
config.stubs.nuxt = { template: '<div />' }
|
||||
config.stubs['nuxt-link'] = { template: '<a><slot /></a>' }
|
||||
config.stubs['no-ssr'] = { template: '<span><slot /></span>' }
|
||||
|
||||
process.on('unhandledRejection', (err) => {
|
||||
fail(err)
|
||||
})
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Please keep in sync with the premium eslintrc.js
|
||||
// Please keep in sync with the premium/enterprise eslintrc.js
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
|
||||
Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
|
||||
# noinspection PyUnresolvedReferences
|
||||
from tests.conftest import * # noqa: F403, F401
|
||||
from baserow.test_utils.pytest_conftest import * # noqa: F403, F401
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 112 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user