Skip to content

Commit

Permalink
Added upload button on versions editor, refactor same classes/compone…
Browse files Browse the repository at this point in the history
…nts.

Signed-off-by: Dennis Labordus <[email protected]>
  • Loading branch information
Dennis Labordus committed Sep 30, 2021
1 parent 8fb14a5 commit bd48305
Show file tree
Hide file tree
Showing 54 changed files with 872 additions and 2,758 deletions.
15 changes: 15 additions & 0 deletions __snapshots__/compas-comment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# `compas-comment`

#### `looks like the latest snapshot`

```html
<wizard-textfield
disabled=""
id="comment"
label="[compas.comment]"
nullable=""
>
</wizard-textfield>

```

17 changes: 17 additions & 0 deletions __snapshots__/compas-loading.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# `compas-loading`

#### `looks like the latest snapshot`

```html
<mwc-list>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
tabindex="0"
>
[compas.loading]
</mwc-list-item>
</mwc-list>

```

29 changes: 6 additions & 23 deletions __snapshots__/compas-save-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
#### `looks like the latest snapshot`

```html
<mwc-list>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
tabindex="0"
>
[compas.loading]
</mwc-list-item>
</mwc-list>
<compas-loading>
</compas-loading>

```

Expand All @@ -32,13 +25,8 @@
</mwc-textfield>
<compas-scltype-radiogroup>
</compas-scltype-radiogroup>
<wizard-textfield
disabled=""
id="comment"
label="[compas.saveTo.comment]"
nullable=""
>
</wizard-textfield>
<compas-comment>
</compas-comment>

```

Expand All @@ -49,13 +37,8 @@
```html
<compas-changeset-radiogroup>
</compas-changeset-radiogroup>
<wizard-textfield
disabled=""
id="comment"
label="[compas.saveTo.comment]"
nullable=""
>
</wizard-textfield>
<compas-comment>
</compas-comment>

```

11 changes: 2 additions & 9 deletions __snapshots__/compas-scl-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
#### `looks like the latest snapshot`

```html
<mwc-list>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
tabindex="0"
>
[compas.loading]
</mwc-list-item>
</mwc-list>
<compas-loading>
</compas-loading>

```

Expand Down
11 changes: 2 additions & 9 deletions __snapshots__/compas-scltype-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
#### `looks like the latest snapshot`

```html
<mwc-list>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
tabindex="0"
>
[compas.loading]
</mwc-list-item>
</mwc-list>
<compas-loading>
</compas-loading>

```

Expand Down
11 changes: 2 additions & 9 deletions __snapshots__/compas-scltype-radiogroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
#### `looks like the latest snapshot`

```html
<mwc-list>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
tabindex="0"
>
[compas.loading]
</mwc-list-item>
</mwc-list>
<compas-loading>
</compas-loading>

```

Expand Down
89 changes: 89 additions & 0 deletions __snapshots__/compas-upload-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# `compas-upload-version`

## `still determining if document exists in CoMPAS`

#### `looks like the latest snapshot`

```html
<compas-loading>
</compas-loading>

```

## `no document in compas (anymore)`

#### `looks like the latest snapshot`

```html
<mwc-list>
<mwc-list-item
aria-disabled="false"
mwc-list-item=""
tabindex="0"
>
[compas.notExists]
</mwc-list-item>
</mwc-list>

```

## `existing document in compas`

#### `looks like the latest snapshot`

```html
<input
accept=".scd"
hidden=""
id="scl-file"
required=""
type="file"
>
<wizard-textfield
id="filename"
label="[compas.uploadVersion.filename]"
required=""
>
</wizard-textfield>
<mwc-button label="[compas.uploadVersion.selectButton]">
</mwc-button>
<compas-changeset-radiogroup>
</compas-changeset-radiogroup>
<compas-comment>
</compas-comment>

```

## `existing document in compas through wizard`

#### `looks like the latest snapshot`

```html
<mwc-dialog
defaultaction="close"
heading="[compas.uploadVersion.title]"
open=""
>
<div id="wizard-content">
<compas-upload-version>
</compas-upload-version>
</div>
<mwc-button
dialogaction="close"
label="[cancel]"
slot="secondaryAction"
style="--mdc-theme-primary: var(--mdc-theme-error)"
>
</mwc-button>
<mwc-button
dialoginitialfocus=""
icon="save"
label="[save]"
slot="primaryAction"
trailingicon=""
>
</mwc-button>
</mwc-dialog>

```

9 changes: 4 additions & 5 deletions __snapshots__/compas-versions-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@
#### `looks like the latest snapshot`

```html
<h1>
<span style="color: var(--base1)">
[compas.loading]
</span>
</h1>
<compas-loading>
</compas-loading>
<wizard-dialog>
</wizard-dialog>

Expand Down Expand Up @@ -66,6 +63,8 @@
<section tabindex="0">
<h1>
[compas.versions.title]
<mwc-icon-button icon="note_add">
</mwc-icon-button>
<mwc-icon-button icon="delete_forever">
</mwc-icon-button>
</h1>
Expand Down
Binary file modified favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="public/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="192x192" href="public/icon-192x192.png">

<title>OpenSCD</title>
<title>CoMPAS - OpenSCD</title>
</head>

<body>
Expand Down
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "OpenSCD",
"name": "OpenSCD",
"short_name": "CoMPAS - OpenSCD",
"name": "CoMPAS - OpenSCD",
"description": "An editor for XML files as described by IEC 61850-6",
"categories": [
"productivity",
Expand All @@ -16,7 +16,7 @@
"dir": "ltr",
"icons": [
{
"src": "public/icon.svg",
"src": "public/icon-color.svg",
"sizes": "150x150",
"type": "image/svg+xml",
"purpose": "any monochrome"
Expand Down
Loading

0 comments on commit bd48305

Please sign in to comment.