diff --git a/CHANGELOG.md b/CHANGELOG.md index d731af586c4bef459141e0834df8d0add95a8c14..821e889a9a5301ece94a6a9d1f319ba4801b2320 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -107,7 +107,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 WebUI Legacy Adapter](https://gitlab.com/caosdb/caosdb-webui-legacy-adapter)) when the new query panel is used. -### Changed (for changes in existing functionality) +### Changed + +* Changed name from LinkAhead to LinkAhead. * The new query panel from the [CaosDB WebUI Legacy Adapter](https://gitlab.com/caosdb/caosdb-webui-legacy-adapter) is now the @@ -155,7 +157,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [#189](https://gitlab.com/caosdb/caosdb-webui/-/issues/189) The order in which the properties of (Records of) a RecordType are displayed can be configured. -### Changed (for changes in existing functionality) +### Changed * Version bump of caosdb_map module (0.5.0): * Added configurable entityLayers @@ -170,7 +172,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.9.0] - 2022-11-02 (Florian Spreckelsen) -### Changed (for changes in existing functionality) +### Changed * ext_references: names will be shown instead of file names if they exist @@ -198,18 +200,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 PROPERTY LIKE '*john*' AND A PROPERTY LIKE '*gibson*'`, not in `FIND ENTITY WHICH HAS A PROPERTY LIKE '*john gibson*'` as before). -### Deprecated - -### Removed - ### Fixed * Styling of the selects in the edit_mode. -### Security - -### Documentation - ## [0.7.0] - 2022-05-31 (Florian Spreckelsen) @@ -247,7 +241,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * `BUILD_MODULE_SHOW_ID_IN_LABEL` build variable with which the showing of entity ids together with their names if it is enabled (disabled by default). * Introduced `caosdb-f-form-required-marker` and `caosdb-f-form-required-label` - css classes for the markers of required fields in CaosDB form elements. + css classes for the markers of required fields in LinkAhead form elements. * The navbar has now an html id `caosdb-navbar-full` ### Changed @@ -258,8 +252,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 backwards-compatible for the map config. Clients need to update their version string in their config file, tho. -### Deprecated - ### Removed * globla `setNameID` function (replaced by `_setDescriptionNameID` which should @@ -273,10 +265,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Fixed an issue whereby missing property descriptions in the edit mode would lead to wrongly detected entity updates in the server -### Security - -### Documentation - ## [0.4.2] - 2021-12-06 ### Added (for new features, dependecies etc.) @@ -296,59 +284,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 `DISABLED` by default. * Added button to version history panel that allows restoring old versions -### Changed (for changes in existing functionality) +### Changed * Default footer elements contain invalid links for imprint, contact, and data-policy now -### Deprecated (for soon-to-be removed features) - -### Removed (for now removed features) +### Removed * Build property `BUILD_CUSTOM_IMPRINT`. Please use BUILD_FOOTER_IMPRINT_HREF and link a document instead. You can always put a html page to `src/ext/html/` and link to that. -### Fixed (for any bug fixes) +### Fixed - #156 - #251 -### Security (in case of vulnerabilities) - -### Documentation (for notable additions or changes of the documentation) - - ## [0.4.1] - 2021-11-04 -### Added (for new features, dependecies etc.) +### Added * `form_panel` module for conveniently creating a panel for web forms. * `restore_old_version` function to base functionality (caosdb.js) * buttons to the version history modal that allow restoring older versions -### Changed (for changes in existing functionality) +### Changed * Default footer elements contain invalid links for imprint, contact, and data-policy now -### Deprecated (for soon-to-be removed features) - -### Removed (for now removed features) +### Removed * Build property `BUILD_CUSTOM_IMPRINT`. Please use BUILD_FOOTER_IMPRINT_HREF and link a document instead. You can always put a html page to `src/ext/html/` and link to that. -### Fixed (for any bug fixes) +### Fixed * Auto-completion and edit_mode can handle entity names with empty spaces better now * [#251](https://gitlab.indiscale.com/caosdb/src/caosdb-webui/-/issues/251) - Data loss when editing Entities with URL-like properties -### Security (in case of vulnerabilities) - -### Documentation (for notable additions or changes of the documentation) - ## [0.4.0] - 2021-10-28 -### Added (for new features, dependecies etc.) +### Added * Module `ext_qrcode` which generates a QR Code for an entity (pointing to the the head or the exact version). @@ -356,23 +331,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 bookmarks will result in the URI being too lang and bookmarks will have to be cleared manually. -### Changed (for changes in existing functionality) - -### Deprecated (for soon-to-be removed features) - -### Removed (for now removed features) +### Removed * `getEntityId`, a former duplicate of `getEntityID` which must be used instead. -### Fixed (for any bug fixes) - -### Security (in case of vulnerabilities) - -### Documentation (for notable additions or changes of the documentation) +### Documentation ## [v0.4.0-rc1] - 2021-06-16 -### Added (for new features, dependecies etc.) +### Added - `ext_applicable` module for building fancy features which append functionality to entities (EXPERIMENTAL). @@ -385,7 +352,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added a tutorial for the edit mode to the documentation - Documentation on how to customize reference resolving -### Changed (for changes in existing functionality) +### Changed - Updated from bootstrap 3 to bootstrap 5. This is a major change which will possibly break existing custom implementations (e.g. a custom welcome page) @@ -396,12 +363,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Moved the resolving of references to Person Records to separate example which can be disabled -### Deprecated (for soon-to-be removed features) +### Deprecated - css-class `.caosdb-property-text-value`. Please use `.caosdb-f-property-text-value` or `.caosdb-v-property-text-value` instead. -### Removed (for now removed features) +### Removed * `#subnav` element from navbar which was previously used for spacing * `caosdb.form.ready` event @@ -417,31 +384,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 changing the map view. - #200 - Re-enabled the file-upload button -### Security (in case of vulnerabilities) - ## [v0.3.1] - 2021-06-15 This is the last Bootstrap-3 compatible release. -### Added (for new features, dependecies etc.) +### Added * Displaying and interacting with the entity state. * Change password functionality for users of the internal user source. Disable with `BUILD_MODULE_USER_MANAGEMENT=DISABLED` and set the user realm with - `BUILD_MODULE_USER_MANAGEMENT_CHANGE_OWN_PASSWORD_REALM=CaosDB`. + `BUILD_MODULE_USER_MANAGEMENT_CHANGE_OWN_PASSWORD_REALM=CAOSDB`. * Visually highlighted drop zones for properties and parents in the edit_mode. * two new field types for the form_elements module, `file` and `select`. See the module documentation for more information. -### Changed (for changes in existing functionality) +### Changed - The heading attributes datatype, path, checksum and size are now placed in a `details` html element. -### Deprecated (for soon-to-be removed features) +### Deprecated * Any bootstrap-3 dependencies. Please prepare upgrading to bootstrap-5 with the next release. -### Removed (for now removed features) +### Removed * `ext_revisions` module. This module was only a work-around which had been used for versioning functionality before the native versioning was @@ -455,11 +420,9 @@ This is the last Bootstrap-3 compatible release. * Several minor cosmetic flaws * Fixed edit mode for Safari 11. -### Security (in case of vulnerabilities) - ## [v0.3.0] - 2021-02-10 -### Added (for new features, dependecies etc.) +### Added - The versioning model has a new styling and can show and tsv-export the full version history now. @@ -481,16 +444,12 @@ This is the last Bootstrap-3 compatible release. * Automated documentation builds: `make doc` - documentation on queries -### Changed (for changes in existing functionality) +### Changed * ext_map version bumped to 0.4 - enabled and enhanced autocompletion * Login form is hidden behind another button. -### Deprecated (for soon-to-be removed features) - -### Removed (for now removed features) - ### Fixed - #144 (Select with ANY VERSION OF). @@ -502,27 +461,15 @@ This is the last Bootstrap-3 compatible release. - #158 show preview if the entity is too large for the viewport if bottom line is in view. -### Security (in case of vulnerabilities) - ## [v0.2.1] - 2020-09-07 -### Added (for new features, dependecies etc.) +### Added * `ext_jupyterdrag` (v0.1) module for dragging entities into jupyter notebooks. -### Changed (for changes in existing functionality) - -### Deprecated (for soon-to-be removed features) - -### Removed (for now removed features) - -### Fixed - -### Security (in case of vulnerabilities) - ## [v0.2] - 2020-09-02 -### Added (for new features, dependecies etc.) +### Added * Build variable `EXT_REFERENCES_CUSTOM_REFERENCE_RESOLVER`. The value of this variable must be module which has at least a `resolve(id)` function, which @@ -545,30 +492,26 @@ This is the last Bootstrap-3 compatible release. * `preview` also works for versioned references * `edit_mode` prevents the user from editing old versions of an entity. -### Changed (for changes in existing functionality) +### Changed - The `navbar.add_button` signatur changed to `add_button(button, options)`. See the doc string of that method for more information. - added a layout argument to the create_plot function of ext_bottom_line -### Deprecated (for soon-to-be removed features) +### Deprecated * css class `caosdb-property-text-value` is deprecated because different functionality interpreted it differently and most of the uses of this class have already been removed and replaced by specialized classes. -### Removed (for now removed features) - ### Fixed * #101 - loading of A LOT of references in `ext_references` slows down the webui or even freezes the brower. * Fixed a bug where the Tour would lose its state upon page reload. -### Security (in case of vulnerabilities) - ## [v0.2-rc.1] - 2020-04-10 -### Added (for new features, dependecies etc.) +### Added * ext_bottom_line module (v0.1 - Experimental) * A module which adds a preview section where any kind of summarizing @@ -612,7 +555,7 @@ This is the last Bootstrap-3 compatible release. Works only for non-LIST properties * Edit Mode - switch the LISTishness of entity properties back and forth. -### Changed (for changes in existing functionality) +### Changed * The old `caosdb-property-row` CSS class has been replaced by `caosdb-v-property-row` for styling and `caosdb-f-property` for functional @@ -639,25 +582,22 @@ This is the last Bootstrap-3 compatible release. `annotation` module now (which uses the `markdown` module as back-end, tho). * updated QUnit test framework to 2.9.2 - -### Deprecated (for soon-to-be removed features) +### Deprecated * Image Preview in the FileSystem. The functionality is to be replaced by real thumbnails, which cover also non-image data-formats. The thumbnails resource - is part of the new file system API of the CaosDB Server which is currently + is part of the new file system API of the LinkAhead Server which is currently under development. -### Removed (for now removed features) +### Removed * Removed non-informative tests for webcaosdb.css * Hard-coded image and video preview in the entity panel. The preview of images and videos is controlled by the `ext_bottom_line` module now. -### Fixed (for any bug fixes) +### Fixed * #95 - Edit Mode removes property values of reference properties when server response for possible reference targets is empty. * Bug in `getPropertyFromElement` (see above) which returned the unit as the property value if the actual value was an empty string. - -### Security (in case of vulnerabilities) diff --git a/CITATION.cff b/CITATION.cff index 34c378b2974221e5b1601382b2747a1064c71146..ba47a8301176836e4fec5492a6377d9deaea8cee 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -19,7 +19,7 @@ authors: - family-names: Luther given-names: Stefan orcid: https://orcid.org/0000-0001-7214-8125 -title: CaosDB - WebUI +title: LinkAhead - WebUI version: 0.12.0 doi: 10.3390/data4020083 date-released: 2023-05-31 diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md index 0b8358bf7f3738fefd64bd1da3fa91d7e6da9afe..40dd207437cc353a46c7bbcd0cfb501e939f8610 100644 --- a/DEPENDENCIES.md +++ b/DEPENDENCIES.md @@ -1,4 +1,4 @@ -* CaosDB Server 0.9.0 +* LinkAhead Server 0.9.0 * Make 4.2.0 # Java Script Libraries (included in this repository) diff --git a/Makefile b/Makefile index ea12038dea295f5947467b0e26873f5bbbc1d674..1eeaa461b4e348bd638d5e38156d4dba840fd3dd 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2018 Research Group Biomedical Physics, # Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/README.md b/README.md index d6c53f492b2f6080d423aaf6fbee25e5504ca794..3fbf2ccbf8da781d5b318410fc0a25e69c8b6a86 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ ## Welcome -This is the **CaosDB Web User Interface** repository and a part of the -CaosDB project. +This is the **LinkAhead Web User Interface** repository and a part of the +LinkAhead project. ## Setup @@ -14,36 +14,36 @@ setup this code. ## Further Reading -Please refer to the [official documentation](https://docs.indiscale.com/caosdb-webui/) for more information. +Please refer to the [official documentation](https://docs.indiscale.com/linkhead-webui/) for more information. ## Contributing -Thank you very much to all contributers—[past, present](https://gitlab.com/caosdb/caosdb/-/blob/dev/HUMANS.md), and prospective ones. +Thank you very much to all contributers—[past, present](https://gitlab.com/linkahead/linkahead-meta/-/blob/dev/HUMANS.md), and prospective ones. ### Code of Conduct -By participating, you are expected to uphold our [Code of Conduct](https://gitlab.com/caosdb/caosdb/-/blob/dev/CODE_OF_CONDUCT.md). +By participating, you are expected to uphold our [Code of Conduct](https://gitlab.com/linkahead/linkahead-meta/-/blob/dev/CODE_OF_CONDUCT.md). ### How to Contribute * You found a bug, have a question, or want to request a feature? Please -[create an issue](https://gitlab.com/caosdb/caosdb-webui/-/issues). +[create an issue](https://gitlab.com/linkahead/linkahead-webui/-/issues). * You want to contribute code? Please fork the repository and create a merge request in GitLab and choose this repository as target. Make sure to select "Allow commits from members who can merge the target branch" under Contribution when creating the merge request. This allows our team to work with you on your request. -- If you have a suggestion for the [documentation](https://docs.indiscale.com/caosdb-webui/), +- If you have a suggestion for the [documentation](https://docs.indiscale.com/linkhead-webui/), the preferred way is also a merge request as describe above (the documentation resides in `src/doc`). However, you can also create an issue for it. -- You can also contact us at **info (AT) caosdb.org** and join the - CaosDB community on - [#caosdb:matrix.org](https://matrix.to/#/!unwwlTfOznjEnMMXxf:matrix.org). +- You can also contact us at **info (AT) indiscale.com** and join the + LinkAhead community on + [#linkahead:matrix.org](https://matrix.to/#/!unwwlTfOznjEnMMXxf:matrix.org). ## License * Copyright (C) 2018 Research Group Biomedical Physics, Max Planck Institute for Dynamics and Self-Organization Göttingen. -* Copyright (C) 2020-2021 Indiscale GmbH <info@indiscale.com> +* Copyright (C) 2020-2023 Indiscale GmbH <info@indiscale.com> All files in this repository are licensed under a [GNU Affero General Public License](LICENCE.md) (version 3 or later). diff --git a/README_SETUP.md b/README_SETUP.md index 195e2f729caa98745857ee9b7b3a7b3683d5a34f..3a27cb5e34d1785991a2379c703561926913e96a 100644 --- a/README_SETUP.md +++ b/README_SETUP.md @@ -1,6 +1,6 @@ <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 Timm Fitschen (t.fitschen@indiscale.com) * Copyright (C) 2019 IndiScale GmbH (info@indiscale.com) @@ -22,7 +22,7 @@ --> # Build and install the Web Interface -Here, we document how to install and build the CaosDB Web Interface. If you are +Here, we document how to install and build the LinkAhead Web Interface. If you are only interested in how to use it, please continue [here](tutorials/index). ## Folder Structure diff --git a/RELEASE_GUIDELINES.md b/RELEASE_GUIDELINES.md index 00f044e142a1d89efd764076e3b6c6c079133fc7..2814074231b0391868099f1ece6d789c75515b51 100644 --- a/RELEASE_GUIDELINES.md +++ b/RELEASE_GUIDELINES.md @@ -1,8 +1,8 @@ -# Release Guidelines for the CaosDB Web Interface +# Release Guidelines for the LinkAhead Web Interface -This document specifies release guidelines in addition to the generel release -guidelines of the CaosDB Project -([RELEASE_GUIDELINES.md](https://gitlab.com/caosdb/caosdb/blob/dev/RELEASE_GUIDELINES.md)) +This document specifies release guidelines in addition to the general release +guidelines of the LinkAhead Project +([RELEASE_GUIDELINES.md](https://gitlab.com/linkahead/linkahead-meta/blob/dev/RELEASE_GUIDELINES.md)) ## General Prerequisites @@ -18,7 +18,7 @@ guidelines of the CaosDB Project 2. Check all general prerequisites. 3. Update the version: - - Update `src/doc/conf.py` version and check that the correct caosdb-server + - Update `src/doc/conf.py` version and check that the correct linkahead-server version is listed in `DEPENDENCIES.md`. - `CITATION.cff` (update version and date) diff --git a/build.properties.d/00_default.properties b/build.properties.d/00_default.properties index fd6171427d8f05f8ff6a1c02527d45ff8d53e621..99a031cef8e9d9f55a723d8ad325bff710b1217d 100644 --- a/build.properties.d/00_default.properties +++ b/build.properties.d/00_default.properties @@ -1,6 +1,6 @@ # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2019 Timm Fitschen (t.fitschen@indiscale.com) # Copyright (C) 2019 IndiScale GmbH (info@indiscale.com) @@ -21,7 +21,7 @@ # ** end header # -# Default configuration for the CaosDB Web Interface. +# Default configuration for the LinkAhead Web Interface. # # This file will be sourced during the `make install` and `make test` builds # and must comply with BASH. @@ -77,12 +77,20 @@ BUILD_LONG_TEXT_PROPERTY_THRESHOLD_SINGLE=140 ############################################################################## # relative file path in the webui to the logo. The actual files resides in -# `./src/core/pics/caosdb_logo_medium.png`, relative to the build directory. -BUILD_NAVBAR_LOGO=pics/caosdb_logo_medium.png -# The name CaosDB is shown to the right of the logo image. -BUILD_NAVBAR_BRAND_NAME=CaosDB -BUILD_TITLE_BRAND_NAME=CaosDB -BUILD_FAVICON=pics/caosdb_logo_42.png +# `./src/core/pics/linkahead_logo_medium.png`, relative to the build directory. +BUILD_NAVBAR_LOGO="pics/logo_linkahead_no_subtitle_144x25.png" +# The name LinkAhead is shown to the right of the logo image. +BUILD_NAVBAR_BRAND_NAME="​" +BUILD_TITLE_BRAND_NAME="LinkAhead" +BUILD_FAVICON="pics/linkahead_icon_64.png" + +############################################################################## +# Background properties +############################################################################## +BUILD_WELCOME_BACKGROUND_1="pics/bg_kCrrUx7US04.jpg" +BUILD_WELCOME_BACKGROUND_2="pics/bg_OxHPDs4WV8Y.jpg" +BUILD_WELCOME_BACKGROUND_3="pics/bg_txQT60OPSwA.jpg" +BUILD_WELCOME_BACKGROUND_4="pics/bg_WDbuusPOnkM.jpg" ############################################################################## # queryForm properties @@ -112,11 +120,11 @@ BUILD_FREE_SEARCH_ROLE_NAME_FACET_OPTIONS= # Link to the data policy statement document. BUILD_FOOTER_DATA_POLICY_HREF="Please configure me!" -# Contact mail or link to contact information for the responsible administrator of this caosdb server instance. +# Contact mail or link to contact information for the responsible administrator of this linkahead server instance. BUILD_FOOTER_CONTACT_HREF="Please configure me!" #BUILD_FOOTER_CONTACT_HREF=mailto:info@indiscale.com -# Link to imprint for this caosdb server instance. +# Link to imprint for this linkahead server instance. BUILD_FOOTER_IMPRINT_HREF="Please configure me!" #BUILD_FOOTER_IMPRINT_HREF=https://www.indiscale.com/imprint/ @@ -124,22 +132,19 @@ BUILD_FOOTER_IMPRINT_HREF="Please configure me!" BUILD_FOOTER_DOCS_HREF="https://docs.indiscale.com" # Link to sources (should almost never be changed (maybe for additional sources)) -BUILD_FOOTER_SOURCES_HREF="https://gitlab.com/caosdb" +BUILD_FOOTER_SOURCES_HREF="https://gitlab.com/linkahead" # Link to license (should almost never be changed (maybe for other languages)) BUILD_FOOTER_LICENCE_HREF="https://www.gnu.org/licenses/agpl-3.0.en.html" # Custom footer elements can be placed here (will be placed inside a <div> # element). -BUILD_FOOTER_CUSTOM_ELEMENT_ONE= -# BUILD_FOOTER_CUSTOM_ELEMENT_ONE='<p>Some content <img -# src="/webinterface/${BUILD_NUMBER}/pics/some_image.png"/>' +BUILD_FOOTER_CUSTOM_ELEMENT_ONE='<p class="caosdb-footer-element"> <a href="https://getlinkahead.com"><img src="/webinterface/pics/logo_linkahead_no_subtitle_dark_bg_144x25.png" style="vertical-align: -7px; margin-right: 6px"/> </a> – Thinking data management ahead. </p>' +BUILD_FOOTER_CUSTOM_ELEMENT_TWO='<p class="caosdb-footer-element"> <a href="https://indiscale.com"><img src="/webinterface/pics/logo_indiscale_no_subtitle_dark_bg_156x25.png" style="vertical-align: -5px; margin-right: 3px;"/> </a> – We make individual data management scalable. </p>' # Files from the `build.properties.files` directory can also be included here # These files will also have a second step of variable substitution with # ${BUILD_NUMBER}. -BUILD_FOOTER_CUSTOM_ELEMENT_TWO= -# BUILD_FOOTER_CUSTOM_ELEMENT_TWO=$(cat footer_element_2.html) ############################################################################## # ext_trigger_crawler_form properties diff --git a/doc/WelcomePanel.md b/doc/WelcomePanel.md index 8768803299277a011a0f9a874ddb3a3495af0834..8eae4463baef76eeee082aafa6ddd79cac1f5449 100644 --- a/doc/WelcomePanel.md +++ b/doc/WelcomePanel.md @@ -1,6 +1,6 @@ <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * diff --git a/misc/entity_state_test_data.py b/misc/entity_state_test_data.py index ff06452cb33045e876e1f17a94862737e77a8207..342b7b57b91f773394e1ee08c1e61c54e65f720e 100755 --- a/misc/entity_state_test_data.py +++ b/misc/entity_state_test_data.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 import sys -import caosdb as db +import linkahead as db _PASSWORD = "Password1!" @@ -98,7 +98,6 @@ def setup_state_model(): unpublished_state.acl = unpublished_acl unpublished_state.insert() - review_acl = db.ACL() review_acl.grant(role="publisher", permission="*") review_acl.grant(role="normal", permission="RETRIEVE:ENTITY") @@ -112,7 +111,6 @@ def setup_state_model(): review_state.acl = db.State.create_state_acl(review_acl) review_state.insert() - published_acl = db.ACL() published_state = db.Record( diff --git a/misc/ext_bottom_line_test_data.py b/misc/ext_bottom_line_test_data.py index 1a43094eb6719e2b7b2a6a4ab42d47fcc415d513..a82b2828c441cb76f56f8c3ab459f0060e63fba9 100755 --- a/misc/ext_bottom_line_test_data.py +++ b/misc/ext_bottom_line_test_data.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> @@ -23,42 +23,42 @@ # ** end header import os -import caosdb +import linkahead import random filename = "small.webm" if not os.path.isfile(filename): - import wget #pylint: disable=E0401 + import wget # pylint: disable=E0401 filename = wget.download("http://techslides.com/demos/sample-videos/small.webm") -caosdb.configure_connection(ssl_insecure=True) +linkahead.configure_connection(ssl_insecure=True) # clean -old = caosdb.execute_query("FIND Test*") +old = linkahead.execute_query("FIND Test*") if len(old): old.delete() # data model -datamodel = caosdb.Container() +datamodel = linkahead.Container() datamodel.extend([ - caosdb.RecordType("TestPreviewRecordType") + linkahead.RecordType("TestPreviewRecordType") ]) datamodel.insert() # test data -testdata = caosdb.Container() +testdata = linkahead.Container() -## record with references -refrec = caosdb.Record("TestPreviewRecord-references").add_parent("TestPreviewRecordType") +# record with references +refrec = linkahead.Record("TestPreviewRecord-references").add_parent("TestPreviewRecordType") testdata.append(refrec) -video = caosdb.File(name="TestFileVideo", file=filename, path="testfile.webm") -image = caosdb.File(name="TestFileImage", - file="../src/core/pics/map_tile_caosdb_logo.png", - path="testfile.png") +video = linkahead.File(name="TestFileVideo", file=filename, path="testfile.webm") +image = linkahead.File(name="TestFileImage", + file="../src/core/pics/map_tile_linkahead_logo.png", + path="testfile.png") for i in ["load-forever", "fall-back", "error", "success", "success-2"]: - rec = caosdb.Record("TestPreviewRecord-{}".format(i)).add_parent("TestPreviewRecordType") + rec = linkahead.Record("TestPreviewRecord-{}".format(i)).add_parent("TestPreviewRecordType") testdata.append(rec) refrec.add_property("TestPreviewRecordType", rec) @@ -66,8 +66,6 @@ testdata.append(image) testdata.append(video) -testdata.insert(); +testdata.insert() os.remove(filename) - - diff --git a/misc/ext_cosmetics_test_data.py b/misc/ext_cosmetics_test_data.py index 786f46c2d6bcd1d55488a15e2c4f50085f331950..c1b53ee6a9adb73666b995ad76db1f1ec74e1883 100755 --- a/misc/ext_cosmetics_test_data.py +++ b/misc/ext_cosmetics_test_data.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> @@ -22,7 +22,7 @@ # # ** end header -import caosdb as db +import linkahead as db # clean old = db.execute_query("FIND Test*") diff --git a/misc/install_comment_datamodel.py b/misc/install_comment_datamodel.py index b8204811d37756c805c9ae8104cd4e58c6f19ab6..d3fa9f22333eb90184b42331cf177be355d52444 100755 --- a/misc/install_comment_datamodel.py +++ b/misc/install_comment_datamodel.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> @@ -23,7 +23,7 @@ # ** end header import sys -import caosdb as db +import linkahead as db if len(db.execute_query("FIND RecordType CommentAnnotation")) > 0: diff --git a/misc/list_references_test_data.py b/misc/list_references_test_data.py index 806f4222230200778da415e38a2186ca7e1d0107..b95ad5c443e58b9fb3e18d02a61e4a3e22b84653 100755 --- a/misc/list_references_test_data.py +++ b/misc/list_references_test_data.py @@ -7,39 +7,38 @@ Test entities for the ext_references module. """ -import caosdb +import linkahead import random -d = caosdb.execute_query("FIND TestReferenc*") +d = linkahead.execute_query("FIND TestReferenc*") if len(d) > 0: d.delete() # data model -datamodel = caosdb.Container() +datamodel = linkahead.Container() datamodel.extend([ - caosdb.RecordType("TestReferenced"), - caosdb.RecordType( + linkahead.RecordType("TestReferenced"), + linkahead.RecordType( "TestReferencing" - ).add_property("TestReferenced", datatype=caosdb.LIST("TestReferenced")), + ).add_property("TestReferenced", datatype=linkahead.LIST("TestReferenced")), ]) datamodel.insert() # test data -testdata = caosdb.Container() +testdata = linkahead.Container() for i in range(100): testdata.append( - caosdb.Record("TestReferenceObject-{}".format(i) - ).add_parent("TestReferenced") + linkahead.Record("TestReferenceObject-{}".format(i) + ).add_parent("TestReferenced") ) -testdata.insert(); -caosdb.Record().add_parent( +testdata.insert() +linkahead.Record().add_parent( "TestReferencing" - ).add_property("TestReferenced", - datatype=caosdb.LIST("TestReferenced"), - value=testdata - ).insert() - +).add_property("TestReferenced", + datatype=linkahead.LIST("TestReferenced"), + value=testdata + ).insert() diff --git a/misc/map_test_data.py b/misc/map_test_data.py index eda56c0ef06fc73b42d062e4fe7536aaf49b8286..f4809911b79c71445f9a276dbc0a86b875fff36b 100755 --- a/misc/map_test_data.py +++ b/misc/map_test_data.py @@ -4,23 +4,23 @@ (C) Copyright IndiScale GmbH 2019 """ -import caosdb +import linkahead import random -caosdb.get_connection()._login() +linkahead.get_connection()._login() # data model -datamodel = caosdb.Container() +datamodel = linkahead.Container() datamodel.extend([ - caosdb.Property("longitude", datatype=caosdb.DOUBLE, unit="°"), - caosdb.Property("latitude", datatype=caosdb.DOUBLE, unit="°"), - caosdb.RecordType( + linkahead.Property("longitude", datatype=linkahead.DOUBLE, unit="°"), + linkahead.Property("latitude", datatype=linkahead.DOUBLE, unit="°"), + linkahead.RecordType( "MapObject" - ).add_property("longitude", importance=caosdb.OBLIGATORY - ).add_property("latitude", importance=caosdb.OBLIGATORY), - caosdb.RecordType( + ).add_property("longitude", importance=linkahead.OBLIGATORY + ).add_property("latitude", importance=linkahead.OBLIGATORY), + linkahead.RecordType( "PathObject" - ).add_property("MapObject", datatype=caosdb.LIST("MapObject")), + ).add_property("MapObject", datatype=linkahead.LIST("MapObject")), ]) datamodel.insert() @@ -28,25 +28,21 @@ datamodel.insert() # test data -testdata = caosdb.Container() +testdata = linkahead.Container() -path = caosdb.Record() +path = linkahead.Record() path.add_parent("PathObject") -path.add_property("MapObject", datatype=caosdb.LIST("MapObject"), value=[]) +path.add_property("MapObject", datatype=linkahead.LIST("MapObject"), value=[]) testdata.append(path) for i in range(100): - loc = caosdb.Record( + loc = linkahead.Record( "Object-{}".format(i) - ).add_parent("MapObject" - ).add_property("longitude", random.gauss(-42.0, 5) - ).add_property("latitude", random.gauss(77.0, 5)) + ).add_parent("MapObject" + ).add_property("longitude", random.gauss(-42.0, 5) + ).add_property("latitude", random.gauss(77.0, 5)) testdata.append(loc) path.get_property("MapObject").value.append(loc) - -testdata.insert(); - - - +testdata.insert() diff --git a/misc/merge_js.sh b/misc/merge_js.sh index 506a65866db42c329b4e19c197842f04bdfc4aca..ccd361a87ea2363a4af65436f149a6364cf5187b 100755 --- a/misc/merge_js.sh +++ b/misc/merge_js.sh @@ -1,7 +1,7 @@ #!/bin/bash # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2021 IndiScale GmbH # Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/misc/merge_xsl.sh b/misc/merge_xsl.sh index abf95444de1ca550f5cd66ae1f02e2f0587503f0..4f1490e9d2bd73808c27b50f0c807904f051a0d8 100755 --- a/misc/merge_xsl.sh +++ b/misc/merge_xsl.sh @@ -1,7 +1,7 @@ #!/bin/bash # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH # Copyright (C) 2020 Timm Fitschen (t.fitschen@indiscale.com) diff --git a/misc/query_shortcuts_test_data.py b/misc/query_shortcuts_test_data.py index 1fdcf463fc0ae0265f006d866a4302df7a278560..b794a8a7f000ef6de805978fffa869ed6ffe6676 100755 --- a/misc/query_shortcuts_test_data.py +++ b/misc/query_shortcuts_test_data.py @@ -4,58 +4,55 @@ (C) Copyright IndiScale GmbH 2019 """ -import caosdb +import linkahead -caosdb.get_connection()._login() +linkahead.get_connection()._login() # data model -if caosdb.execute_query("COUNT RecordType UserTemplate") == 0: +if linkahead.execute_query("COUNT RecordType UserTemplate") == 0: - datamodel = caosdb.Container() + datamodel = linkahead.Container() datamodel.extend([ - caosdb.Property("Query", datatype=caosdb.TEXT), - caosdb.Property("templateDescription", datatype=caosdb.TEXT), - caosdb.RecordType( + linkahead.Property("Query", datatype=linkahead.TEXT), + linkahead.Property("templateDescription", datatype=linkahead.TEXT), + linkahead.RecordType( "UserTemplate" - ).add_property("Query", importance=caosdb.OBLIGATORY - ).add_property("templateDescription", importance=caosdb.OBLIGATORY), + ).add_property("Query", importance=linkahead.OBLIGATORY + ).add_property("templateDescription", importance=linkahead.OBLIGATORY), ]) datamodel.insert() # test data -testdata = caosdb.Container() +testdata = linkahead.Container() -if caosdb.execute_query("COUNT Record 'Test Template (Delete with Error)'") == 0: +if linkahead.execute_query("COUNT Record 'Test Template (Delete with Error)'") == 0: testdata.append( - caosdb.Record( + linkahead.Record( "Test Template (Delete with Error)" - ).add_parent("UserTemplate" - ).add_property("Query", "FIND Error" - ).add_property("templateDescription", - "Test Template (Delete with Error)") + ).add_parent("UserTemplate" + ).add_property("Query", "FIND Error" + ).add_property("templateDescription", + "Test Template (Delete with Error)") ) -if caosdb.execute_query("COUNT Record 'Test Template (Referencing)'") == 0: +if linkahead.execute_query("COUNT Record 'Test Template (Referencing)'") == 0: testdata.append( - caosdb.Record( + linkahead.Record( "Test Template (Referencing)" - ).add_parent("UserTemplate" - ).add_property("UserTemplate", "Test Template (Delete with Error)") + ).add_parent("UserTemplate" + ).add_property("UserTemplate", "Test Template (Delete with Error)") ) for i in range(2): testdata.append( - caosdb.Record( + linkahead.Record( "Test Template (User {})".format(i) - ).add_parent("UserTemplate" - ).add_property("Query", "FIND Thing{}".format(i) - ).add_property("templateDescription", - "Test Template (User {})".format(i)) + ).add_parent("UserTemplate" + ).add_property("Query", "FIND Thing{}".format(i) + ).add_property("templateDescription", + "Test Template (User {})".format(i)) ) -testdata.insert(); - - - +testdata.insert() diff --git a/misc/select_query_test_data.py b/misc/select_query_test_data.py index 3ecf0a47a56641c1c2a05ea3346e9a4ef2ff0e35..cd419fd3c304e5b340194d2bc80014dab7d0c2ce 100755 --- a/misc/select_query_test_data.py +++ b/misc/select_query_test_data.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> @@ -22,40 +22,40 @@ # # ** end header -import caosdb +import linkahead -d = caosdb.execute_query("FIND Test*") +d = linkahead.execute_query("FIND Test*") if len(d) > 0: d.delete() -rt_house = caosdb.RecordType("TestHouse").insert() +rt_house = linkahead.RecordType("TestHouse").insert() rt_house.description = "A House" -caosdb.RecordType("TestWindow").insert() -rt_person = caosdb.RecordType("TestPerson").insert() -caosdb.RecordType("TestParty").insert() -caosdb.Property("TestHeight", datatype=caosdb.DOUBLE, unit="ft").insert() -caosdb.Property("TestDate", datatype=caosdb.DATETIME).insert() +linkahead.RecordType("TestWindow").insert() +rt_person = linkahead.RecordType("TestPerson").insert() +linkahead.RecordType("TestParty").insert() +linkahead.Property("TestHeight", datatype=linkahead.DOUBLE, unit="ft").insert() +linkahead.Property("TestDate", datatype=linkahead.DATETIME).insert() -window = caosdb.Record().add_parent("TestWindow") +window = linkahead.Record().add_parent("TestWindow") window.add_property("TestHeight", 20.5, unit="ft") window.insert() -owner = caosdb.Record("The Queen").add_parent("TestPerson").insert() +owner = linkahead.Record("The Queen").add_parent("TestPerson").insert() -house = caosdb.Record("Buckingham Palace") +house = linkahead.Record("Buckingham Palace") house.description = "A rather large house" house.add_parent("TestHouse") house.add_property(rt_person, name="TestOwner", value=owner) house.add_property("TestWindow", window).insert() -g1 = caosdb.Record().add_parent("TestPerson").insert() -g2 = caosdb.Record().add_parent("TestPerson").insert() -g3 = caosdb.Record().add_parent("TestPerson").insert() +g1 = linkahead.Record().add_parent("TestPerson").insert() +g2 = linkahead.Record().add_parent("TestPerson").insert() +g3 = linkahead.Record().add_parent("TestPerson").insert() -party = caosdb.Record("Diamond Jubilee of Elizabeth II").add_parent("TestParty") +party = linkahead.Record("Diamond Jubilee of Elizabeth II").add_parent("TestParty") party.add_property(rt_house, name="Location", value=house) party.add_property("TestDate", "2012-02-06") -party.add_property(rt_person, datatype=caosdb.LIST(rt_person), name="Guests", - value = [g1, g2, g3]) +party.add_property(rt_person, datatype=linkahead.LIST(rt_person), name="Guests", + value=[g1, g2, g3]) party.insert() diff --git a/misc/test_entities/insert.py b/misc/test_entities/insert.py index ac8067bd96080e348a5862329883730e57d469a0..83feaa2a962e56efe0b9af1f76a5c14e09a2c10d 100644 --- a/misc/test_entities/insert.py +++ b/misc/test_entities/insert.py @@ -1,4 +1,4 @@ -import caosdb as db +import linkahead as db try: diff --git a/misc/unit_test_http_server.py b/misc/unit_test_http_server.py index 56205df8d34491b865698742f6b24b1679894df8..89f97aaf8cf289e5487635ad1ad59bf899962795 100755 --- a/misc/unit_test_http_server.py +++ b/misc/unit_test_http_server.py @@ -2,7 +2,7 @@ # -*- encoding: utf-8 -*- # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2018 Research Group Biomedical Physics, # Max-Planck-Institute for Dynamics and Self-Organization Göttingen @@ -35,6 +35,8 @@ from http.server import SimpleHTTPRequestHandler, HTTPServer os.chdir(sys.argv[4]) counter = 0 + + class UnitTestsHandler(SimpleHTTPRequestHandler): """UnitTestsHandler @@ -52,10 +54,10 @@ class UnitTestsHandler(SimpleHTTPRequestHandler): path = self.path[1:] if path in ["done", "log"]: getattr(self, path)() - #return HTTP status: 204 No Content + # return HTTP status: 204 No Content self.send_response(204) else: - #return HTTP status: 404 Not Found + # return HTTP status: 404 Not Found self.send_response(404) def send_response(self, code, message=None): @@ -150,7 +152,7 @@ class UnitTestHTTPServer(HTTPServer): self.handle_request() print(self._exit_message) - os._exit(self._exit_code)#pylint: disable=protected-access + os._exit(self._exit_code) # pylint: disable=protected-access UnitTestHTTPServer(server_address=('0.0.0.0', int(sys.argv[1])), diff --git a/misc/versioning_test_data.py b/misc/versioning_test_data.py index 5ec7073aeaffc894916ee8a6c4cfdc82bc25a4f1..eb7c59af3a02902f264162bfb7c38905811657d8 100755 --- a/misc/versioning_test_data.py +++ b/misc/versioning_test_data.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> @@ -27,22 +27,22 @@ webinterface. """ # pylint: disable=no-member -import caosdb +import linkahead # clean -old = caosdb.execute_query("FIND Test*") +old = linkahead.execute_query("FIND Test*") if len(old) > 0: old.delete() # data model -rt = caosdb.RecordType("TestRT") +rt = linkahead.RecordType("TestRT") rt.insert() # test data -## record with several versions -rec1 = caosdb.Record("TestRecord1-firstVersion").add_parent("TestRT") +# record with several versions +rec1 = linkahead.Record("TestRecord1-firstVersion").add_parent("TestRT") rec1.description = "This is the first version." rec1.insert() @@ -58,14 +58,14 @@ rec1.name = "TestRecord1-thirdVersion" rec1.description = "This is the third version." rec1.update() -rec2 = caosdb.Record("TestRecord2").add_parent("TestRT") +rec2 = linkahead.Record("TestRecord2").add_parent("TestRT") rec2.description = ("This record references the TestRecord1 in the second " "version where the name and the description of the record " "should indicate the referenced version.") rec2.add_property("TestRT", ref) rec2.insert() -rec3 = caosdb.Record("TestRecord3").add_parent("TestRT") +rec3 = linkahead.Record("TestRecord3").add_parent("TestRT") rec3.description = ("This record references the TestRecord1 without " "specifying a version. Therefore the latest (at least the " "third version) is being openend when you click on the " @@ -73,26 +73,26 @@ rec3.description = ("This record references the TestRecord1 without " rec3.add_property("TestRT", rec1.id) rec3.insert() -rec4 = caosdb.Record("TestRecord4").add_parent("TestRT") +rec4 = linkahead.Record("TestRecord4").add_parent("TestRT") rec4.description = ("This record has a list of references to several versions " "of TestRecord1. The first references the record without " "specifying the version, the other each reference a " "different version of that record.") if rec1.version: - rec4.add_property("TestRT", datatype=caosdb.LIST("TestRT"), + rec4.add_property("TestRT", datatype=linkahead.LIST("TestRT"), value=[rec1.id, str(rec1.id) + "@HEAD", str(rec1.id) + "@HEAD~1", str(rec1.id) + "@HEAD~2"]) else: - rec4.add_property("TestRT", datatype=caosdb.LIST("TestRT"), + rec4.add_property("TestRT", datatype=linkahead.LIST("TestRT"), value=[rec1.id, str(rec1.id), str(rec1.id), str(rec1.id)]) rec4.insert() -for i in range(4,11): +for i in range(4, 11): rec1.name = f"TestRecord1-{i}thVersion" rec1.description = f"This is the {i}th version." rec1.update() diff --git a/src/core/css/linkahead.css b/src/core/css/linkahead.css new file mode 100644 index 0000000000000000000000000000000000000000..b211ba3332bb566c4228cf4ab472ecb5e5a3478a --- /dev/null +++ b/src/core/css/linkahead.css @@ -0,0 +1,204 @@ +/* + * ** header v3.0 + * This file is a part of the CaosDB Project. + * + * Copyright (C) 2019 IndiScale GmbH + * Copyright (C) 2019 Daniel Hornung (d.hornung@indiscale.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + * + * ** end header + */ + +body { + background-color: #1a4548; +} + +footer { + background-color: #1a4548; + color: #88bdc2; +} + +footer a { + color: #88bdc2; +} + +footer a:hover { + color: white; + text-decoration: inherit; +} + + +.background { + background-image: url("/webinterface/pics/tile.png"); + background-repeat: repeat; + background-attachment: fixed; +} + +@keyframes background_switch { +from { + background-image: url("/webinterface/${BUILD_WELCOME_BACKGROUND_1}"), + linear-gradient(#0b7983, #cbf7fa); +} +25% { + background-image: url("/webinterface/${BUILD_WELCOME_BACKGROUND_2}"), + linear-gradient(#0b7983, #cbf7fa); +} +50% { + background-image: url("/webinterface/${BUILD_WELCOME_BACKGROUND_3}"), + linear-gradient(#0b7983, #cbf7fa); +} +75% { + background-image: url("/webinterface/${BUILD_WELCOME_BACKGROUND_4}"), + linear-gradient(#0b7983, #cbf7fa); +} +} + +body.caosdb-welcome .background { + background-size: 100%; + background-repeat: no-repeat; + animation-name: background_switch; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-duration: 120s; + animation-direction: normal; + animation-timing-function: step-end; +} + +.navbar-default { + /* background-color: #cbf7fa; */ + background-color: gainsboro; + color: black; + border: none; +} + +.navbar-default .navbar-nav > li > a, +.navbar-default .btn-link, +.navbar-nav { + color: darkslategrey; +} + +.navbar-default .btn-link:focus, +.navbar-default .btn-link:hover, +.navbar-default .navbar-nav > li > a:focus, +.navbar-default .navbar-nav > li > a:hover { + color: black; + text-shadow: 0 0 6px white, 0 0 6px white, 0 0 6px white; +} + +.btn-primary { + background-color: #0b7983; + border-color: #0b7983; +} + + +.bg-indiscale-translucent { + background-color:#cdeef2cc!important +} + +.caosdb-entity-panel-body > :first-child { + margin-top: 5px; +} + +.list-group { + margin-bottom: 5px; +} + +.caosdb-v-property-row { + animation: appear 0.5s 1; + background-color: #FFFFFF; +} + +body[data-hidden-properties="false"] .caosdb-v-property-row { + border: none; +} + +body[data-hidden-properties="false"] .caosdb-v-property-row:nth-child(odd) { + background: #e1eff0; +} + +/* TODO(fspreck) Use :nth-child(odd of :is(caosdb-v-show-property)) here once + CSS4 is widely adopted */ +body[data-hidden-properties="true"] .caosdb-v-property-row:nth-child(odd) { + background: unset; +} + +.pager { + margin: 0.5ex 0; +} + +.panel-heading { + padding: 1ex 15px 0; +} + +.panel { + background-color: #FFFFFF88; +} + +.panel-group { + margin: 5px; +} + +.label { + padding: .5ex .6em .1ex; +} + +.caosdb-boolean-true, .caosdb-boolean-true { + padding: 0 5px; +} + +.caosdb-next-button, .caosdb-prev-button, +.pager li > a, .pager li > span{ + padding: 0.25ex 1em; + background-color: #FFFFFF88; +} + +.panel-default > .panel-heading { + background-color: transparent; +} + +.caosdb-comments-heading { + background-color: #F6FFFF; +} + +.caosdb-label-name { + color: #1a4548; +} + +.caosdb-v-welcome-header { + color: #f8f9fa; +} + +.caosdb-v-tour-toc-header { + margin-left: 0.75rem; +} + +.caosdb-v-welcome-caption { + padding-top: 2rem; + color: #6c757d; +} +/* Bootstrap's default is too prominent for our uses. */ +code { + background: none; +} + +.caosdb-v-welcome-image { + max-height: 40vh; +} + +@media screen and (min-width: 992px) { + .caosdb-v-welcome-caption { + font-size: 2.5rem; + } +} diff --git a/src/core/css/webcaosdb.css b/src/core/css/webcaosdb.css index cc7622d450a4648c1d748aaab83bb694c3d32839..43376b65e9e73fa848983680cf7e966b890c5f12 100644 --- a/src/core/css/webcaosdb.css +++ b/src/core/css/webcaosdb.css @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/html/imprint.html b/src/core/html/imprint.html index 6ae3813e4d99ad3587ca7d3487fffeecf8ab3b37..e3c18f7b79341dd4119da7356051c8c09c35bbea 100644 --- a/src/core/html/imprint.html +++ b/src/core/html/imprint.html @@ -22,9 +22,9 @@ <p>The authors of the software are not responsible for the way it is provided to the public or used otherwise.</p> <h1>Trademark notice</h1> - <p>The names "CaosDB" and "IndiScale" are registered trademarks owned by - IndiScale GmbH. Permissive uses for the name "CaosDB" can be - found <a href="https://gitlab.com/caosdb/">in the sources</a>.</p> + <p>The names "LinkAhead" and "IndiScale" are registered trademarks owned by + IndiScale GmbH. Permissive uses for the name "LinkAhead" can be + found <a href="https://gitlab.com/linkahead/">in the sources</a>.</p> <footer> </footer> </body> diff --git a/src/core/js/annotation.js b/src/core/js/annotation.js index 42b4217cf2a7c2cd1214d0384ba09a23e2cddaf3..06d9d9327ed701d42137fa83fdc878d276214db0 100644 --- a/src/core/js/annotation.js +++ b/src/core/js/annotation.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH (info@indiscale.com) * Copyright (C) 2019 Timm Fitschen (t.fitschen@indiscale.com) diff --git a/src/core/js/caosdb.js b/src/core/js/caosdb.js index c0eacab9e6694fecbc5b32e5e42aaf964f6468f9..af81a120cf4c4f1e4a42ee709566e4f5d3b01568 100644 --- a/src/core/js/caosdb.js +++ b/src/core/js/caosdb.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018-2020 Alexander Schlemmer * Copyright (C) 2018 Research Group Biomedical Physics, @@ -26,7 +26,7 @@ 'use strict'; /** - * JavaScript client for CaosDB + * JavaScript client for LinkAhead * * Dependency: jquery * Dependency: webcaosdb @@ -330,10 +330,10 @@ var getEntityIdVersion = function (entity) { } /** - * Take a date and a time and format it into a CaosDB compatible representation. + * Take a date and a time and format it into a LinkAhead compatible representation. * @param date A date * @param time A time - * @return A CaosDB compatible representation. + * @return A LinkAhead compatible representation. */ function input2caosdbDate(date, time) { return date + "T" + time; @@ -371,7 +371,7 @@ var getAllEntityPermissions = function (entity) { * * If the text contains only a date it is returned. * - * @param text The string from CaosDB. + * @param text The string from LinkAhead. * @return A new string for the input element. */ function caosdb2InputDate(text) { @@ -1072,7 +1072,7 @@ function createEntityXML(role, name, id, properties, parents, * @param name The name of the entity. Can be undefined. * @param id The id of the entity. Can be undefined. * @param parents A list of parents. - * @param file_path The path of the file in the CaosDB file system. + * @param file_path The path of the file in the LinkAhead file system. * @param file_checksum The checksum of the file. * @param file_size The size of the file in bytes. * @param description A description for this entity. @@ -1118,7 +1118,7 @@ function createUpdate(xmls) { } /** - * Concat and convert these xml documents into an insert request body for caosdb server. + * Concat and convert these xml documents into an insert request body for LinkAhead server. * * @param {(Document[]|DocumentFragment[])} xmls - Array of xml documents. * @return {(Document|DocumentFragment)} A new xml document. diff --git a/src/core/js/edit_mode.js b/src/core/js/edit_mode.js index d9c5d1937f0fd6f94f167c2364fe1f800d823fe3..3c06aeb43f9f613b4df09d269b6bbd59c7775933 100644 --- a/src/core/js/edit_mode.js +++ b/src/core/js/edit_mode.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen @@ -1796,7 +1796,7 @@ var edit_mode = new function () { for (var j = 0; j < prlist.length; j++) { prdict.push(prlist[j].name + ": " + prlist[j].value); } - prdict.push("CaosDB ID: " + getEntityID(eli)); + prdict.push("LinkAhead ID: " + getEntityID(eli)); results.push($(`<option value="${getEntityID(eli)}"/>`).text(prdict.join(", "))[0]); } diff --git a/src/core/js/ext_applicable.js b/src/core/js/ext_applicable.js index 6e4ae94f742e00e46f6cff609f4217100c9f4292..b41c916a5bd398cdd5e8c8ab4cc5fa2c4457cf15 100644 --- a/src/core/js/ext_applicable.js +++ b/src/core/js/ext_applicable.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/ext_autocomplete.js b/src/core/js/ext_autocomplete.js index 02ae1199494ae3634afa16ad417b886f19068ee0..ff201682d95542c0f3850f548f981be9c42f521c 100644 --- a/src/core/js/ext_autocomplete.js +++ b/src/core/js/ext_autocomplete.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH, Henrik tom Wörden * @@ -23,7 +23,7 @@ /* * This module uses and extends bootstrap-autocomplete to provide * autocompletion to the query field. - * Currently, completion exists for names that are stored in CaosDB + * Currently, completion exists for names that are stored in LinkAhead */ 'use strict'; diff --git a/src/core/js/ext_bookmarks.js b/src/core/js/ext_bookmarks.js index d9da463699ff7021b9f94a877aa3d9379dffb5dc..34eea46ff4bc2e0952e3423cc66899b2115be03b 100644 --- a/src/core/js/ext_bookmarks.js +++ b/src/core/js/ext_bookmarks.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020,2021 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> @@ -736,7 +736,7 @@ var ext_bookmarks = function ($, logger, config) { $(document).ready(function () { if ("${BUILD_MODULE_EXT_BOOKMARKS}" == "ENABLED") { - // The following is the configuration for the CaosDB WebUI. + // The following is the configuration for the LinkAhead WebUI. const get_context_root = (() => connection.getBasePath() + "Entity/"); // This getter retrieves a file's path from the page or, if necessary, diff --git a/src/core/js/ext_bottom_line.js b/src/core/js/ext_bottom_line.js index 19bee8ef3f810c5624a75936c59688083ab86af6..e5481b9860cb65de26eaa8e047e616962d654be7 100644 --- a/src/core/js/ext_bottom_line.js +++ b/src/core/js/ext_bottom_line.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/ext_cosmetics.js b/src/core/js/ext_cosmetics.js index c29f07e42294ff3d8c0b4b86da829865b8a650c5..9443bf65c8fa3effa57a64491563479ca51c91d0 100644 --- a/src/core/js/ext_cosmetics.js +++ b/src/core/js/ext_cosmetics.js @@ -1,5 +1,5 @@ /* - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021-2023 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com> @@ -24,7 +24,7 @@ /** * Cosmetics module is a collection of small look-and-feel tweaks for the - * caosdb webui. + * LinkAhead webui. * * @author Timm Fitschen */ diff --git a/src/core/js/ext_editmode_wysiwyg_text.js b/src/core/js/ext_editmode_wysiwyg_text.js index d5cd88a85084c76fd92c8710d9845bd80f09fb95..7094cd5a8cddc7e8c5ed7d1e9f5fb44ecb67b135 100644 --- a/src/core/js/ext_editmode_wysiwyg_text.js +++ b/src/core/js/ext_editmode_wysiwyg_text.js @@ -1,5 +1,5 @@ /* - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2021 Florian Spreckelsen <f.spreckelsen@indiscale.com> @@ -29,12 +29,12 @@ * @param jQuery - well-known library. * @param log - singleton from loglevel library or javascript console. * @param {class} ClassicEditor - ClassicEditor class from ckEditor - * @param {module} edit_mode - caosdb's edit-mode module - * @param {function} getPropertyElements - caosdb's function to extract the + * @param {module} edit_mode - LinkAhead's edit-mode module + * @param {function} getPropertyElements - LinkAhead's function to extract the * property HTML elements from an entity HTML element - * @param {function} getPropertyDatatype - caosdb's function to extract the + * @param {function} getPropertyDatatype - LinkAhead's function to extract the * data type from a property HTML element - * @param {function} getPropertyName - caosdb's function to extract the + * @param {function} getPropertyName - LinkAhead's function to extract the * name from a property HTML element */ var ext_editmode_wysiwyg_text = function ($, logger, ClassicEditor, edit_mode, getPropertyElements, getPropertyDatatype, getPropertyName) { diff --git a/src/core/js/ext_entity_acl.js b/src/core/js/ext_entity_acl.js index 9fef31fac6f4ff27a4da12f4019d49b0e258f87d..01be80bd95e26b29b3a2ce80291111b259a07325 100644 --- a/src/core/js/ext_entity_acl.js +++ b/src/core/js/ext_entity_acl.js @@ -1,5 +1,5 @@ /* - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/ext_entity_state.js b/src/core/js/ext_entity_state.js index 101c3800fc16632f2e36778a9e0468feae43f677..159da3160b5f1c7fd68a4a8571bf0515ea90a572 100644 --- a/src/core/js/ext_entity_state.js +++ b/src/core/js/ext_entity_state.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/ext_file_download.js b/src/core/js/ext_file_download.js index 477349b421e03d74aa28fddf6b4748f64ffa9f7b..1287a8d9b9caa9fe0869bc4c22647659d6c6ab91 100644 --- a/src/core/js/ext_file_download.js +++ b/src/core/js/ext_file_download.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com> diff --git a/src/core/js/ext_jupyterdrag.js b/src/core/js/ext_jupyterdrag.js index 0d055170076e23dfecc3d282ffeee03886b1d15c..68c67532c36fdce08655237161f1a4495b897542 100644 --- a/src/core/js/ext_jupyterdrag.js +++ b/src/core/js/ext_jupyterdrag.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/ext_prop_display.js b/src/core/js/ext_prop_display.js index 3a8c616f503caadd4c0df04800bc8c15f0c068b2..46a1e8cc60576c17972cc8cc4267c6fe54e2b10d 100644 --- a/src/core/js/ext_prop_display.js +++ b/src/core/js/ext_prop_display.js @@ -1,5 +1,5 @@ /* - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2022-2023 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2022-2023 Florian Spreckelsen <f.spreckelsen@indiscale.com> diff --git a/src/core/js/ext_qrcode.js b/src/core/js/ext_qrcode.js index d075ef884a89d407cb1e79b98f2045c6d4e25a26..2bf50ed7a46b70fb982f1ed611da692fde5e35b2 100644 --- a/src/core/js/ext_qrcode.js +++ b/src/core/js/ext_qrcode.js @@ -1,5 +1,5 @@ /* - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/ext_references.js b/src/core/js/ext_references.js index cee574e30c305f719dd041cc05913fa704d2e6d4..e25de2107072af4a9227e00c5a4af2bca08d7996 100644 --- a/src/core/js/ext_references.js +++ b/src/core/js/ext_references.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Alexander Schlemmer * Copyright (C) 2019-2020 IndiScale GmbH (info@indiscale.com) @@ -249,7 +249,7 @@ var resolve_references = new function () { /** Check if an element is inside of the viewport on the horizontal axis. * * This criterion is very much different from the vertical correspondent: It - * looks for the parent which contains the list scroll bar for caosdb values. + * looks for the parent which contains the list scroll bar for LinkAhead values. * Then it is checked whether the element's bounding box is visible inside the * scroll box. * @@ -305,13 +305,13 @@ var resolve_references = new function () { * You may add your own custom resolver by specifying a JS module * via the `BUILD_EXT_REFERENCES_CUSTOM_RESOLVER` build * variable. The custom resolver has to be a JS module (typically - * located at caosdb-webui/src/ext/js), the name of which is given + * located at linkahead-webui/src/ext/js), the name of which is given * as the value of `BUILD_EXT_REFERENCES_CUSTOM_RESOLVER`. It has * to provide a `resolve` function that takes the entity id to be * resolved as a string and returns a `reference_info` object with * the resolved custom reference as a `text` property. * - * See caosdb-webui/src/core/js/reference_resolver/caosdb_default_person.js + * See linkahead-webui/src/core/js/reference_resolver/caosdb_default_person.js * for an example. * * TODO refactor to be configurable. @async @param {string} id - the id of diff --git a/src/core/js/ext_table_preview.js b/src/core/js/ext_table_preview.js index 708d4da4b69602b4824b46e2aac082e4037b3102..e5bd63783694fd0320668db7a76d6c77056d8bc1 100644 --- a/src/core/js/ext_table_preview.js +++ b/src/core/js/ext_table_preview.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com> diff --git a/src/core/js/ext_trigger_crawler_form.js b/src/core/js/ext_trigger_crawler_form.js index a6e1e3a18a3582cc9b3e511880b72d15f730b346..9c28b441c1175101e697512058c4ce2879f6b39d 100644 --- a/src/core/js/ext_trigger_crawler_form.js +++ b/src/core/js/ext_trigger_crawler_form.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2019 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/ext_version_history.js b/src/core/js/ext_version_history.js index ea65481589c2f95405833f7b4a929f450ea6da96..240947d7b0f5e96b1731d7221b2c723199ca1390 100644 --- a/src/core/js/ext_version_history.js +++ b/src/core/js/ext_version_history.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019-2022 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2019-2022 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/ext_xls_download.js b/src/core/js/ext_xls_download.js index 5ea29ba38698b7c14ad4329201b2f3104dfe57ab..2803c1ad8a456d58420763b8bee4aec1eea2df66 100644 --- a/src/core/js/ext_xls_download.js +++ b/src/core/js/ext_xls_download.js @@ -1,6 +1,6 @@ /** * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2019 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/fileupload.js b/src/core/js/fileupload.js index 8a988e86a6a9b5bbb39f39a37d63b32b144c748d..ef9b59100829f9172cc4fd1fdfa385f0e0430dc4 100644 --- a/src/core/js/fileupload.js +++ b/src/core/js/fileupload.js @@ -1,5 +1,5 @@ /* - * ** header v3.0 This file is a part of the CaosDB Project. + * ** header v3.0 This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, Max-Planck-Institute * for Dynamics and Self-Organization Göttingen @@ -64,7 +64,7 @@ var fileupload = new function() { * 'dropzone.js'). * * The form has field(s) for the files and a `path` field for the target - * directory of the upload files in the CaosDB Server's internal file + * directory of the upload files in the LinkAhead Server's internal file * system. The path is set to a default value, initially. * * The asyncronous success_handler function is an event listener to the diff --git a/src/core/js/form_elements.js b/src/core/js/form_elements.js index c081650de0f617bca94bc387aedca6b2ebd1b2f6..f9bf6de0f9c6736bd73dbcc72bfd017b64e18217 100644 --- a/src/core/js/form_elements.js +++ b/src/core/js/form_elements.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * @@ -1453,7 +1453,7 @@ var form_elements = new function () { * * IMPORTANT: The select picker has to be initialized by the client by * calling ``form_elements.init_select_picker(ret, config.value)`` (see - * below and https://gitlab.com/caosdb/caosdb-webui/-/issues/208). + * below and https://gitlab.com/linkahead/linkahead-webui/-/issues/208). * * @param {SelectFieldConfig} config * @returns {HTMLElement} a select field. diff --git a/src/core/js/form_panel.js b/src/core/js/form_panel.js index fc1cbc7d947833f83c1ef3c39aff19117f76cc27..4eb2ddca72c5e35a9af58cf7d5f14d5a8fe85b04 100644 --- a/src/core/js/form_panel.js +++ b/src/core/js/form_panel.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/src/core/js/query_shortcuts.js b/src/core/js/query_shortcuts.js index a0a7f877555dc6e2c2617892540c900be12a6a19..cd69b4cf791e4281ff8e35be8698a91d71abc0a4 100644 --- a/src/core/js/query_shortcuts.js +++ b/src/core/js/query_shortcuts.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Alexander Schlemmer * Copyright (C) 2018 Research Group Biomedical Physics, @@ -28,7 +28,7 @@ "use strict"; /** - * Query Shortcuts Extension for CaosDB WebUI. + * Query Shortcuts Extension for LinkAhead WebUI. * * Loads, generates and expands shortcuts. * diff --git a/src/core/js/reference_resolver/caosdb_default_person.js b/src/core/js/reference_resolver/caosdb_default_person.js index dc750865c9ebf7aa01385d8f471d8d051c335fae..f8aa34c5fd15ab582588bfd672209c970f374487 100644 --- a/src/core/js/reference_resolver/caosdb_default_person.js +++ b/src/core/js/reference_resolver/caosdb_default_person.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021 IndiScale GmbH (info@indiscale.com) * Copyright (C) 2021 Florian Spreckelsen (f.spreckelsen@indiscale.com) diff --git a/src/core/js/tour.js b/src/core/js/tour.js index b8ee39732eb0542e74ca4bced38a9203469b5aea..d2198cb8ce083a1841a493de4e2223256c7c5b59 100644 --- a/src/core/js/tour.js +++ b/src/core/js/tour.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * diff --git a/src/core/js/webcaosdb.js b/src/core/js/webcaosdb.js index b622a1c879f3cf8aa53378e32f0a15f666ea7689..bdd3cd1e9f9d8ac9ecfacc2a3123c0ef5fc8ac5d 100644 --- a/src/core/js/webcaosdb.js +++ b/src/core/js/webcaosdb.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen @@ -27,7 +27,7 @@ 'use strict'; /** - * Core functionality of the CaosDB web interface. + * Core functionality of the LinkAhead web interface. * * @module webcaosdb * @global @@ -48,7 +48,7 @@ var globalError = function (error) { } } - var message = "Error! Please help to make CaosDB better! Copy this message and send it via email to info@indiscale.com.\n\n"; + var message = "Error! Please help to make LinkAhead better! Copy this message and send it via email to info@indiscale.com.\n\n"; message += error.toString(); if (stack) { diff --git a/src/core/owner.css b/src/core/owner.css index 1a6126b92c1b23ce9f2db29da7451f86ebba90a1..654184cf1bd10af4511da12987d1c8bcd2dd2a44 100644 --- a/src/core/owner.css +++ b/src/core/owner.css @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/owner.xsl b/src/core/owner.xsl index 7f03e7c10ebb1edbf0a6fa3879ea0cb840275651..0d3f2c7a89ad9eadbf6addef429a893cd75ddbf5 100644 --- a/src/core/owner.xsl +++ b/src/core/owner.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/permissions.css b/src/core/permissions.css index bca557c06d909de6f70febcd90d2e03e77112efc..7efa16ce81f44bd4edfb41e7fb48a4ee75807e5d 100644 --- a/src/core/permissions.css +++ b/src/core/permissions.css @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/permissions.xsl b/src/core/permissions.xsl index d47903553a80c88822743cedc69af1791ca49251..bdc98ad03ff6d71a82e10fc03a3cdf8c7277d02a 100644 --- a/src/core/permissions.xsl +++ b/src/core/permissions.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/pics/bg_OxHPDs4WV8Y.jpg b/src/core/pics/bg_OxHPDs4WV8Y.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a8f5740d8c311243d37624dc31f6a716f30c3a77 Binary files /dev/null and b/src/core/pics/bg_OxHPDs4WV8Y.jpg differ diff --git a/src/core/pics/bg_WDbuusPOnkM.jpg b/src/core/pics/bg_WDbuusPOnkM.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4065bc995153bcf1dfc3fd87bac626ea75ee8cd7 Binary files /dev/null and b/src/core/pics/bg_WDbuusPOnkM.jpg differ diff --git a/src/core/pics/bg_kCrrUx7US04.jpg b/src/core/pics/bg_kCrrUx7US04.jpg new file mode 100644 index 0000000000000000000000000000000000000000..790216e10fcdec901547c4a1b7258ee9246d3cae Binary files /dev/null and b/src/core/pics/bg_kCrrUx7US04.jpg differ diff --git a/src/core/pics/bg_txQT60OPSwA.jpg b/src/core/pics/bg_txQT60OPSwA.jpg new file mode 100644 index 0000000000000000000000000000000000000000..17919dff52209ff4c073308b97b358bf07be47b3 Binary files /dev/null and b/src/core/pics/bg_txQT60OPSwA.jpg differ diff --git a/src/core/pics/caosdb_logo_16.png b/src/core/pics/caosdb_logo_16.png deleted file mode 100644 index de4a65cbc01eec4da92a8d67c752a7f4104ad372..0000000000000000000000000000000000000000 Binary files a/src/core/pics/caosdb_logo_16.png and /dev/null differ diff --git a/src/core/pics/caosdb_logo_42.png b/src/core/pics/caosdb_logo_42.png deleted file mode 100644 index e0c925f41c405c049c0af2e29a782df69e7105f2..0000000000000000000000000000000000000000 Binary files a/src/core/pics/caosdb_logo_42.png and /dev/null differ diff --git a/src/core/pics/caosdb_logo_medium.png b/src/core/pics/caosdb_logo_medium.png deleted file mode 100644 index 34f1f632116748818058e3afee64cea4520c17f9..0000000000000000000000000000000000000000 Binary files a/src/core/pics/caosdb_logo_medium.png and /dev/null differ diff --git a/src/core/pics/caosdb_logo_small.png b/src/core/pics/caosdb_logo_small.png deleted file mode 100644 index 186a1b2e302e64c072a1b0e0c599cfeaf7a3c0e4..0000000000000000000000000000000000000000 Binary files a/src/core/pics/caosdb_logo_small.png and /dev/null differ diff --git a/src/core/pics/caosdb_no_undertitle.png b/src/core/pics/caosdb_no_undertitle.png deleted file mode 100644 index d324bbe1740ac768611d081a9608ec9b39718bae..0000000000000000000000000000000000000000 Binary files a/src/core/pics/caosdb_no_undertitle.png and /dev/null differ diff --git a/src/core/pics/caosdb_no_undertitle_622.png b/src/core/pics/caosdb_no_undertitle_622.png deleted file mode 100644 index 5be79fc860bd770cec13185e6077bb0d851bcc80..0000000000000000000000000000000000000000 Binary files a/src/core/pics/caosdb_no_undertitle_622.png and /dev/null differ diff --git a/src/core/pics/linkahead_icon_64.png b/src/core/pics/linkahead_icon_64.png new file mode 100644 index 0000000000000000000000000000000000000000..dbaa6b5cb5f42573f1196e51beeef54115f611c4 Binary files /dev/null and b/src/core/pics/linkahead_icon_64.png differ diff --git a/src/core/pics/linkahead_logo_medium.png b/src/core/pics/linkahead_logo_medium.png new file mode 100644 index 0000000000000000000000000000000000000000..dbaa6b5cb5f42573f1196e51beeef54115f611c4 Binary files /dev/null and b/src/core/pics/linkahead_logo_medium.png differ diff --git a/src/core/pics/logo_indiscale.101x25.png b/src/core/pics/logo_indiscale.101x25.png new file mode 100644 index 0000000000000000000000000000000000000000..1098f02f2ba4cdc6d26d954cb678bbeeb9a8c31c Binary files /dev/null and b/src/core/pics/logo_indiscale.101x25.png differ diff --git a/src/core/pics/logo_indiscale.162x40.png b/src/core/pics/logo_indiscale.162x40.png new file mode 100644 index 0000000000000000000000000000000000000000..a7cdc45515bc09ab5893a44124a06108908b73b5 Binary files /dev/null and b/src/core/pics/logo_indiscale.162x40.png differ diff --git a/src/core/pics/logo_indiscale_no_subtitle_218x35.png b/src/core/pics/logo_indiscale_no_subtitle_218x35.png new file mode 100644 index 0000000000000000000000000000000000000000..880fe68b409e22743ef38ba9a60ded2a254b2a5f Binary files /dev/null and b/src/core/pics/logo_indiscale_no_subtitle_218x35.png differ diff --git a/src/core/pics/logo_indiscale_no_subtitle_dark_bg_156x25.png b/src/core/pics/logo_indiscale_no_subtitle_dark_bg_156x25.png new file mode 100644 index 0000000000000000000000000000000000000000..d030af2c1a8b88f4d66c673d7432e6798cdb9ff8 Binary files /dev/null and b/src/core/pics/logo_indiscale_no_subtitle_dark_bg_156x25.png differ diff --git a/src/core/pics/logo_indiscale_no_subtitle_dark_bg_250x40.png b/src/core/pics/logo_indiscale_no_subtitle_dark_bg_250x40.png new file mode 100644 index 0000000000000000000000000000000000000000..597af0ba5ae164893287a5f96c31007fcf928b6d Binary files /dev/null and b/src/core/pics/logo_indiscale_no_subtitle_dark_bg_250x40.png differ diff --git a/src/core/pics/logo_linkahead_no_subtitle_144x25.png b/src/core/pics/logo_linkahead_no_subtitle_144x25.png new file mode 100644 index 0000000000000000000000000000000000000000..74f532398ae81ea4f259ab141f0facf0678cb884 Binary files /dev/null and b/src/core/pics/logo_linkahead_no_subtitle_144x25.png differ diff --git a/src/core/pics/map_tile_caosdb_logo.png b/src/core/pics/map_tile_caosdb_logo.png deleted file mode 100644 index 10d930f630c4bd3b863be98d0c13e860686145d4..0000000000000000000000000000000000000000 Binary files a/src/core/pics/map_tile_caosdb_logo.png and /dev/null differ diff --git a/src/core/pics/map_tile_linkahead_logo.png b/src/core/pics/map_tile_linkahead_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..3a270cb4eaee076e7af784cc1220e131e12d18fe Binary files /dev/null and b/src/core/pics/map_tile_linkahead_logo.png differ diff --git a/src/core/pics/tile.png b/src/core/pics/tile.png new file mode 100644 index 0000000000000000000000000000000000000000..9151a5ccd23c814f652a5511350c42c845122993 Binary files /dev/null and b/src/core/pics/tile.png differ diff --git a/src/core/webcaosdb.xsl b/src/core/webcaosdb.xsl index 38b6461e8793d9063f1d8f0047df9232c138da54..d4fc606902d95fb1d3a92b5d542ab977aea91d4a 100644 --- a/src/core/webcaosdb.xsl +++ b/src/core/webcaosdb.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/annotation.xsl b/src/core/xsl/annotation.xsl index 1ed1d28fe00cffaa2bde79cd7fef070b49771b38..1ca0f115d9116c1e8c18ad3e8a3e86c689374f07 100644 --- a/src/core/xsl/annotation.xsl +++ b/src/core/xsl/annotation.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/common.xsl b/src/core/xsl/common.xsl index abaa86e34f54e7e59b1df517c177018e4100dea5..63a155af7655e0498eeec8351bcf37a9711b2dd9 100644 --- a/src/core/xsl/common.xsl +++ b/src/core/xsl/common.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/entity.xsl b/src/core/xsl/entity.xsl index 85c6f0b4944872ef270a8d64089af720514e1b06..533b09abd71f7bebeb7602906a053d10bf85b907 100644 --- a/src/core/xsl/entity.xsl +++ b/src/core/xsl/entity.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/filesystem.xsl b/src/core/xsl/filesystem.xsl index a924900091ca2f2c2b00ed698e144c62d27511d6..5e4adde1eac8794d8674225ba4a547002df02680 100644 --- a/src/core/xsl/filesystem.xsl +++ b/src/core/xsl/filesystem.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/footer.xsl b/src/core/xsl/footer.xsl index ce491222ca8e018ced18167bdfc9e934c37fa4d8..d75f63439a32ab8d8bd1ed511f7fa6dd8f2e1387 100644 --- a/src/core/xsl/footer.xsl +++ b/src/core/xsl/footer.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * Copyright (C) 2019 Daniel Hornung (d.hornung@indiscale.com) diff --git a/src/core/xsl/main.xsl b/src/core/xsl/main.xsl index 1a0bdb812afb18ad6ab291acb975de994c5d3e47..2ce0dddd8fe20a598cd6e41e540a4173698e7e0d 100644 --- a/src/core/xsl/main.xsl +++ b/src/core/xsl/main.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen @@ -55,6 +55,12 @@ <xsl:value-of select="concat($basepath,'webinterface/${BUILD_NUMBER}/css/webcaosdb.css')"/> </xsl:attribute> </xsl:element> + <xsl:element name="link"> + <xsl:attribute name="rel">stylesheet</xsl:attribute> + <xsl:attribute name="href"> + <xsl:value-of select="concat($basepath,'webinterface/${BUILD_NUMBER}/css/linkahead.css')"/> + </xsl:attribute> + </xsl:element> <xsl:element name="link"> <xsl:attribute name="rel">stylesheet</xsl:attribute> <xsl:attribute name="href"> diff --git a/src/core/xsl/messages.xsl b/src/core/xsl/messages.xsl index 42035c9942652c78714b46e0d99b2b8138b0eb3c..bd7dc20d418a9040097d89d54322d19eae54637f 100644 --- a/src/core/xsl/messages.xsl +++ b/src/core/xsl/messages.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/navbar.xsl b/src/core/xsl/navbar.xsl index 1817df4056bc98f79c7a26a7540383ee8898e400..a35a17e922e03c5cc0ddbc3c99877256f15fa811 100644 --- a/src/core/xsl/navbar.xsl +++ b/src/core/xsl/navbar.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/parent.xsl b/src/core/xsl/parent.xsl index 9dd032b3a9d238e943f3be5e4f0e81a7c6b0d6e7..6b9156b5000f7eb647c333c4d8fe24039c94499f 100644 --- a/src/core/xsl/parent.xsl +++ b/src/core/xsl/parent.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/property.xsl b/src/core/xsl/property.xsl index d3524fbdf74ef17f8a2c69554371876dab79eae2..3396bf4556e7d25c949aa300c068bdb3df00603b 100644 --- a/src/core/xsl/property.xsl +++ b/src/core/xsl/property.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/query.xsl b/src/core/xsl/query.xsl index 6497cc9c64f7921c2b26b4ccd6535d181ddfeb4b..d1306d4d750ca911679d132a403d1f94c8e5bc2d 100644 --- a/src/core/xsl/query.xsl +++ b/src/core/xsl/query.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/server_properties.xsl b/src/core/xsl/server_properties.xsl index 06790a4c3a5c3e3017277ea8d256cb4d159ae5b2..de7438d2089ac55156332bd15899d55955af4a11 100644 --- a/src/core/xsl/server_properties.xsl +++ b/src/core/xsl/server_properties.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/src/core/xsl/welcome.xsl b/src/core/xsl/welcome.xsl index c3c80222492abaf243cbf227b143a9c13546a3f1..3f6889891c870715fb55197b40e3731bc8b2a7a6 100644 --- a/src/core/xsl/welcome.xsl +++ b/src/core/xsl/welcome.xsl @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen @@ -27,8 +27,8 @@ <xsl:template name="welcome"> <div class="caosdb-v-welcome-panel bg-light container"> <h1>Welcome</h1> - <p>This is CaosDB.</p> - <p>This is the default welcome message. If you are an administrator you can override it. Just copy <code>src/core/xsl/welcome.xsl</code> to <code>src/ext/xsl/welcome.xsl</code> and change this content. Then run <code>make</code> again in CaosdDB's web interface's root directory.</p> + <p>This is LinkAhead.</p> + <p>This is the default welcome message. If you are an administrator you can override it. Just copy <code>src/core/xsl/welcome.xsl</code> to <code>src/ext/xsl/welcome.xsl</code> and change this content. Then run <code>make</code> again in LinkAhead's web interface's root directory.</p> </div> </xsl:template> </xsl:stylesheet> diff --git a/src/doc/Makefile b/src/doc/Makefile index f3519f277badaf083c7f3512c64b18911ddf1f11..17510caebd1f34ed6dc0bc19108cb41fa730de76 100644 --- a/src/doc/Makefile +++ b/src/doc/Makefile @@ -1,5 +1,5 @@ # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020 Daniel Hornung <d.hornung@indiscale.com> diff --git a/src/doc/administration/comments.rst b/src/doc/administration/comments.rst index f44561d12c247ae5c1c42d9ac1c912d13ab768e2..ded141d9883cd619b4d9a076ac6e56b42595fc41 100644 --- a/src/doc/administration/comments.rst +++ b/src/doc/administration/comments.rst @@ -1,5 +1,5 @@ -The comments feature of the caosdb webui -======================================== +The comments feature of the LinkAhead webui +=========================================== WebUI contains a feature that allows users to add comments to existing records. @@ -72,14 +72,14 @@ following yaml file: Save this file under “datamodel.yaml”. -Make sure you have installed caosdb-models. +Make sure you have installed linkahead-advancedtools. Then sync the model: .. code:: python - import caosdb as db - from caosmodels.parser import parse_model_from_yaml + import linkahead as db + from linkaheadadvancedtools.models.parser import parse_model_from_json_schema model = parse_model_from_yaml("datamodel.yaml") model.sync_data_model(noquestion=True) diff --git a/src/doc/administration/static-snapshots.md b/src/doc/administration/static-snapshots.md index b7f292ad37d4a35f63aed406600190e988bf84a6..3f02a2a7553ba0534889d57a7ea9dabe8f638675 100644 --- a/src/doc/administration/static-snapshots.md +++ b/src/doc/administration/static-snapshots.md @@ -6,28 +6,28 @@ It can be helpful to generate static snapshots of WebUI contents, e.g. for revie ## Create the static webui folder in the docker container -We need a static version of the caosdb-webui. In principle it can be simply copied from e.g. a running docker container or from the public-directory. As it contains self-referencing (cyclic) symlinks a little bit of care has to be taken. +We need a static version of the LinkAhead webui. In principle it can be simply copied from e.g. a running docker container or from the public-directory. As it contains self-referencing (cyclic) symlinks a little bit of care has to be taken. ### Using Docker -Login to the caosdb/linkahead docker container as root: +Login to the linkahead docker container as root: ```bash docker exec -u 0 -ti linkahead /bin/bash ``` -We need to be root (`-u 0`) in order to be able to create a copy of caosdb-webui within the container. +We need to be root (`-u 0`) in order to be able to create a copy of linkahead-webui within the container. Create the copy using `cp` and the option for following symlinks `-L`: ```bash -cp -L git/caosdb-server/caosdb-webui/public/ webui-copy +cp -L git/linkahead-server/linkahead-webui/public/ webui-copy ``` It will warn you that two symlinks (which are cyclic) cannot be created. That's fine, we will create these two symlinks later. ``` -cp: cannot copy cyclic symbolic link 'git/caosdb-server/caosdb-webui/public/1602145811' <- The number here is a "unique" build number -cp: cannot copy cyclic symbolic link 'git/caosdb-server/caosdb-webui/public/webinterface' +cp: cannot copy cyclic symbolic link 'git/linkahead-server/linkahead-webui/public/1602145811' <- The number here is a "unique" build number +cp: cannot copy cyclic symbolic link 'git/linkahead-server/linkahead-webui/public/webinterface' ``` **Please copy the build number somewhere, or make sure your terminal history does not get wiped.** diff --git a/src/doc/conf.py b/src/doc/conf.py index 564684cb8f4a7f75ea01aac28c9902b6dabfea4f..c03b00f24bfce563542fdc0b992bc5b73d936af6 100644 --- a/src/doc/conf.py +++ b/src/doc/conf.py @@ -21,7 +21,7 @@ import sphinx_rtd_theme -project = 'caosdb-webui' +project = 'linkahead-webui' copyright = '2022, IndiScale GmbH' author = 'Daniel Hornung' @@ -113,7 +113,7 @@ html_theme = "sphinx_rtd_theme" # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. -htmlhelp_basename = 'caosdb-webuidoc' +htmlhelp_basename = 'linkahead-webuidoc' # -- Options for LaTeX output ------------------------------------------------ @@ -140,7 +140,7 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'caosdb-webui.tex', 'caosdb-webui Documentation', + (master_doc, 'linkahead-webui.tex', 'LinkAhead WebUI Documentation', 'IndiScale GmbH', 'manual'), ] @@ -150,7 +150,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'caosdb-webui', 'caosdb-webui Documentation', + (master_doc, 'linkahead-webui', 'LinkAhead WebUI Documentation', [author], 1) ] @@ -161,8 +161,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'caosdb-webui', 'caosdb-webui Documentation', - author, 'caosdb-webui', 'One line description of project.', + (master_doc, 'linkahead-webui', 'LinkAhead WebUI Documentation', + author, 'linkahead-webui', 'One line description of project.', 'Miscellaneous'), ] diff --git a/src/doc/extension.rst b/src/doc/extension.rst index 18fd0f25a8ce75cd19edfa845b06f5c45bd3fd20..99bf54c3a0bd30a3439d49802ff621fe60120bde 100644 --- a/src/doc/extension.rst +++ b/src/doc/extension.rst @@ -1,5 +1,5 @@ -Extending the CaosDB Web Interface +Extending the LinkAhead Web Interface ================================== Here we collect information on how to extend the web interface as a developer. diff --git a/src/doc/extension/display_of_properties.rst b/src/doc/extension/display_of_properties.rst index e19b7030b2a93d7c9a5eed772233ccbfa02b145b..c98b891ee0475269a508e52b7af92e374d64c5a5 100644 --- a/src/doc/extension/display_of_properties.rst +++ b/src/doc/extension/display_of_properties.rst @@ -6,7 +6,7 @@ Hide or show properties for specific roles and users .. note:: - This feature was introduced CaosDB WebUI 0.10. + This feature was introduced LinkAhead WebUI 0.10. .. warning:: @@ -95,7 +95,7 @@ configured in the same configuration file as above, i.e., in This ensures that the properties of all entities with the declared types are displayed in the defined order if present. Additional properties, that are not -part of this list are appended in their original order as returned from the CaosDB +part of this list are appended in their original order as returned from the LinkAhead server. Using again the data of demo.indiscale.com for an example, a configuration might @@ -136,5 +136,5 @@ Future ****** In the future, this feature will be extended to allow to `toggle -<https://gitlab.com/caosdb/caosdb-webui/-/issues/190>`__ properties of +<https://gitlab.com/linkahead/linkahead-webui/-/issues/190>`__ properties of predifined RecordTypes. diff --git a/src/doc/extension/forms.rst b/src/doc/extension/forms.rst index 11a7167d1277c9fbb7ed6dda6e611ce4aca48302..d5ede1b1aeef9365df2d170fda3cd17d6cbf3e85 100644 --- a/src/doc/extension/forms.rst +++ b/src/doc/extension/forms.rst @@ -1,8 +1,8 @@ -Creating forms for the CaosDB Web Interface +Creating forms for the LinkAhead Web Interface =========================================== -The ``form_elements`` module provides a library for generating forms from simple config objects. The forms are styled for the seamless integration into the CaosDB web interface and are especially useful for calling server side scripts. +The ``form_elements`` module provides a library for generating forms from simple config objects. The forms are styled for the seamless integration into the LinkAhead web interface and are especially useful for calling server side scripts. See also the :doc:`API documentation <../api/module-form_elements>` diff --git a/src/doc/extension/module.md b/src/doc/extension/module.md index 36731ee72d7a1e4be2f4624961486152579a0ff5..14eae2afd89365fee056cbfce069fb8b434836a0 100644 --- a/src/doc/extension/module.md +++ b/src/doc/extension/module.md @@ -1,5 +1,5 @@ -# How to add a module to CaosDB WebUI -The CaosDB WebUI is organized in modules which can easily be added and enabled or disabled per module. +# How to add a module to LinkAhead WebUI +The LinkAhead WebUI is organized in modules which can easily be added and enabled or disabled per module. Only a few steps are necessary to create a new module. @@ -88,4 +88,4 @@ may append all your module files in the desired order to the MODULE_DEPENDENCIES+=(libA.js libB.js ext_flight_preview.js) -In this example, `libA.js`, `libB.js` and `ext_flight_preview.js` are custom modules developed for this particular CaosDB webui instance. +In this example, `libA.js`, `libB.js` and `ext_flight_preview.js` are custom modules developed for this particular LinkAhead webui instance. diff --git a/src/doc/extension/query_templates.rst b/src/doc/extension/query_templates.rst index 8d110bb84a0993d29b4cff70649640e770786d3b..61ff470e061562ba16ba4cb12bba4e7e7a4a91ed 100644 --- a/src/doc/extension/query_templates.rst +++ b/src/doc/extension/query_templates.rst @@ -6,7 +6,7 @@ Query shortcuts Until they have been `re-implemented <https://gitlab.com/caosdb/caosdb-webui/-/issues/229>`__ for the new query - panel which has been introduced in CaosDB WebUI 0.11, query shortcuts only + panel which has been introduced in LinkAhead WebUI 0.11, query shortcuts only work with the legacy query panel. Introduction @@ -138,7 +138,7 @@ for experiments and return a table.”. It will be the text that is visible in the shortcuts section. The ``Query`` is the query that will be executed with the shortcut. It -adheres to the definition of the CaosDB Query Language (CQL). +adheres to the definition of the LinkAhead Query Language (CQL). The corresponding query of our example is ``SELECT date, name FROM Experiment``. @@ -212,26 +212,26 @@ The following example for the file global_query_shortcuts.json would create two Data Model for User Query Templates ----------------------------------- -The current default data model for CaosDB does not include the RecordTypes which are needed for the user query templates. See https://gitlab.indiscale.com/caosdb/src/caosdb-webui/-/issues/104 for details. +The current default data model for LinkAhead does not include the RecordTypes which are needed for the user query templates. See https://gitlab.indiscale.com/caosdb/src/linkahead-webui/-/issues/104 for details. The solution is to create the RecordTypes, e.g. using the Python interface, as follows: .. code-block:: python - datamodel = caosdb.Container() + datamodel = linkahead.Container() datamodel.extend([ - caosdb.Property("Query", datatype=caosdb.TEXT), - caosdb.Property("templateDescription", datatype=caosdb.TEXT), - caosdb.RecordType( + linkahead.Property("Query", datatype=linkahead.TEXT), + linkahead.Property("templateDescription", datatype=linkahead.TEXT), + linkahead.RecordType( "UserTemplate" - ).add_property("Query", importance=caosdb.OBLIGATORY - ).add_property("templateDescription", importance=caosdb.OBLIGATORY), + ).add_property("Query", importance=linkahead.OBLIGATORY + ).add_property("templateDescription", importance=linkahead.OBLIGATORY), ]) datamodel.insert() The data model is also included in the ``tools/query_template_datamodel.yml`` within this repository which can be imported into your database with ``python -m -caosadvancedtools.models.parser --sync query_template_datamodel.yml`` (you need -to have `CaosDB Advanced User -Tools<https://pypi.org/project/caosadvancedtools/>`__ installed and configured). +linkaheadadvancedtools.models.parser --sync query_template_datamodel.yml`` (you need +to have `LinkAhead Advanced User +Tools<https://pypi.org/project/linkaheadadvancedtools/>`__ installed and configured). diff --git a/src/doc/extension/references.rst b/src/doc/extension/references.rst index c41d907de57b658194e062abcd734b41ef88ab9b..427d791953502305ddeca19ce4dcc2e95f852486 100644 --- a/src/doc/extension/references.rst +++ b/src/doc/extension/references.rst @@ -1,7 +1,7 @@ Customizing the display of referenced entities ============================================= -CaosDB WebUI supports the customized display of referenced entities +LinkAhead WebUI supports the customized display of referenced entities using the :doc:`ext_references <../api/module-resolve_references>` module. The ``BUILD_MODULE_EXT_RESOLVE_REFERENCES`` build variable has to be set to ``ENABLED`` (see :doc:`/getting_started`) in order to use @@ -9,8 +9,8 @@ this module. You may then define your own JavaScript module to define how references to specific Records should be resolved. The module has to -be located at a directory which is known to CaosDB WebUI; we recommend -``caosdb-webui/src/ext/js``. Set the value of the +be located at a directory which is known to LinkAhead WebUI; we recommend +``linkahead-webui/src/ext/js``. Set the value of the ``BUILD_EXT_REFERENCES_CUSTOM_RESOLVER`` build variable to the name of this module. The module has to have a ``resolve`` function which takes an entity id as its only parameter and returns a ``reference_info`` @@ -32,6 +32,6 @@ the basic structure of the module should look like } An example is located in -``caosdb-webui/src/core/js/reference_resolver/caosdb_default_person.js``. It +``linkahead-webui/src/core/js/reference_resolver/linkahead_default_person.js``. It resolves any reference to a ``Person`` Record to the value of its ``firstname`` and ``lastname`` properties separated by a space and is active by default. diff --git a/src/doc/extension/xslt-debugging.md b/src/doc/extension/xslt-debugging.md index 80443dd8656da5645a5315f83f5ce26dfbbebce0..f35efce1b8f9becf9f1eb55115f310b1eddcfedc 100644 --- a/src/doc/extension/xslt-debugging.md +++ b/src/doc/extension/xslt-debugging.md @@ -1,6 +1,6 @@ # XSLT Debugging -The CaosDB WebUI uses [XSLT](https://en.wikipedia.org/wiki/XSLT) to transform the servers response into a web page. +The LinkAhead WebUI uses [XSLT](https://en.wikipedia.org/wiki/XSLT) to transform the servers response into a web page. In the webui-repository these XSLT stylesheets can be found in `src/core/` and `src/core/xsl`. The XSLT stylesheet is typically interpreted on the client side, e.g. in Mozilla Firefox. Error output of the browser regarding XSLT problems are typically hard to debug. For example, Firefox typically does not print detailed information about the location of an exception in the sourcecode. @@ -28,6 +28,6 @@ xsltproc <stylesheet> <xmlfile> So a possible workflow for debugging an xslt script could be: * Save the test response from the server as `test.xml`. -* Run `make` in repository `caosdb-webui` -* Go to folder `public` in `caosdb-webui` +* Run `make` in repository `linkahead-webui` +* Go to folder `public` in `linkahead-webui` * Run: `xsltproc webcaosdb.xsl test.xml` diff --git a/src/doc/index.rst b/src/doc/index.rst index fe38c99c75f288ee82591dd07de30d44c313c3c9..eab31e859ac4d747934458ce23a39772c44e1ca4 100644 --- a/src/doc/index.rst +++ b/src/doc/index.rst @@ -1,5 +1,5 @@ -Welcome to the documentation of CaosDB's web UI! +Welcome to the documentation of LinkAhead's web UI! ================================================ .. toctree:: diff --git a/src/doc/tutorials/edit_mode.rst b/src/doc/tutorials/edit_mode.rst index ff126a962ce551cea348fab30f2ecc42ffa56623..a2a0310f6f715fabeb8423dcdb3e499ed5d7d256 100644 --- a/src/doc/tutorials/edit_mode.rst +++ b/src/doc/tutorials/edit_mode.rst @@ -1,12 +1,12 @@ The Edit Mode ============= -Entities in CaosDB can be changed, created, and deleted using the +Entities in LinkAhead can be changed, created, and deleted using the ``Edit Mode``. In the following chapter, you'll learn how. You should be fairly familiar with the concepts of Records, RecordTypes and -Properties in CaosDB. If you have doubts, please have a look at the +Properties in LinkAhead. If you have doubts, please have a look at the `data model documentation -<https://docs.indiscale.com/caosdb-server/Data-Model.html>`_. +<https://docs.indiscale.com/linkhead-server/Data-Model.html>`_. .. contents:: :local: @@ -14,7 +14,7 @@ Properties in CaosDB. If you have doubts, please have a look at the Getting started --------------- -In usual setups of CaosDB, you have to log in to use the edit +In usual setups of LinkAhead, you have to log in to use the edit mode. Afterwards, you can access it by clicking on the button in the top menu as shown below: @@ -31,7 +31,7 @@ Edit Mode``. Unsurprisingly, clicking here terminates the edit mode. privileges. You can only create/edit/delete entities if your user is allowed to do that. User and group permissions can be configured in detail as explained in the `server documentation - <https://docs.indiscale.com/caosdb-server/permissions.html>`_. + <https://docs.indiscale.com/linkhead-server/permissions.html>`_. When you have entered the edit mode, you'll see the edit mode toolbox appearing on the right hand side of your screen: @@ -106,7 +106,7 @@ is inserted by clicking ``Save``. Extend your data model: Add RecordTypes and Properties ------------------------------------------------------ -You can extend the data model of your CaosDB by creating new RecordTypes and Properties directly +You can extend the data model of your LinkAhead by creating new RecordTypes and Properties directly from the WebUI. This is done by clicking on the "Create Property" and "Create RecordType" buttons in the edit mode toolbox: @@ -182,7 +182,7 @@ When creating a new Property, a Property card shows up: Inheritance plays a role here! For example, if you select “Experiment”, all “Magnetism Experiment” Records are also accepted (if they inherit from “Experiment”). - See `here <https://docs.indiscale.com/caosdb-server/specification/Datatype.html>`_ for more + See `here <https://docs.indiscale.com/linkhead-server/specification/Datatype.html>`_ for more information on the datatypes. 3. If you want the new Property to be a list, check the checkbox. List diff --git a/src/doc/tutorials/first_steps.rst b/src/doc/tutorials/first_steps.rst index 48126b2aab6175da557919133493585eda59bbfa..db44f8f0af00e399ea73827f7a3936799612d55f 100644 --- a/src/doc/tutorials/first_steps.rst +++ b/src/doc/tutorials/first_steps.rst @@ -1,9 +1,9 @@ First Steps =========== -Before using or even manipulating data stored in CaosDB, it is important to +Before using or even manipulating data stored in LinkAhead, it is important to understand the way data is structured. Here, we will briefly look at this -structure. You can find more details here_. In CaosDB data is stored in objects called +structure. You can find more details here_. In LinkAhead data is stored in objects called `Records`. A `Record` can have multiple `Properties`, like numbers, text or references to other `Records`. `RecordTypes` are kind of blue prints for `Records` and provide a structure to the data. Let's look at an example: diff --git a/src/doc/tutorials/index.rst b/src/doc/tutorials/index.rst index b01e45e3d574cd675b8410da1dbd1d79cb8e20c0..daa70e6a2e0c59689ee819c2b0a8c13390df03ed 100644 --- a/src/doc/tutorials/index.rst +++ b/src/doc/tutorials/index.rst @@ -1,5 +1,5 @@ -CaosDB Web Interface Tutorials +LinkAhead Web Interface Tutorials ============================== This chapter contains the following tutorials: diff --git a/src/doc/tutorials/query.rst b/src/doc/tutorials/query.rst index bd57093869bdb8ecb52e7fe93d6ac5a3f6d03328..0dad24c9c1ce2f979abe4f1fd9ca4cbe1213408c 100644 --- a/src/doc/tutorials/query.rst +++ b/src/doc/tutorials/query.rst @@ -1,15 +1,15 @@ -Querying CaosDB +Querying LinkAhead =============== -You should have the web interface of a CaosDB instance at hand. If you do not +You should have the web interface of a LinkAhead instance at hand. If you do not have one, you can visit https://demo.indiscale.com Introduction ------------ -The semantic data model of CaosDB allows efficient data access. The -CaosDB Query Language (CQL) is used to search data. Queries can be entered in +The semantic data model of LinkAhead allows efficient data access. The +LinkAhead Query Language (CQL) is used to search data. Queries can be entered in the webinterface under the respective menu entry. Let's start with a simple one:: diff --git a/src/legacy/js/ext_map.js b/src/legacy/js/ext_map.js index 9d2e1d5d362fb4d24853fd99b81053b0198d8c27..2fd23bdfdf7fb42b06f967caa1b26e773f4a1363 100644 --- a/src/legacy/js/ext_map.js +++ b/src/legacy/js/ext_map.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH (info@indiscale.com) * Copyright (C) 2019 Timm Fitschen (t.fitschen@indiscale.com) @@ -81,7 +81,7 @@ var caosdb_map = new function () { */ /** - * The DataModelConfig object is used to define the CaosDB Properties which + * The DataModelConfig object is used to define the LinkAhead Properties which * are interpreted as latitude and longitude in the map. * * Note: Both latitude and longitude are expected to be represented in @@ -121,7 +121,7 @@ var caosdb_map = new function () { /** * The ViewConfig contains the most important parts of the configuration as * there are no default values set for legal reasons - each person who is - * responsible for a CaosDB Server and WebUI has to answer for the + * responsible for a LinkAhead Server and WebUI has to answer for the * configuration of the tiling servers and possibly has to negotiate the * terms of use with the tiling service providers or provide an own tiling * server. @@ -724,7 +724,7 @@ var caosdb_map = new function () { "view_change": false, "tileLayer": { "type": "wms", - "url": "/webinterface/${BUILD_NUMBER}/pics/map_tile_caosdb_logo.png" + "url": "/webinterface/${BUILD_NUMBER}/pics/map_tile_linkahead_logo.png" } }]; @@ -1381,7 +1381,7 @@ var caosdb_map = new function () { /** - * Retrieve the map config from the CaosDBServer. + * Retrieve the map config from the LinkAheadServer. * * @param {string} [resource=ext_map.json] - location of the config * file. diff --git a/src/linkahead_icon_512.png b/src/linkahead_icon_512.png deleted file mode 100644 index 84d1b5ebd715b55418444787c82689b28d917e24..0000000000000000000000000000000000000000 Binary files a/src/linkahead_icon_512.png and /dev/null differ diff --git a/src/server_side_scripting/ext_file_download/zip_files.py b/src/server_side_scripting/ext_file_download/zip_files.py index 6bd34cbbda9fd3968024b70094c586b5356e4555..2ecfaa8c25b694c7de940cd03e9bf97196ce2b86 100755 --- a/src/server_side_scripting/ext_file_download/zip_files.py +++ b/src/server_side_scripting/ext_file_download/zip_files.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2019 IndiScale GmbH # @@ -30,10 +30,10 @@ import sys from tempfile import NamedTemporaryFile from zipfile import ZipFile -import caosdb as db +import linkahead as db import pandas as pd -from caosadvancedtools.serverside import helper -from caosdb import CaosDBException, ConsistencyError, EntityDoesNotExistError +from linkaheadadvancedtools.serverside import helper +from linkahead import LinkAheadException, ConsistencyError, EntityDoesNotExistError def _parse_arguments(): @@ -43,8 +43,8 @@ def _parse_arguments(): """ parser = argparse.ArgumentParser(description='__doc__') parser.add_argument('-a', '--auth-token', required=False, - help=("An authentication token. If not provided caosdb" - " pylib will search for other methods of " + help=("An authentication token. If not provided LinkAhead's " + "pylib will search for other methods of " "authentication if necessary.")) parser.add_argument('ids', help="list of entity ids.") parser.add_argument('table', help="tsv table to be saved (as string).") @@ -81,14 +81,14 @@ def collect_files_in_zip(ids, table): # Desired behavior: The script should go on with the other # ids, but the user should be informed about the missing files. # How should we do this? - logger = logging.getLogger("caosadvancedtools") + logger = logging.getLogger("linkaheadadvancedtools") logger.error("Did not find Entity with ID={}.".format( file_id)) raise e savename = nc.get_unique_savename(os.path.basename(tmp.path)) val_file = helper.get_file_via_download( - tmp, logger=logging.getLogger("caosadvancedtools")) + tmp, logger=logging.getLogger("linkaheadadvancedtools")) zf.write(val_file, savename) diff --git a/src/server_side_scripting/ext_table_preview/pandas_table_preview.py b/src/server_side_scripting/ext_table_preview/pandas_table_preview.py index c0659d9b1839c43e0629a878d792c414577ea344..16636f7d6f739dd9a49349686075863e87c15a10 100755 --- a/src/server_side_scripting/ext_table_preview/pandas_table_preview.py +++ b/src/server_side_scripting/ext_table_preview/pandas_table_preview.py @@ -2,7 +2,7 @@ # encoding: utf-8 # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com> @@ -33,17 +33,17 @@ import os import sys from datetime import datetime -import caosdb as db +import linkahead as db import pandas as pd -from caosadvancedtools.serverside.helper import get_argument_parser -from caosadvancedtools.serverside.logging import configure_server_side_logging +from linkaheadadvancedtools.serverside.helper import get_argument_parser +from linkaheadadvancedtools.serverside.logging import configure_server_side_logging MAXIMUMFILESIZE = 1e8 VALID_ENDINGS = [".csv", ".tsv", ".xls", ".xlsx"] def get_file(eid): - """ retrieves the file entity from caosdb """ + """Retrieve the file entity from LinkAhead.""" try: fi = db.File(id=eid) fi.retrieve() @@ -135,7 +135,7 @@ if __name__ == "__main__": args = parser.parse_args() debug_file = configure_server_side_logging() - logger = logging.getLogger("caosadvancedtools") + logger = logging.getLogger("linkaheadadvancedtools") db.configure_connection(auth_token=args.auth_token) entity_id = args.filename diff --git a/test/core/index.html b/test/core/index.html index 0dfea85580fe64d0f7a4676f1d919ec5662dee09..bab42e265122c9a065f4840cb0a62919b3b18084 100644 --- a/test/core/index.html +++ b/test/core/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen @@ -24,7 +24,7 @@ <html> <head> <meta charset="utf-8" /> - <title>WebCaosDB Unit Tests</title> + <title>WebLinkAhead Unit Tests</title> <link rel="stylesheet" href="css/qunit.css" /> <link rel="stylesheet" href="css/webcaosdb.css" /> <link rel="stylesheet" href="css/leaflet.css" /> diff --git a/test/core/js/modules/annotation.xsl.js b/test/core/js/modules/annotation.xsl.js index 3640d93c0e1d33c638c92c9e2830c77c0e44ff40..0d21c451151899d9c3a278b3aa2dc6c9e0290a1a 100644 --- a/test/core/js/modules/annotation.xsl.js +++ b/test/core/js/modules/annotation.xsl.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/modules/caosdb.js.js b/test/core/js/modules/caosdb.js.js index b9925f28aa8eee3a828b17ea2f0dcd6b050f2711..d4b4c509b177ee76c50368ded4ecee40caecb4d9 100644 --- a/test/core/js/modules/caosdb.js.js +++ b/test/core/js/modules/caosdb.js.js @@ -458,7 +458,7 @@ QUnit.test("getEntityUnit", function(assert) { // Test for bug #53 -// https://gitlab.com/caosdb/caosdb-webui/issues/53 +// https://gitlab.com/linkahead/linkahead-webui/issues/53 QUnit.test("unset_entity_references", function(assert) { console.log(this.unsetReferencesTest); for (var i=0; i<this.unsetReferencesTest.length; i++) { diff --git a/test/core/js/modules/common.xsl.js b/test/core/js/modules/common.xsl.js index 16f84cafc3bdb0b48a42cc10a1cdc03445f48541..7b9a68a6768d6ebc232b683686a368ef29f1a034 100644 --- a/test/core/js/modules/common.xsl.js +++ b/test/core/js/modules/common.xsl.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/modules/edit_mode.js.js b/test/core/js/modules/edit_mode.js.js index 6f762aaa168acfaca79141617f0027726fde7c67..fa685885683557b0e2e8936e8b60579afd4124c3 100644 --- a/test/core/js/modules/edit_mode.js.js +++ b/test/core/js/modules/edit_mode.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen @@ -576,7 +576,7 @@ QUnit.test("test case 1 - insert property", async function (assert) { // tests for closed issue https://gitlab.com/caosdb/caosdb-webui/issues/47 assert.equal(main_panel.find(".caosdb-entity-panel .caosdb-entity-actions-panel").length, 1, "general actions panel there"); - assert.equal(main_panel.find(".caosdb-entity-panel .caosdb-f-edit-mode-entity-actions-panel").length, 1, "edit_mode actions panel there (BUG caosdb-webui#47)"); + assert.equal(main_panel.find(".caosdb-entity-panel .caosdb-f-edit-mode-entity-actions-panel").length, 1, "edit_mode actions panel there (BUG linkahead-webui#47)"); main_panel.remove(); test_tool_box.remove(); @@ -899,7 +899,7 @@ QUnit.test("Bug #95", async function (assert) { assert.equal($(arg1).val(), "1234", "still old value after"); assert.equal($(arg1).find("option").length, 4, "4 options after"); - assert.equal($(arg1).find(":selected").text(), "Name: RName1234, CaosDB ID: 1234", "new text after"); + assert.equal($(arg1).find(":selected").text(), "Name: RName1234, LinkAhead ID: 1234", "new text after"); edit_mode.fill_reference_drop_down = proxied; fill_method_done(); @@ -934,7 +934,7 @@ QUnit.test("fill_reference_drop_down", async function (assert) { assert.equal(select.find("option").length, 3, "3 options after"); assert.equal(select.val(), "1234", "old value after"); - assert.equal(select.find(":selected").text(), "Name: RName1234, CaosDB ID: 1234", "new text after"); + assert.equal(select.find(":selected").text(), "Name: RName1234, LinkAhead ID: 1234", "new text after"); }); @@ -950,5 +950,5 @@ QUnit.test("_create_reference_options", async function (assert) { </Response> `)); assert.equal(edit_mode._create_reference_options(entities)[0].value, "RID"); - assert.equal(edit_mode._create_reference_options(entities)[0].innerHTML, "Name: RName, CaosDB ID: RID"); + assert.equal(edit_mode._create_reference_options(entities)[0].innerHTML, "Name: RName, LinkAhead ID: RID"); }); diff --git a/test/core/js/modules/entity.xsl.js b/test/core/js/modules/entity.xsl.js index 69f553c76c57143ea7b10560c304ba2ffa7da209..feb543620ddfdb77b8457bb5c9125799ffeaba74 100644 --- a/test/core/js/modules/entity.xsl.js +++ b/test/core/js/modules/entity.xsl.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/modules/ext_applicable.js.js b/test/core/js/modules/ext_applicable.js.js index 596f41c9c9a80e47f4a8ebd8268194af4eba1236..9a60a209efae02bd724ab48ab5eee25952712062 100644 --- a/test/core/js/modules/ext_applicable.js.js +++ b/test/core/js/modules/ext_applicable.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/test/core/js/modules/ext_autocomplete.js.js b/test/core/js/modules/ext_autocomplete.js.js index aaefd228705e12a0c47bf47f1a4e1ce7936d58f6..d932980440b6d68b7600a892a9897aec967f1fb8 100644 --- a/test/core/js/modules/ext_autocomplete.js.js +++ b/test/core/js/modules/ext_autocomplete.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * @@ -89,7 +89,7 @@ QUnit.test("searchPost", async function(assert) { }); QUnit.test("searchPost webui#170", async function(assert) { - // https://gitlab.com/caosdb/caosdb-webui/-/issues/170 + // https://gitlab.com/linkahead/linkahead-webui/-/issues/170 // Autocompletion for "IS REFERENCED BY" leads to query syntax error const resultsFromServer = ["REFERENCED BY"]; const origJQElement = [{ diff --git a/test/core/js/modules/ext_bookmarks.js.js b/test/core/js/modules/ext_bookmarks.js.js index 8130fe422a5bd124ef1c6767708b036e2e904f53..81db5cd478be0524dad0205c87ca24138fe1b855 100644 --- a/test/core/js/modules/ext_bookmarks.js.js +++ b/test/core/js/modules/ext_bookmarks.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/test/core/js/modules/ext_bottom_line.js.js b/test/core/js/modules/ext_bottom_line.js.js index 48dc64f231c1dc5929eece1f44756d60cb17c0a1..ed433273e6406bb996c04ebbaaa5fe3429825f1a 100644 --- a/test/core/js/modules/ext_bottom_line.js.js +++ b/test/core/js/modules/ext_bottom_line.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * diff --git a/test/core/js/modules/ext_cosmetics.js.js b/test/core/js/modules/ext_cosmetics.js.js index f51226ee01a1607c9ba1580c3760500fdec760b1..f903469c6512779aea4df737e01eadd22a374daa 100644 --- a/test/core/js/modules/ext_cosmetics.js.js +++ b/test/core/js/modules/ext_cosmetics.js.js @@ -1,5 +1,5 @@ /* - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021-2023 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/test/core/js/modules/ext_file_download.js.js b/test/core/js/modules/ext_file_download.js.js index 1103f61304c56259cc1a54a94c0c6b6b201d2aa5..a4c38aeb9767a3d00865fc9ee0ee99c5bc1baf29 100644 --- a/test/core/js/modules/ext_file_download.js.js +++ b/test/core/js/modules/ext_file_download.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com> diff --git a/test/core/js/modules/ext_map.js.js b/test/core/js/modules/ext_map.js.js index 54c8d003029632f13277c05c332b0c4993c35c63..37d12a9277a6a7b3444912d946152df5871f67fc 100644 --- a/test/core/js/modules/ext_map.js.js +++ b/test/core/js/modules/ext_map.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * diff --git a/test/core/js/modules/ext_prop_display.js.js b/test/core/js/modules/ext_prop_display.js.js index 8c2c0264b44810786ed64fc556d21fb21dbe9b1f..cc12c340ed13b34e1c927b67c2e79f794a49f010 100644 --- a/test/core/js/modules/ext_prop_display.js.js +++ b/test/core/js/modules/ext_prop_display.js.js @@ -1,5 +1,5 @@ /* - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2022 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2022 Florian Spreckelsen <f.spreckelsen@indiscale.com> diff --git a/test/core/js/modules/ext_qrcode.js.js b/test/core/js/modules/ext_qrcode.js.js index d4d505913035d17d14cb7b110e8dc67b0a018a44..2fcc4f0906006412acbadff1bd3ff2310b1ad624 100644 --- a/test/core/js/modules/ext_qrcode.js.js +++ b/test/core/js/modules/ext_qrcode.js.js @@ -1,5 +1,5 @@ /* - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/test/core/js/modules/ext_references.js.js b/test/core/js/modules/ext_references.js.js index 905b90674c6fdbeb683e42900960d646a0d0a315..404208d4c68c89cb8960c993082d3586a63c6842 100644 --- a/test/core/js/modules/ext_references.js.js +++ b/test/core/js/modules/ext_references.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/modules/ext_sss_markdown.js.js b/test/core/js/modules/ext_sss_markdown.js.js index 07199e869f56c7042a78dba6938de55e4a36e727..8a76c3f0528aa4dee9b18833f6654a503bdd0659 100644 --- a/test/core/js/modules/ext_sss_markdown.js.js +++ b/test/core/js/modules/ext_sss_markdown.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/test/core/js/modules/ext_trigger_crawler_form.js.js b/test/core/js/modules/ext_trigger_crawler_form.js.js index e2a4b0c8a494e43234547de4740ea62dde77beac..43ac5f727cfeeaae35085a351fdeb2654bf39bb6 100644 --- a/test/core/js/modules/ext_trigger_crawler_form.js.js +++ b/test/core/js/modules/ext_trigger_crawler_form.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> diff --git a/test/core/js/modules/ext_xls_download.js.js b/test/core/js/modules/ext_xls_download.js.js index c0343828b3e4df976b006d8375936c8a339ea496..6552e9d5828dd26803d43025d45151ff9d6c6594 100644 --- a/test/core/js/modules/ext_xls_download.js.js +++ b/test/core/js/modules/ext_xls_download.js.js @@ -1,6 +1,6 @@ /** * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * diff --git a/test/core/js/modules/form_elements.js.js b/test/core/js/modules/form_elements.js.js index c1fa09ddbca3708d82a68c8ec4351c7951e81b16..cc9985bb9000caae2a2286a2b2c44872881ebd9e 100644 --- a/test/core/js/modules/form_elements.js.js +++ b/test/core/js/modules/form_elements.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * diff --git a/test/core/js/modules/form_panel.js.js b/test/core/js/modules/form_panel.js.js index 0203e0b50a1f11bca653ffb8ff6e8b36824b73e3..f0cf34336292f95c17c9349270494ac8fa54b877 100644 --- a/test/core/js/modules/form_panel.js.js +++ b/test/core/js/modules/form_panel.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2021 IndiScale GmbH * diff --git a/test/core/js/modules/navbar.xsl.js b/test/core/js/modules/navbar.xsl.js index 78113ce2bd7c9ada61205ae5fc3b2e098ee92e8f..dcc78d370b26dbe1436afee94053fa35d1595c28 100644 --- a/test/core/js/modules/navbar.xsl.js +++ b/test/core/js/modules/navbar.xsl.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/modules/query.xsl.js b/test/core/js/modules/query.xsl.js index e644a674b6a8e58fd7c1395d1e337d5416c2bc5e..9b45f35505f4cd833d63a0d888e174c0e58981bc 100644 --- a/test/core/js/modules/query.xsl.js +++ b/test/core/js/modules/query.xsl.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/modules/query_shortcuts.js.js b/test/core/js/modules/query_shortcuts.js.js index 3798c5fe81ea6e860cd176797a9a6959a9a64895..fe8ca9b59b40194faddef9e3ea382be34f2163cc 100644 --- a/test/core/js/modules/query_shortcuts.js.js +++ b/test/core/js/modules/query_shortcuts.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/modules/tour.js.js b/test/core/js/modules/tour.js.js index f1a2e77a2bf6594bce3aa71502aa3d9d154556e2..f2b33572578fa1354eb0f713378452b7d0576d7a 100644 --- a/test/core/js/modules/tour.js.js +++ b/test/core/js/modules/tour.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH * diff --git a/test/core/js/modules/webcaosdb.js.js b/test/core/js/modules/webcaosdb.js.js index b43af58d4fef57aafd7d5d46998fc1a13725e868..3c60a95c12c609db9caa6e13205c75f6343de23e 100644 --- a/test/core/js/modules/webcaosdb.js.js +++ b/test/core/js/modules/webcaosdb.js.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/modules/welcome.xsl.js b/test/core/js/modules/welcome.xsl.js index de59eedca9bbacdbc4c797f9bfd51d11bb332132..cebb21688949ea8e02209aab0653f18a0b1bad2f 100644 --- a/test/core/js/modules/welcome.xsl.js +++ b/test/core/js/modules/welcome.xsl.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/js/setup.js b/test/core/js/setup.js index fac4fd78d0c867cf213917b16d874513d1871a09..45462f2d500ebdaecf0b6f197a52df6f13ca9fcb 100644 --- a/test/core/js/setup.js +++ b/test/core/js/setup.js @@ -1,6 +1,6 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/xml/test_case_file_preview.xml b/test/core/xml/test_case_file_preview.xml index 8c2320cf1c4eb44fede4ec0e68e55df62f3f38c7..06ad9425dbeebb8aa8d60feca32af082bf2a0a22 100644 --- a/test/core/xml/test_case_file_preview.xml +++ b/test/core/xml/test_case_file_preview.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/xml/test_case_list_of_myrecordtype.xml b/test/core/xml/test_case_list_of_myrecordtype.xml index 63587832758049c6de22055225c9dbb9acb7ff48..1836c35d240cb845afcbc998f21a871e20c6e5e3 100644 --- a/test/core/xml/test_case_list_of_myrecordtype.xml +++ b/test/core/xml/test_case_list_of_myrecordtype.xml @@ -1,6 +1,6 @@ <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/core/xml/test_case_preview_entities.xml b/test/core/xml/test_case_preview_entities.xml index 1e600004df0607bfd5ef682d5441027aea536b7a..418287554c64cb478429c223b6b36b73e0cf5910 100644 --- a/test/core/xml/test_case_preview_entities.xml +++ b/test/core/xml/test_case_preview_entities.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2018 Research Group Biomedical Physics, * Max-Planck-Institute for Dynamics and Self-Organization Göttingen diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile index dd6c8d65799d7ed7a8c4db0109d85f279d0778ac..6a14c5027171e80293504a33bb8ff5af5fec4bd8 100644 --- a/test/docker/Dockerfile +++ b/test/docker/Dockerfile @@ -13,9 +13,12 @@ RUN apt-get update \ && apt-get install -f RUN pip3 install pylint pytest -RUN pip3 install caosdb>=0.7.4 +# TODO rename to linkahead +# RUN pip3 install caosdb>=0.7.4 +RUN pip3 install git+https://gitlab.com/caosdb/caosdb-pylib.git@f-linkahead-rename RUN pip3 install pandas -RUN pip3 install git+https://gitlab.com/caosdb/caosdb-advanced-user-tools.git@dev +# TODO rename to linkahead +RUN pip3 install git+https://gitlab.com/caosdb/caosdb-advanced-user-tools.git@f-linkahead-rename # For automatic documentation # RUN npm install -g jsdoc # RUN npm install -g jsdoc-sphinx diff --git a/test/ext/js/modules/fileupload.js.js b/test/ext/js/modules/fileupload.js.js index 20c8ea380d1fc054a8fa5217559cd96745a9fd09..6eb59d07787e95f71441cf3906854554dd90887f 100644 --- a/test/ext/js/modules/fileupload.js.js +++ b/test/ext/js/modules/fileupload.js.js @@ -1,7 +1,7 @@ /* * ** header v3.0 - * This file is a part of the CaosDB Project. + * This file is a part of the LinkAhead Project. * * Copyright (C) 2019 IndiScale GmbH, Göttingen * diff --git a/test/server_side_scripting/ext_table_preview/requirements.txt b/test/server_side_scripting/ext_table_preview/requirements.txt index 4628529ba9dce50a08d574e21d3b4a71b50af2b1..828669fd56d10e7dda0e61917621f15c0fd057a8 100644 --- a/test/server_side_scripting/ext_table_preview/requirements.txt +++ b/test/server_side_scripting/ext_table_preview/requirements.txt @@ -1,3 +1,4 @@ +# TODO rename to linkahead caosdb caosadvancedtools pandas diff --git a/test/server_side_scripting/ext_table_preview/test_pandas_table_preview.py b/test/server_side_scripting/ext_table_preview/test_pandas_table_preview.py index c7c0cd3bc22c62ad4f1a214d4ed777718cdbf74a..5fbcc06cd53f19cb70986ff26d31b3298850fddd 100644 --- a/test/server_side_scripting/ext_table_preview/test_pandas_table_preview.py +++ b/test/server_side_scripting/ext_table_preview/test_pandas_table_preview.py @@ -2,7 +2,7 @@ # encoding: utf-8 # # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # # Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com> @@ -26,8 +26,8 @@ import os import unittest -import caosdb as db -from caosdb.common.models import _parse_single_xml_element +import linkahead as db +from linkahead.common.models import _parse_single_xml_element from lxml import etree from pandas_table_preview import (MAXIMUMFILESIZE, create_table_preview, ending_is_valid, read_file, size_is_ok) diff --git a/tools/copy_into_docker.sh b/tools/copy_into_docker.sh index efce266a66cd215eb5db3b7d2cc5d1c0cf13298f..d58a75123b1f9a1c2292df8db9efa1ea6d73a09a 100755 --- a/tools/copy_into_docker.sh +++ b/tools/copy_into_docker.sh @@ -1,9 +1,10 @@ #!/bin/bash # ** header v3.0 -# This file is a part of the CaosDB Project. +# This file is a part of the LinkAhead Project. # -# Copyright (C) 2019 IndiScale GmbH +# Copyright (C) 2019-2023 Indiscale GmbH <info@indiscale.com> +# Copyright (C) 2023 Daniel Hornung <d.hornung@indiscale.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -20,14 +21,14 @@ # # ** end header -# Copy files which are currently edited or debugged to the caosdb server docker container +# Copy files which are currently edited or debugged to the LinkAhead server docker container set -e # Copy just the publicly accessible files core_dir="$(dirname $0)/../src/core" container="linkahead" -docker_webui_root="/opt/caosdb/git/caosdb-server/caosdb-webui" +docker_webui_root="/opt/caosdb/git/linkahead-server/linkahead-webui" docker_dir="${docker_webui_root}/src/core/" docker cp "${core_dir}/." "$container:$docker_dir"