-
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.
- Loading branch information
Showing
11 changed files
with
419 additions
and
515 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,18 @@ | ||
<template> | ||
<div class="row justify-content-md-center"> | ||
<div :class="class"> | ||
<table class="table table-striped table-bordered table-hover"> | ||
<slot name="default"></slot> | ||
</table> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
defineProps({ | ||
class: { | ||
type: String, | ||
default: "col-xxl-9 col-xs-12", | ||
}, | ||
}); | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<template> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-md-auto mb-3"> | ||
<div class="row"> | ||
<div class="col-md-auto mb-3"> | ||
<button | ||
type="button" | ||
class="btn btn-primary" | ||
@click="$emit('createClicked')" | ||
> | ||
{{ $t("General.new") }} | ||
</button> | ||
</div> | ||
<div class="col"> | ||
<div class="input-group"> | ||
<button | ||
type="button" | ||
class="btn btn-primary" | ||
@click="emit('update:modelValue', '')" | ||
> | ||
{{ $t("General.all") }} | ||
</button> | ||
<input | ||
class="form-control" | ||
type="text" | ||
:placeholder="placeholder" | ||
:value="props.modelValue" | ||
@input="emit('update:modelValue', $event.target.value)" | ||
Check failure on line 28 in src/components/DivFilter.vue GitHub Actions / Analyze (javascript-typescript)
|
||
/> | ||
<div | ||
class="form-check form-switch align-self-center ms-2" | ||
v-if="showValidToggle" | ||
> | ||
<input | ||
class="form-check-input" | ||
type="checkbox" | ||
id="validInput" | ||
v-model="validNow" | ||
@change="emit('validNowToggled', validNow)" | ||
/> | ||
<label class="form-check-label" for="validInput">{{ | ||
$t("General.validNow") | ||
}}</label> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
const searchString = ref(""); | ||
const validNow = ref(true); | ||
const emit = defineEmits([ | ||
"update:modelValue", | ||
"validNowToggled", | ||
"createClicked", | ||
]); | ||
const props = defineProps({ | ||
placeholder: { | ||
type: String, | ||
default: "", | ||
}, | ||
modelValue: { | ||
type: String, | ||
required: true, | ||
}, | ||
showValidToggle: { | ||
type: Boolean, | ||
default: 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
Oops, something went wrong.