Add vscode @component comment to every svelte file, remove unused js exports

This commit is contained in:
Christoph Kluge
2024-07-25 17:10:00 +02:00
parent 6a1cb51c2f
commit e65100cdc8
60 changed files with 1357 additions and 239 deletions

View File

@@ -1,3 +1,15 @@
<!--
@component Plot color scheme selection for users
Properties:
- `config Object`: Current cc-config
- `message Object`: Message to display on success or error
- `displayMessage Bool`: If to display message content
Events:
- `update-config, {selector: String, target: String}`: Trigger upstream update of the config option
-->
<script>
import {
Table,
@@ -15,7 +27,7 @@
const dispatch = createEventDispatcher();
function updateSetting(selector, target) {
dispatch('update', {
dispatch('update-config', {
selector: selector,
target: target
});

View File

@@ -1,4 +1,16 @@
<script>
<!--
@component Plot render option selection for users
Properties:
- `config Object`: Current cc-config
- `message Object`: Message to display on success or error
- `displayMessage Bool`: If to display message content
Events:
- `update-config, {selector: String, target: String}`: Trigger upstream update of the config option
-->
<script>
import {
Button,
Row,
@@ -15,7 +27,7 @@
const dispatch = createEventDispatcher();
function updateSetting(selector, target) {
dispatch('update', {
dispatch('update-config', {
selector: selector,
target: target
});

View File

@@ -1,3 +1,17 @@
<!--
@component General option selection for users
Properties:
- `config Object`: Current cc-config
- `message Object`: Message to display on success or error
- `displayMessage Bool`: If to display message content
- `username String!`: Empty string if auth. is disabled, otherwise the username as string
- `isApi Bool!`: Is currently logged in user api authority
Events:
- `update-config, {selector: String, target: String}`: Trigger upstream update of the config option
-->
<script>
import {
Button,
@@ -37,7 +51,7 @@
const dispatch = createEventDispatcher();
function updateSetting(selector, target) {
dispatch('update', {
dispatch('update-config', {
selector: selector,
target: target
});