diff --git a/.gitignore b/.gitignore index 3e653ed..3ca30a8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ __pycache__ node_modules package-lock.json /frontend/dist/ +/backend/server.pem + diff --git a/backend/srv.py b/backend/srv.py new file mode 100644 index 0000000..9972690 --- /dev/null +++ b/backend/srv.py @@ -0,0 +1,7 @@ +import BaseHTTPServer, SimpleHTTPServer +import ssl + +httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler) +httpd.socket = ssl.wrap_socket (httpd.socket, certfile='/pstore/home/adaszews/workspace/arvados-workbench-advanced/backend/server.pem', server_side=True) +httpd.serve_forever() + diff --git a/frontend/package.json b/frontend/package.json index db9ad82..1d4a9c9 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,8 +1,12 @@ { "dependencies": { + "bootstrap": "^4.4.1", + "jquery": "^3.4.1", "linkstate": "^1.1.1", + "popper.js": "^1.16.1", "preact": "^8.2.9", "preact-router": "^2.6.1", + "random-bytes": "^1.0.0", "rollup": "^0.62.0", "rollup-plugin-buble": "^0.19.2", "rollup-plugin-copy": "^0.2.3", diff --git a/frontend/rollup.config.js b/frontend/rollup.config.js index 8209599..db67adf 100755 --- a/frontend/rollup.config.js +++ b/frontend/rollup.config.js @@ -10,17 +10,19 @@ export default { input: 'src/js/index.js', output: { file: 'dist/js/app.min.js', - name: 'CHEMTOP', + name: 'WBADV', format: 'umd', sourceMap: true }, plugins: [ includePaths({ - paths: ['src/js', 'src/js/widget', 'src/js/misc'] + paths: ['src/js', 'src/js/widget', 'src/js/misc', 'src/js/component'] }), copy({ 'src/html/index.html': 'dist/index.html', 'src/css/index.css': 'dist/css/index.css', + 'node_modules/bootstrap/dist/css/bootstrap.min.css': 'dist/css/bootstrap.min.css', + 'node_modules/bootstrap/dist/js/bootstrap.min.js': 'dist/js/bootstrap.min.js', verbose: true }), buble({jsx: 'h'}), diff --git a/frontend/src/html/index.html b/frontend/src/html/index.html index e69de29..c48306f 100755 --- a/frontend/src/html/index.html +++ b/frontend/src/html/index.html @@ -0,0 +1,10 @@ + +
+ + + + + + + + diff --git a/frontend/src/js/component/wb-app.js b/frontend/src/js/component/wb-app.js new file mode 100644 index 0000000..8794e72 --- /dev/null +++ b/frontend/src/js/component/wb-app.js @@ -0,0 +1,45 @@ +import { h, Component } from 'preact'; +import WBTabs from 'wb-tabs'; + +class WBApp extends Component { + render() { + return ( +Name | +Description | +Size | +
---|---|---|
Name | +Description | +0 bytes | +
Name | +Description | +0 bytes | +
Name | +Description | +0 bytes | +