diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..0ff4ee6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,20 @@ +## Expected Behavior + + +## Actual Behavior + + +## Possible Solution + + +## Steps to Reproduce the Problem + + 1. + 2. + 3. + +## Specifications + + - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): + - Node version: + - Database engine (e.g., SQLite): diff --git a/docs/nginx_setup.md b/docs/nginx_setup.md new file mode 100644 index 0000000..5ce36e2 --- /dev/null +++ b/docs/nginx_setup.md @@ -0,0 +1,53 @@ +# Nginx as reverse proxy + +Below theres an example of how the site configuration for nginx as a reverse proxy can look like: + +``` +map $http_upgrade $connection_upgrade { + default upgrade; + '' close; +} + +server { + listen 80; + listen [::]:80; + + servername spacedeck.domain.de + + return 301 https://$server_name$request_uri; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + ssl on; + + server_name spacedeck.domain.de; + + ssl_certificate /etc/ssl/spacedeck.domain.de.cer; + ssl_certificate_key /etc/ssl/spacedeck.domain.de.key; + + include ssl_params; + + charset utf-8; + client_max_body_size 50m; + + add_header Content-Security-Policy "default-src https: wss:; script-src https: 'unsafe-inline' 'unsafe-eval'; style-src https: 'unsafe-inline'"; + add_header X-XSS-Protection "1; mode=block;"; + add_header Referrer-Policy "no-referrer"; + + location / { + proxy_pass http://127.0.0.1:9666; + proxy_set_header X-Forwarded-For $remote_addr; + } + + location /socket { + proxy_pass http://127.0.0.1:9666; + proxy_set_header Connection 'upgrade'; + proxy_set_header Upgrade $http_upgrade; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_cache_bypass $http_upgrade; + } +} +``` diff --git a/public/fonts/inter-v2-latin-ext_latin-500.eot b/public/fonts/inter-v2-latin-ext_latin-500.eot new file mode 100644 index 0000000..a15813f Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-500.eot differ diff --git a/public/fonts/inter-v2-latin-ext_latin-500.svg b/public/fonts/inter-v2-latin-ext_latin-500.svg new file mode 100644 index 0000000..737585d --- /dev/null +++ b/public/fonts/inter-v2-latin-ext_latin-500.svg @@ -0,0 +1,351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/fonts/inter-v2-latin-ext_latin-500.ttf b/public/fonts/inter-v2-latin-ext_latin-500.ttf new file mode 100644 index 0000000..fe06dd9 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-500.ttf differ diff --git a/public/fonts/inter-v2-latin-ext_latin-500.woff b/public/fonts/inter-v2-latin-ext_latin-500.woff new file mode 100644 index 0000000..ff2a581 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-500.woff differ diff --git a/public/fonts/inter-v2-latin-ext_latin-500.woff2 b/public/fonts/inter-v2-latin-ext_latin-500.woff2 new file mode 100644 index 0000000..bfc0707 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-500.woff2 differ diff --git a/public/fonts/inter-v2-latin-ext_latin-600.eot b/public/fonts/inter-v2-latin-ext_latin-600.eot new file mode 100644 index 0000000..350e00d Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-600.eot differ diff --git a/public/fonts/inter-v2-latin-ext_latin-600.svg b/public/fonts/inter-v2-latin-ext_latin-600.svg new file mode 100644 index 0000000..9c54192 --- /dev/null +++ b/public/fonts/inter-v2-latin-ext_latin-600.svg @@ -0,0 +1,351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/fonts/inter-v2-latin-ext_latin-600.ttf b/public/fonts/inter-v2-latin-ext_latin-600.ttf new file mode 100644 index 0000000..dc1131d Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-600.ttf differ diff --git a/public/fonts/inter-v2-latin-ext_latin-600.woff b/public/fonts/inter-v2-latin-ext_latin-600.woff new file mode 100644 index 0000000..725c722 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-600.woff differ diff --git a/public/fonts/inter-v2-latin-ext_latin-600.woff2 b/public/fonts/inter-v2-latin-ext_latin-600.woff2 new file mode 100644 index 0000000..d57b11c Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-600.woff2 differ diff --git a/public/fonts/inter-v2-latin-ext_latin-900.eot b/public/fonts/inter-v2-latin-ext_latin-900.eot new file mode 100644 index 0000000..93a28a0 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-900.eot differ diff --git a/public/fonts/inter-v2-latin-ext_latin-900.svg b/public/fonts/inter-v2-latin-ext_latin-900.svg new file mode 100644 index 0000000..60f2670 --- /dev/null +++ b/public/fonts/inter-v2-latin-ext_latin-900.svg @@ -0,0 +1,349 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/fonts/inter-v2-latin-ext_latin-900.ttf b/public/fonts/inter-v2-latin-ext_latin-900.ttf new file mode 100644 index 0000000..87a4d5b Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-900.ttf differ diff --git a/public/fonts/inter-v2-latin-ext_latin-900.woff b/public/fonts/inter-v2-latin-ext_latin-900.woff new file mode 100644 index 0000000..17825d9 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-900.woff differ diff --git a/public/fonts/inter-v2-latin-ext_latin-900.woff2 b/public/fonts/inter-v2-latin-ext_latin-900.woff2 new file mode 100644 index 0000000..172b824 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-900.woff2 differ diff --git a/public/fonts/inter-v2-latin-ext_latin-regular.eot b/public/fonts/inter-v2-latin-ext_latin-regular.eot new file mode 100644 index 0000000..6feb544 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-regular.eot differ diff --git a/public/fonts/inter-v2-latin-ext_latin-regular.svg b/public/fonts/inter-v2-latin-ext_latin-regular.svg new file mode 100644 index 0000000..84da31d --- /dev/null +++ b/public/fonts/inter-v2-latin-ext_latin-regular.svg @@ -0,0 +1,351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/fonts/inter-v2-latin-ext_latin-regular.ttf b/public/fonts/inter-v2-latin-ext_latin-regular.ttf new file mode 100644 index 0000000..0a49609 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-regular.ttf differ diff --git a/public/fonts/inter-v2-latin-ext_latin-regular.woff b/public/fonts/inter-v2-latin-ext_latin-regular.woff new file mode 100644 index 0000000..f5a4416 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-regular.woff differ diff --git a/public/fonts/inter-v2-latin-ext_latin-regular.woff2 b/public/fonts/inter-v2-latin-ext_latin-regular.woff2 new file mode 100644 index 0000000..71b71c2 Binary files /dev/null and b/public/fonts/inter-v2-latin-ext_latin-regular.woff2 differ diff --git a/public/javascripts/spacedeck_sections.js b/public/javascripts/spacedeck_sections.js index 3ca372a..4537434 100644 --- a/public/javascripts/spacedeck_sections.js +++ b/public/javascripts/spacedeck_sections.js @@ -182,7 +182,8 @@ var SpacedeckSections = { toolbar_props_in: false, toolbar_artifacts_x: "-1000px", toolbar_artifacts_y: "-1000px", - toolbar_artifacts_in: true + toolbar_artifacts_in: true, + toolbar_lock_in: false }, methods: { @@ -848,7 +849,7 @@ var SpacedeckSections = { if (!a) return false; if (!this.active_space) return false; - if (this.active_space_role=="viewer" || (a.locked && this.active_space_role!="admin")) { + if (this.active_space_role=="viewer" || (a.locked && this.active_space_role=="viewer")) { return false; } @@ -2526,11 +2527,18 @@ var SpacedeckSections = { }, show_toolbar_props: function() { - if (this.selection_metrics.count==0) return; + if (this.selection_metrics.count==0) { + this.toolbar_lock_in = false; + return; + } arts = this.selected_artifacts(); + // check if selected artifacts are all from the same user + let same_user = true; for (var i=0;i - -