-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/extensions/jupyterla…
…b/connect_jupyterlab/babel/traverse-7.23.2
- Loading branch information
Showing
23 changed files
with
773 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
go_cover.out | ||
go_coverage.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
web/src/components/configurePublish/AccountCredential.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<!-- Copyright (C) 2023 by Posit Software, PBC. --> | ||
|
||
<template> | ||
<q-item | ||
tag="label" | ||
class="q-my-sm row items-center" | ||
:class="activeClass" | ||
> | ||
<q-item-section | ||
avatar | ||
top | ||
class="col-1" | ||
> | ||
<q-radio | ||
v-model="radioModel" | ||
:val="account.name" | ||
:color="colorStore.activePallete.bullet" | ||
/> | ||
</q-item-section> | ||
<q-item-section | ||
class="q-ml-md" | ||
> | ||
<q-item-label> | ||
{{ account.name }} | ||
</q-item-label> | ||
<q-item-label | ||
caption | ||
class="account-caption" | ||
> | ||
Account: {{ calculateName(account) }} | ||
</q-item-label> | ||
<q-item-label | ||
caption | ||
class="account-url" | ||
> | ||
URL: {{ account.url }} | ||
</q-item-label> | ||
<q-item-label | ||
caption | ||
class="q-pt-sm account-credential" | ||
> | ||
Credentials managed by: {{ account.source }} | ||
</q-item-label> | ||
</q-item-section> | ||
</q-item> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { PropType, computed } from 'vue'; | ||
import { Account } from 'src/api'; | ||
import { useColorStore } from 'src/stores/color'; | ||
import { colorToHex } from 'src/utils/colorValues'; | ||
import { calculateName } from 'src/utils/accounts'; | ||
|
||
const colorStore = useColorStore(); | ||
|
||
const emit = defineEmits(['update:modelValue']); | ||
const props = defineProps({ | ||
modelValue: { | ||
type: String, | ||
required: true, | ||
}, | ||
account: { | ||
type: Object as PropType<Account>, | ||
required: true, | ||
}, | ||
}); | ||
|
||
const radioModel = computed({ | ||
get() { | ||
return props.modelValue; | ||
}, | ||
set(newValue) { | ||
emit('update:modelValue', newValue); | ||
} | ||
}); | ||
|
||
const selected = computed(() => { | ||
return props.account.name === props.modelValue; | ||
}); | ||
|
||
const activeClass = computed(() => { | ||
return selected.value ? 'account-item-selected' : 'account-item-not-selected'; | ||
}); | ||
|
||
</script> | ||
|
||
<style> | ||
.account-item-selected { | ||
border: v-bind('colorToHex(colorStore.activePallete.destination.outline)') solid 1px; | ||
border-radius: 10px; | ||
background-color: v-bind('colorToHex(colorStore.activePallete.destination.background.selected)'); | ||
color: v-bind('colorToHex(colorStore.activePallete.destination.text)'); | ||
} | ||
|
||
.account-item-not-selected { | ||
border: v-bind('colorToHex(colorStore.activePallete.destination.outline)') solid 1px; | ||
border-radius: 10px; | ||
background-color: v-bind('colorToHex(colorStore.activePallete.destination.background.unSelected)'); | ||
color: v-bind('colorToHex(colorStore.activePallete.destination.text)'); | ||
} | ||
|
||
.account-caption { | ||
color: v-bind('colorToHex(colorStore.activePallete.destination.caption)'); | ||
} | ||
|
||
.account-url { | ||
color: v-bind('colorToHex(colorStore.activePallete.destination.caption)'); | ||
} | ||
|
||
.account-credential { | ||
color: v-bind('colorToHex(colorStore.activePallete.destination.caption)'); | ||
font-size: x-small; | ||
text-align: end; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.