Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polished webapp #30

Merged
merged 145 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
2f0a86d
MAINT: Undo readme as plain text changes for now
jotelha Oct 24, 2022
5bbc0fb
MAINT: downgrade filesize to avoid t.filesize is not a function excep…
jotelha Oct 24, 2022
f02af59
Merge commit '17c48d7'
jotelha Nov 2, 2022
749ad39
MAINT: Removed frozen timestamp from dataset table again ,does not lo…
jotelha Nov 2, 2022
4c52986
Bump filesize from 8.0.7 to 10.0.6 in /dtool-lookup-webapp
dependabot[bot] Dec 13, 2022
e49950b
Bump bootstrap-vue-3 from 0.3.12 to 0.5.1 in /dtool-lookup-webapp
dependabot[bot] Jan 5, 2023
a72f0bf
WIP: pagination
ashdriod Jan 24, 2023
4b5e2e9
Pagination
ashdriod Jan 30, 2023
77869c4
Pagination Complete
ashdriod Feb 4, 2023
42175ac
Version API Implemented in ReadMe
ashdriod Feb 5, 2023
260cc03
README content as plain text dependent on server version
ashdriod Feb 7, 2023
05954c8
Merge pull request #65 from livMatS/pagination
jotelha Feb 7, 2023
ba1f986
Logout and Search Box Issues
ashdriod Feb 7, 2023
54084b0
DOC : changelog updated
jotelha Feb 14, 2023
d77c93f
Version Dep and Contents Per Page
ashdriod Feb 15, 2023
9630133
Merge branch 'pagination' of https://github.com/livMatS/dtool-lookup-…
ashdriod Feb 15, 2023
24adcd7
JSON Checking and Minor Changes in Pagination
ashdriod Feb 17, 2023
766b525
JSON and Normal Search Completed
ashdriod Feb 25, 2023
a86e53f
Merge pull request #64 from livMatS/dependabot/npm_and_yarn/dtool-loo…
jotelha Feb 28, 2023
6354090
Merge pull request #62 from livMatS/dependabot/npm_and_yarn/dtool-loo…
jotelha Feb 28, 2023
f4bfc34
Merge pull request #66 from livMatS/pagination
jotelha Feb 28, 2023
3cb414e
All Cosmetics Done
ashdriod Mar 20, 2023
021e8f6
Merge branch 'pagination'
jotelha Mar 27, 2023
4d42f26
ENH: initial unit tests
ashdriod Mar 27, 2023
23bf7c2
TST: packages required for testing
ashdriod Mar 27, 2023
ce209ee
Bump bootstrap-vue-3 from 0.3.12 to 0.5.1 in /dtool-lookup-webapp
dependabot[bot] Jan 5, 2023
39cbf6b
Bump filesize from 8.0.7 to 10.0.6 in /dtool-lookup-webapp
dependabot[bot] Dec 13, 2022
5402917
MAINT: vue cli version bumped
jotelha Mar 27, 2023
3eb5ca0
DOC: note on broken install
jotelha Mar 27, 2023
cef34b0
TST: added auto-generated jest.config.js
jotelha Mar 27, 2023
96ff8df
DOC: Testing
jotelha Mar 27, 2023
177d01b
TST: activate unit tests in github workflow
jotelha Mar 27, 2023
a634664
TST: only lint sources, don't lint tests
jotelha Mar 27, 2023
da6bd07
TST: fixed npm test command
jotelha Mar 27, 2023
c0975b0
Merge pull request #68 from livMatS/unittests
jotelha Mar 27, 2023
199fb16
version test added
ashdriod Apr 2, 2023
119710c
version test 2nd test case change added
ashdriod Apr 2, 2023
2b4f5dc
Merge pull request #69 from livMatS/unittests
jotelha Apr 3, 2023
f9cfc21
Pagination test case change added
ashdriod Apr 16, 2023
261e6e3
Merge pull request #70 from livMatS/unittests
ashdriod Apr 17, 2023
4e5f813
Version API Update
ashdriod May 17, 2023
a5c4bd6
Merge branch '17052023_versionApiUpadte' of https://github.com/livMat…
jotelha May 22, 2023
1dbdd35
Vue 3.3 Version issue fix in Package.json
ashdriod May 24, 2023
b8eb963
Vue 3.3 version fix issue
ashdriod May 24, 2023
45c71aa
Merge pull request #71 from livMatS/17052023_versionApiUpadte
jotelha May 25, 2023
3573108
Merge branch 'master' of https://github.com/livMatS/dtool-lookup-webapp
jotelha May 25, 2023
7d23dc1
Unit test Update
ashdriod May 28, 2023
3ce9c2a
Merge pull request #74 from livMatS/unittests
jotelha May 29, 2023
657eae4
Updates package.json
ashdriod May 28, 2023
2de7f64
Merge branch 'master' of https://github.com/livMatS/dtool-lookup-webapp
jotelha May 29, 2023
1251e48
MAINT: lower version distinction for displaying README as text
jotelha Jun 11, 2023
8fc53c5
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha Jun 11, 2023
4d7ac8c
page selection Issues Solved
ashdriod Jun 17, 2023
c7bb1c6
Merge branch 'master' into pagination
jotelha Jun 19, 2023
abd67a5
MAINT: fixed wrong >
jotelha Jun 19, 2023
8846c71
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha Aug 29, 2023
81bef81
Version distinction updated to 0.18.0
ashdriod Aug 28, 2023
46e84a8
Bump vue and @vue/compat in /dtool-lookup-webapp
dependabot[bot] Aug 18, 2023
67bf6b3
Bump filesize from 8.0.7 to 10.0.12 in /dtool-lookup-webapp
dependabot[bot] Aug 14, 2023
6c3883e
Bump bootstrap-vue-3 from 0.3.12 to 0.5.1 in /dtool-lookup-webapp
dependabot[bot] May 29, 2023
3b3eab9
Bump @vue/eslint-config-prettier in /dtool-lookup-webapp
dependabot[bot] Jul 20, 2023
2e53d70
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha Aug 29, 2023
6927902
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 4, 2023
55d6e75
Bump actions/setup-node from 3 to 4
dependabot[bot] Oct 24, 2023
5af6d3b
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha Feb 5, 2024
091560e
Merge pull request #79 from livMatS/pagination
jotelha Feb 5, 2024
fbddbd3
Dependency issue has been resolved and updated to BootstrapVueNext
ashdriod Feb 9, 2024
99e5947
fix: downgrade file size for Vue compatibility
ashdriod Feb 17, 2024
a93291a
WIP:nees to fix Runtime Errors
ashdriod Feb 18, 2024
581c6ad
Merge pull request #111 from livMatS/fix-dependency-issue
jotelha Feb 19, 2024
911e505
Login Page WIP
ashdriod Feb 29, 2024
16ebbfa
Colour code Updated
ashdriod Mar 1, 2024
db2d31c
Signin WIP
ashdriod Mar 3, 2024
78d3fc5
WIP:StatusBar
ashdriod Mar 4, 2024
e89ecbe
DOC: Added notes to Changelog, elaborate on Contributors, extended RE…
jotelha Mar 4, 2024
68b8ee0
DOCS: contributors and changelog
jotelha Mar 4, 2024
61f898e
Merge pull request #112 from livMatS/2024-02-20-Remodel_API
jotelha Mar 4, 2024
fa17aa2
WIP:LoginPage
ashdriod Mar 9, 2024
bd4947b
Readme Updated
ashdriod Mar 9, 2024
376527c
Readme Updated
ashdriod Mar 9, 2024
496e3f9
Update README.rst
ashdriod Mar 9, 2024
dff6be7
WIP:Bootstrap
ashdriod Mar 10, 2024
bd05275
Merge branch '2024-02-20-Remodel_API' of https://github.com/livMatS/d…
ashdriod Mar 10, 2024
ad8a62a
WIP:MobileView
ashdriod Mar 11, 2024
c7e0bff
Merge pull request #113 from livMatS/2024-02-20-Remodel_API
jotelha Mar 11, 2024
07f9358
WIP: Pagination
ashdriod Mar 16, 2024
d19ffe7
WIP:jwtUtils
ashdriod Mar 18, 2024
07b3ee8
Merge pull request #115 from livMatS/2024-02-20-Remodel_API
jotelha Mar 18, 2024
3613070
ENH:Annotations
ashdriod Mar 26, 2024
641936b
ENH:Textsearch
ashdriod Mar 27, 2024
349b50b
ENH:ToolTips
ashdriod Mar 27, 2024
afd506e
ENH:Pagination
ashdriod Mar 27, 2024
c508a89
Merge pull request #116 from livMatS/2024-02-20-Remodel_API
jotelha Mar 27, 2024
d1270e6
ENH:Annotations
ashdriod Mar 29, 2024
5675a45
ENH:Annotations
ashdriod Mar 29, 2024
a134524
ENH:Readme
ashdriod Mar 29, 2024
cfbd251
ENH:Fetchbutton
ashdriod Apr 2, 2024
a4f80c3
ENH:Fetchbutton
ashdriod Apr 2, 2024
0f163f7
Merge pull request #117 from livMatS/2024-02-20-Remodel_API
ashdriod Apr 2, 2024
ae073c6
ENH:Fetchbutton
ashdriod Apr 3, 2024
c10a9b9
Merge pull request #118 from livMatS/2024-02-20-Remodel_API
ashdriod Apr 4, 2024
e7a08f9
MAINT:template added
ashdriod Apr 6, 2024
75ab572
MAINT:template added
ashdriod Apr 6, 2024
81a6931
MAINT:template added
ashdriod Apr 6, 2024
b8c3753
MAINT:Tags
ashdriod Apr 6, 2024
b6bd8ba
MAINT:Logout
ashdriod Apr 6, 2024
f1f3941
MAINT:Pagination issue
ashdriod Apr 6, 2024
4e80739
Merge pull request #120 from livMatS/2024-02-20-Remodel_API
jotelha Apr 6, 2024
056a1c2
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha Apr 10, 2024
527f2c2
Sort option saved
ashdriod Apr 21, 2024
215d700
WIP: Sorting
ashdriod Apr 21, 2024
43af042
WIP: Sorting
ashdriod Apr 21, 2024
dfb559c
WIP: Sorting
ashdriod Apr 21, 2024
c4f6b24
Merge pull request #92 from livMatS/dependabot/github_actions/actions…
jotelha Apr 22, 2024
32399ec
ENH:Sorting
ashdriod Apr 27, 2024
f1c58a3
ENH:Sorting
ashdriod Apr 27, 2024
34cf888
ENH:Sorting
ashdriod Apr 27, 2024
f471c73
WIP:Download
ashdriod Apr 28, 2024
b2dd69b
WIP:Download
ashdriod Apr 28, 2024
56ac69f
WIP:Download
ashdriod Apr 28, 2024
e0408be
WIP:Download
ashdriod Apr 28, 2024
f9431b8
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha Apr 29, 2024
4d133e6
Merge pull request #121 from livMatS/2024-04-16-Sorting
jotelha Apr 29, 2024
dec89db
WIP:Download
ashdriod May 4, 2024
79e4b83
WIP:Download
ashdriod May 4, 2024
c63eac3
WIP:ContentsPerPage
ashdriod May 5, 2024
2d4d371
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha May 6, 2024
9b24de8
Merge pull request #129 from livMatS/2024-04-27-DownloadButton
jotelha May 6, 2024
5b74541
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha May 6, 2024
891ef8e
WIP:Download
ashdriod May 6, 2024
b02fc75
DOC: .env variables for download buttons
jotelha May 6, 2024
b39068e
Merge pull request #131 from livMatS/2024-04-27-DownloadButton
jotelha May 6, 2024
95973e9
Browser Issue Fixed
ashdriod May 13, 2024
4c7aadc
Readme edit updated
ashdriod May 14, 2024
02d8cf9
Tag Issue Fixed
ashdriod May 14, 2024
6f86f24
Annotations updated
ashdriod May 14, 2024
20f741f
MAINT: annotation set instead of create
jotelha May 15, 2024
f65889b
Set Button Updated
ashdriod May 21, 2024
c51f902
Create Button Updated
ashdriod May 21, 2024
91dd3f3
enable JSON recognition
ashdriod May 21, 2024
f66a594
Merge branch 'master' of github.com:livMatS/dtool-lookup-webapp
jotelha May 22, 2024
21b88b6
MAINT: DSERVER_ prefix for some env vars
jotelha May 22, 2024
442d909
MAINT: test for proper plugin, dserver_direct_mongo_plugin
jotelha May 22, 2024
5508535
Merge pull request #130 from livMatS/2024-05-05-ContentsPerPage
jotelha May 22, 2024
d79d0e0
Merge remote-tracking branch 'upstream/master'
jotelha Jul 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
name: Node ${{ matrix.node-version }}
steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -29,13 +29,12 @@ jobs:

- name: Lint
working-directory: ./dtool-lookup-webapp
run: npm run lint
run: npm run lint src

- name: Build
working-directory: ./dtool-lookup-webapp
run: npm run build

# needs true tests first:
# - name: Run tests
# working-directory: ./dtool-lookup-webapp
# run: npm test
- name: Run tests
working-directory: ./dtool-lookup-webapp
run: npm run test:unit
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ This change log uses principles from `keep a changelog <http://keepachangelog.co
Added
^^^^^

- Customizable landing page.
- Logout button.
- Search result pagniation.
- Selection of entry number per page.
- Version-dependent display of pagination.
- Version-dependent display of README.yml content as clear text or as processed YAML/JSON.
- A few simple unit tests.


Changed
^^^^^^^

- Updated from bootstrap-vue-3 to bootstap-vue-next
- Adapted routes to remodeled dserver REST API.


Deprecated
^^^^^^^^^^
Expand All @@ -27,6 +37,7 @@ Removed
Fixed
^^^^^

- No search box on login screen.

Security
^^^^^^^^
Expand Down
18 changes: 16 additions & 2 deletions CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
Contributors
============

- Lars Pastewka added the ability to configure the dtool-lookup-server and
token-generator URLs from environment variables
- **Ashwin Vazhappilly**:
- Implemented direct MongoDB query functionality.
- Added a logout button to the user interface.
- Introduced pagination to improve data handling.
- Contributed several unit tests to ensure reliability.
- Adapted the web application to the remodeled dserver REST API for enhanced compatibility.
- Enhanced user experience by allowing customizable landing pages.

- **Johannes L. Hörmann**:
- Updated the initial codebase from Vue.js version 2 to Vue.js version 3, ensuring the application leverages the latest Vue.js features and improvements.

- **Lars Pastewka**:
- Integrated the ability to configure dtool-lookup-server and token-generator URLs through environment variables, adding flexibility in deployment and configuration.

- **Tjelvar S. G. Olsson**:
- Authored the initial version of the web application using Vue.js version 2, laying the foundation for further development and enhancements.
131 changes: 104 additions & 27 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,61 +1,138 @@
dtool lookup webapp
===================

- GitHub: https://github.com/jic-dtool/dtool-lookup-webapp
- Free software: MIT License
.. image:: https://github.com/livMatS/dtool-lookup-webapp/actions/workflows/build-and-test.yml/badge.svg
:target: https://github.com/livMatS/dtool-lookup-webapp/actions/workflows/build-and-test.yml
:alt: dtool-lookup-webapp build and test

Web application to query and display information about datasets stored in one
or more base URIs.
.. image:: https://img.shields.io/badge/License-MIT-yellow.svg
:target: https://opensource.org/licenses/MIT
:alt: License: MIT

- GitHub repository: https://github.com/jic-dtool/dtool-lookup-webapp
- License: MIT License (https://opensource.org/licenses/MIT)

This web application allows querying and displaying information about datasets stored in one or more base URIs.

Dependencies
------------

This web application depends on having two other web services to talk to:
The web application requires two other web services:

1. `dtool-lookup-server <https://github.com/jic-dtool/dtool-lookup-server>`_
2. `token-generator-ldap <https://github.com/jic-dtool/token-generator-ldap>`_
1. dtool-lookup-server: https://github.com/jic-dtool/dtool-lookup-server - Provides a means to search and display dataset metadata.
2. token-generator-ldap: https://github.com/jic-dtool/token-generator-ldap - Facilitates user authentication.

The first provides a means to search and display dataset metadata.
The latter provides a means to authenticate users.
Setup
-----

Preamble
-------
Navigate to the `dtool-lookup-webapp` directory:

::
.. code-block:: bash

cd dtool-lookup-webapp

Create a `.env` file in the `dtool-lookup-webapp` directory with the following contents:

Create a file `.env` in the `dtool-lookup-webapp` directory with the following contents:
.. code-block:: bash

```
VUE_APP_DTOOL_LOOKUP_SERVER_URL="http://localhost:5000"
VUE_APP_DTOOL_LOOKUP_SERVER_TOKEN_GENERATOR_URL="http://localhost:5001/token"
```
VUE_APP_DTOOL_LOOKUP_SERVER_URL="http://localhost:5000"
VUE_APP_DTOOL_LOOKUP_SERVER_TOKEN_GENERATOR_URL="http://localhost:5001/token"

For deployment, replace these URLs with the actual endpoints of the lookup server and the token generator.

Customization options for the landing page are available through the following environment variables in the `.env` file:

.. code-block:: text

VUE_APP_FIRST_CONTAINER_TITLE=Log in
VUE_APP_SECOND_CONTAINER_TITLE=dserver
VUE_APP_SECOND_CONTAINER_MESSAGE=Welcome to <b>dserver</b>'s webapp.
VUE_APP_THIRD_CONTAINER_HEADING=Access
VUE_APP_THIRD_CONTAINER_MESSAGE=Some notes on how to gain access.
VUE_APP_FOURTH_CONTAINER_HEADING=Docs
VUE_APP_FOURTH_CONTAINER_INTRO=Some notes on how to find help. The following list may contain an arbitrary number of links.
VUE_APP_FOURTH_CONTAINER_RESOURCES=[{"text": "dtool-lookup-webapp repository", "url": "https://github.com/jic-dtool/dtool-lookup-webapp"}]
VUE_APP_LANDING_PAGE_ICON_PATH=/icons/128x128/dtool_logo.png

Customization options for the upper right corner drop-down menu in the app are available through the following environment variables in the `.env` file:

.. code-block:: text

Start a development server
--------------------------
VUE_APP_OFFER_DTOOL_README_YAML_DOWNLOAD=true
VUE_APP_OFFER_DTOOL_JSON_DOWNLOAD=true
VUE_APP_SHOW_INFO_MENU_ENTRY=true
VUE_APP_DTOOL_JSON_PATH=/data/templates/dtool.json
VUE_APP_DTOOL_README_YAML_PATH=/data/templates/dtool_readme.yml
VUE_APP_INFO_CONTENT="<tt>dtool.json</tt> is you local <i>dtool</i> client's configuration file. Place it at <tt>~/.config/dtool/dtool.json</tt>, where <tt>~</tt> is your home directoy, and create the directories if they do not exist.<br /><br /><tt>dtool_readme.yml</tt> is the metadata template used for documenting your datasets. Place it anywhere, but make sure that the entry <tt>DTOOL_README_TEMPLATE_FPATH</tt> within above's dtool.json points to the correct absolute path of your <tt>dtool_readme.yml</tt>. See <a href="https://dtool.readthedocs.io/en/latest/configuring_a_custom_readme_template.html" target="_blank" rel="noopener noreferrer">Configuring a custom README template</a> of <a href="https://dtool.readthedocs.io" target="_blank" rel="noopener noreferrer"></i>dtool</i>'s documentation</a>."

::
All paths provided in these environment variables must be relative to this
repository's `dtool-lookup-webapp/public` as root.
Setting any of the `VUE_APP_OFFER_DTOOL_README_YAML_DOWNLOAD`,
`VUE_APP_OFFER_DTOOL_JSON_DOWNLOAD`, `VUE_APP_SHOW_INFO_MENU_ENTRY` to `true`
will show a download button for a `dtool_readme.yml` template, for a
`dtool.json` configuration file, and a button for displaying arbitrary
textual information configured with `VUE_APP_INFO_CONTENT`.
Per default, all these buttons are hidden.

To apply changes to the `.env` file, execute:

.. code-block:: bash

npm install

Development Server
------------------

To start a development server:

.. code-block:: bash

cd dtool-lookup-webapp
npm run serve

Building for Production
-----------------------

Compile into a static single page website
-----------------------------------------
To compile the application into a static single-page website:

::
.. code-block:: bash

cd dtool-lookup-webapp
npm run build

Fixing Broken Installations
---------------------------

To address issues with dependencies in a broken installation:

.. code-block:: bash

rm -rf dist/ node_modules/
rm package-lock.json

Then, reinstall the Vue CLI service and rebuild:

.. code-block:: bash

npm install @vue/cli-service
npm run build

Testing
-------

Testing requires the `jest.config.js` configuration file, which can be auto-generated by:

.. code-block:: bash

vue add unit-jest

This step follows the global installation of the Vue CLI:

.. code-block:: bash

npm install -g @vue/cli

More information
----------------
Additional Information
----------------------

See dtool-lookup-webapp/README.md for more information about how to develop and build.
See provision/README.rst for instructions on how to deploy using Ansibl.e
For more details on development and build processes, refer to the `README.md` file within the `dtool-lookup-webapp` directory. For deployment instructions using Ansible, consult the `provision/README.rst`.
3 changes: 3 additions & 0 deletions dtool-lookup-webapp/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest'
}
25 changes: 18 additions & 7 deletions dtool-lookup-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@popperjs/core": "^2.11.7",
"@soerenmartius/vue3-clipboard": "^0.1.2",
"@vue/compat": "^3.2.31",
"@vue/compat": "^3.4.15",
"axios": "^1.1.3",
"bootstrap": "^5.1.3",
"bootstrap-vue-3": "^0.3.12",
"bootstrap": "^5.3.2",
"bootstrap-vue-next": "^0.16.6",
"core-js": "^3.21.1",
"filesize": "^8.0.7",
"filesize": "9.0.11",
"json2yaml": "^1.1.0",
"moment": "^2.24.0",
"vue": "^3.2.31",
"vue": "^3.2.26",
"vue-axios": "^3.4.1",
"vuex": "^4.0.2"
},
Expand All @@ -26,11 +28,20 @@
"@babel/preset-react": "^7.16.7",
"@vue/cli-plugin-babel": "^5.0.3",
"@vue/cli-plugin-eslint": "^5.0.4",
"@vue/cli-plugin-unit-jest": "~5.0.0",
"@vue/cli-service": "^5.0.4",
"@vue/compiler-sfc": "^3.2.31",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/compiler-sfc": "^3.4.15",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/test-utils": "^2.0.0-0",
"@vue/vue3-jest": "^27.0.0-alpha.1",
"babel-jest": "^27.0.6",
"deepmerge": "^4.3.1",
"eslint": "^8.11.0",
"eslint-plugin-vue": "^9.6.0",
"flush-promises": "^1.0.2",
"jest": "^27.0.5",
"sass": "^1.71.1",
"sass-loader": "^14.1.1",
"webpack": "^5.7.0"
}
}
21 changes: 21 additions & 0 deletions dtool-lookup-webapp/public/data/templates/dtool.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

{
"DSERVER_TOKEN_GENERATOR_URL": "https://demo.dtool.dev/token",
"DSERVER_URL": "https://demo.dtool.dev/lookup",
"DSERVER_USERNAME": "testuser",
"DSERVER_VERIFY_SSL": "true",
"DTOOL_README_TEMPLATE_FPATH": "/path/to/.dtool_readme.yml",
"DTOOL_S3_ACCESS_KEY_ID_test-bucket": "testuser_access_key",
"DTOOL_S3_DATASET_PREFIX": "u/testuser/",
"DTOOL_S3_ENDPOINT_test-bucket": "http://demo.dtool.dev:9000",
"DTOOL_S3_SECRET_ACCESS_KEY_test-bucket": "testuser_secret_key",
"DTOOL_SMB_DOMAIN_test-share": "WORKGROUP",
"DTOOL_SMB_PASSWORD_test-share": "a-guest-needs-no-password",
"DTOOL_SMB_PATH_test-share": "dtool",
"DTOOL_SMB_SERVER_NAME_test-share": "demo.dtool.dev",
"DTOOL_SMB_SERVER_PORT_test-share": 445,
"DTOOL_SMB_SERVICE_NAME_test-share": "sambashare",
"DTOOL_SMB_USERNAME_test-share": "guest",
"DTOOL_USER_EMAIL": "[email protected]",
"DTOOL_USER_FULL_NAME": "Your full name"
}
12 changes: 12 additions & 0 deletions dtool-lookup-webapp/public/data/templates/dtool_readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
project: Project name
description: Short description
owners:
- name: {DTOOL_USER_FULL_NAME}
email: {DTOOL_USER_EMAIL}
username: {username}
orcid: Your orcid
funders:
- organization: Your funding organization
program: Your program
code: Program code
creation_date: '{date}'
Binary file added dtool-lookup-webapp/public/dtool_logo.ico
Binary file not shown.
Binary file removed dtool-lookup-webapp/public/favicon.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dtool-lookup-webapp/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link rel="icon" href="<%= BASE_URL %>dtool_logo.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.min.css" integrity="sha256-pNGG0948CVwfHxxS8lVkUKftaSsMBzFSUknrKr2utfY=" crossorigin="anonymous" />
<title>dtool-lookup-webapp</title>
</head>
Expand Down
Loading
Loading