Change database (newer data)
minor: add extension jpeg in mediabox, categories order change in constants, theme tinkering
This commit is contained in:
parent
36c8115bb6
commit
1100abf141
4 changed files with 15 additions and 10 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
export default [
|
export default [
|
||||||
'A',
|
|
||||||
'B',
|
|
||||||
'C',
|
|
||||||
'D',
|
|
||||||
'T',
|
|
||||||
'AM',
|
'AM',
|
||||||
'A1',
|
'A1',
|
||||||
'A2',
|
'A2',
|
||||||
|
'A',
|
||||||
'B1',
|
'B1',
|
||||||
|
'B',
|
||||||
'C1',
|
'C1',
|
||||||
|
'C',
|
||||||
'D1',
|
'D1',
|
||||||
|
'D',
|
||||||
|
'T',
|
||||||
'PT',
|
'PT',
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const media = computed(() => {
|
||||||
const dotSplit = props.mediaPath?.split('.');
|
const dotSplit = props.mediaPath?.split('.');
|
||||||
const extension = dotSplit?.pop()?.toLowerCase();
|
const extension = dotSplit?.pop()?.toLowerCase();
|
||||||
let type = null;
|
let type = null;
|
||||||
if (extension === 'jpg') {
|
if (extension === 'jpg' || extension === 'jpeg') {
|
||||||
type = 'image';
|
type = 'image';
|
||||||
} else if (extension === 'wmv') {
|
} else if (extension === 'wmv') {
|
||||||
type = 'video';
|
type = 'video';
|
||||||
|
|
|
||||||
BIN
db/database.db
BIN
db/database.db
Binary file not shown.
|
|
@ -36,11 +36,14 @@ function changeLanguage() {
|
||||||
|
|
||||||
const dark = ref(false);
|
const dark = ref(false);
|
||||||
|
|
||||||
|
const prefersDark = computed(() =>
|
||||||
|
window.matchMedia
|
||||||
|
? window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||||
|
: false,
|
||||||
|
);
|
||||||
|
|
||||||
function getTheme() {
|
function getTheme() {
|
||||||
if (
|
if (prefersDark.value) {
|
||||||
window.matchMedia &&
|
|
||||||
window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
||||||
) {
|
|
||||||
dark.value = true;
|
dark.value = true;
|
||||||
} else {
|
} else {
|
||||||
dark.value = false;
|
dark.value = false;
|
||||||
|
|
@ -53,6 +56,8 @@ const themeStore = useThemeStore();
|
||||||
|
|
||||||
function themeAuto() {
|
function themeAuto() {
|
||||||
themeStore.set('');
|
themeStore.set('');
|
||||||
|
getTheme();
|
||||||
|
themeStore.set('');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue