Skip to content

Commit

Permalink
wip ui
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Mar 19, 2024
1 parent 5b82bdf commit 12f5a62
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/components/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ class AppProperties extends Tonic {

const { event, propertyValue } = el.dataset

if (event === 'copy-link') {
navigator.clipboard.writeText(el.value)
}

if (event === 'publish') {
const coDialogPublish = document.querySelector('dialog-publish')
if (coDialogPublish) coDialogPublish.show()
Expand Down Expand Up @@ -284,6 +288,7 @@ class AppProperties extends Tonic {
id="shared-secret"
symbol-id="copy-icon"
position="right"
data-event="copy-link"
value="${sharedSecret}"
readonly="true"
></tonic-input>
Expand Down
4 changes: 2 additions & 2 deletions src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ app-view > header {
border-top: 1px solid var(--tonic-border);
}

body[platform="macos"] app-view > header {
app-view[platform="darwin"] > header {
display: grid;
}

body[platform="macos"] #split-main {
app-view[platform="darwin"] #split-main {
top: 50px;
}

Expand Down
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ class AppView extends Tonic {

})

subcluster.on('tag', async (value, packet) => {
subcluster.on('clone', async (value, packet) => {
console.log('GOT CLONE!', value, packet)
if (!packet.verified) return // gtfoa
if (packet.index !== -1) return // not interested

Expand Down Expand Up @@ -743,8 +744,6 @@ class AppView extends Tonic {
}

window.onload = () => {
document.title = 'Union App Studio'

Tonic.add(AppEditor)
Tonic.add(AppImagePreview)
Tonic.add(AppProperties)
Expand Down

0 comments on commit 12f5a62

Please sign in to comment.