generated from electron-vite/electron-vite-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #9 from AQUASINE/staging
Staging
- Loading branch information
Showing
18 changed files
with
356 additions
and
88 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,12 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
Always is the default behavior. Change the rule to something else to have the action run conditionally. | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<div class="checkbox__compact"> | ||
<v-checkbox :label="label" v-model="model"></v-checkbox> | ||
</div> | ||
</template> | ||
<script setup> | ||
const props = defineProps({ | ||
label: { | ||
type: String, | ||
required: true | ||
}, | ||
}); | ||
const model = defineModel(); | ||
</script> | ||
<style scoped> | ||
.checkbox__compact { | ||
display: flex; | ||
align-items: center; | ||
justify-content: left; | ||
font-size: 0.85em; | ||
} | ||
.checkbox__compact >>> .v-checkbox { | ||
font-size: 0.95rem; | ||
margin-top: -0.5rem; | ||
margin-bottom: -2rem; | ||
margin-left: -0.5rem; | ||
} | ||
.checkbox__compact >>> .v-label { | ||
font-size: 0.85rem; | ||
color: var(--text) !important; | ||
opacity: 1; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script setup> | ||
import {ref} from "vue"; | ||
import CompactCheckbox from "./CompactCheckbox.vue"; | ||
const contains = ref(''); | ||
const caseSensitive = ref(false); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
This will check each message to see if it contains the following input: | ||
<input type="text" v-model="contains" class="input__contains" placeholder="Contains..." /> | ||
<CompactCheckbox label="Case Sensitive" v-model="caseSensitive"/> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.input__contains { | ||
width: 100%; | ||
padding: 0.5rem; | ||
border-radius: 0.25rem; | ||
border: 1px solid var(--bg4); | ||
background-color: var(--bg2); | ||
margin-top: 0.75rem; | ||
margin-bottom: 0.5rem; | ||
color: var(--text); | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<div> | ||
This is the default rule content. If you are seeing this, then the selected rule type <code>{{ type }}</code> has not yet been implemented. | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
name: 'DefaultRuleContent', | ||
props: { | ||
type: { | ||
type: String, | ||
required: true | ||
} | ||
} | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script setup> | ||
import {ref} from "vue"; | ||
import CompactCheckbox from "./CompactCheckbox.vue"; | ||
const contains = ref(''); | ||
const caseSensitive = ref(false); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
This will check each message to see if it exactly matches the following input: | ||
<input type="text" v-model="contains" class="input__contains" placeholder="Contains..." /> | ||
<CompactCheckbox label="Case Sensitive" v-model="caseSensitive"/> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.input__contains { | ||
width: 100%; | ||
padding: 0.5rem; | ||
border-radius: 0.25rem; | ||
border: 1px solid var(--bg4); | ||
background-color: var(--bg2); | ||
font-size: 1em; | ||
margin-top: 0.75rem; | ||
margin-bottom: 0.5rem; | ||
color: var(--text); | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script setup> | ||
import {ref} from "vue"; | ||
const contains = ref(''); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
This will check each message to see if it matches the following input with some flexibility: | ||
<input type="text" v-model="contains" class="input__contains" placeholder="Contains..." /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.input__contains { | ||
width: 100%; | ||
padding: 0.5rem; | ||
border-radius: 0.25rem; | ||
border: 1px solid var(--bg4); | ||
background-color: var(--bg2); | ||
font-size: 0.95em; | ||
margin-top: 0.5rem; | ||
color: var(--text); | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<template> | ||
<div class="container__output-card"> | ||
<div class="item__output-port"> | ||
<v-icon icon="mdi-connection"></v-icon> | ||
<div class="output__port-name"> | ||
Output Port | ||
</div> | ||
<input type="number" class="input__output-port" v-model="outputPort"/> | ||
</div> | ||
<CompactCheckbox v-model="consumeMode" label="Consume Mode"/> | ||
<CompactCheckbox v-model="logToFile" label="Log to file"/> | ||
</div> | ||
</template> | ||
<script setup> | ||
import {ref} from "vue"; | ||
import CompactCheckbox from "./CompactCheckbox.vue"; | ||
const outputPort = ref(8765); | ||
const consumeMode = ref(false); | ||
const logToFile = ref(false); | ||
</script> | ||
<style scoped> | ||
input[type=number]::-webkit-inner-spin-button, | ||
input[type=number]::-webkit-outer-spin-button { | ||
-webkit-appearance: none; | ||
margin: 0; | ||
} | ||
.container__output-card { | ||
background-color: var(--bg3); | ||
padding: 0.75rem; | ||
border-radius: 0.25rem; | ||
} | ||
.item__output-port { | ||
display: flex; | ||
align-items: center; | ||
gap: 0.5rem; | ||
font-size: 0.85em; | ||
margin-bottom: 0.5rem; | ||
} | ||
.item__output-port .input__output-port { | ||
border-radius: 8px; | ||
font-size: 1em; | ||
font-weight: 500; | ||
font-family: inherit; | ||
width: 50px; | ||
height: 30px; | ||
background-color: var(--bg2); | ||
text-align: center; | ||
border: 1px solid transparent; | ||
transition: border-color 0.25s; | ||
} | ||
.item__consume-mode { | ||
display: flex; | ||
align-items: center; | ||
justify-content: left; | ||
font-size: 0.85em; | ||
} | ||
</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
7 changes: 0 additions & 7 deletions
7
src/components/RegexConfigCard.vue → src/components/RegexRuleContent.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
Oops, something went wrong.