-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #647 from nature-heart-software/dev
release
- Loading branch information
Showing
33 changed files
with
723 additions
and
316 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
import path from 'path' | ||
import { screen } from 'electron' | ||
import { minBy } from 'lodash' | ||
|
||
export const env = process.env.NODE_ENV | ||
export const EXTERNALS_DIR = | ||
env === 'development' ? path.join(ROOT_DIR, '/resources') : process.resourcesPath | ||
|
||
export const getTopLeftWindow = () => { | ||
const displays = screen.getAllDisplays() | ||
return minBy(displays, (display) => display.bounds.y) | ||
} |
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
30 changes: 30 additions & 0 deletions
30
apps/app/src/features/messages/components/inputs/NvMessageModeSelect.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,30 @@ | ||
<template> | ||
<NvSelect | ||
ref="select" | ||
:autocompleteWidth="width" | ||
:modelValue="settingsStore.messageMode" | ||
:options="options" | ||
@update:modelValue="(value) => settingsStore.$patch({ messageMode: value })" | ||
/> | ||
</template> | ||
<script lang="ts" setup> | ||
import { NvSelect } from '@packages/ui' | ||
import { useElementSize } from '@vueuse/core' | ||
import { computed, ref } from 'vue' | ||
import { useSettingsStore } from '@/features/settings/store' | ||
const settingsStore = useSettingsStore() | ||
const options = computed(() => [ | ||
{ | ||
label: 'Sentence', | ||
value: 'sentence', | ||
}, | ||
{ | ||
label: 'Word', | ||
value: 'word', | ||
}, | ||
]) | ||
const select = ref() | ||
const { width } = useElementSize(select) | ||
</script> |
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.